Author Topic: fbx2edf parameter options  (Read 533 times)

Steven

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
fbx2edf parameter options
« on: February 25, 2017, 01:41:37 PM »
I wanted to use fbx2edf with parameters.
Most of the things work, but for the map file the command doing what "Recalculate" in the UI does seems to be missing.
Is it possible to get some information on this or is there a complete list with the ini options somewhere already?
It would be good to create the trp and map all together this way and not to have fbx2edf running all the time.

matty0l215

  • Hero Member
  • *****
  • Posts: 3041
  • CAWS Racing #61
    • View Profile
Re: fbx2edf parameter options
« Reply #1 on: March 01, 2017, 07:14:07 PM »
Code: [Select]
[Hierarchy]
split = 1
rotation = 0 0 0

chassis = C:\...\export\chassis.edf
chassis_rot = 90 180 0

steer = C:\...\export\steer.edf
steer_rot = -90 0 180
steer_append = steer

fsusp = C:\...\export\fsusp.edf
fsusp_rot = -90 0 180
fsusp_append = fsusp

rsusp = C:\...\export\rsusp.edf
rsusp_rot = 90 180 0
rsusp_append = rsusp

fwheel = C:\...\export\fwheel.edf
fwheel_rot = 0 0 0
fwheel_append = fwheel

rwheel = C:\...\export\rwheel.edf
rwheel_rot = 0 0 0
rwheel_append = rwheel

This is the .ini code i use when exporting a bike

You will need to use helpers in 3ds Max (or what ever Blender/Maya uses)

Take a look at Piboso template bike file for reference (http://forum.mx-bikes.com/index.php?topic=974.0) of where the Helpers need to be.

Steven

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: fbx2edf parameter options
« Reply #2 on: March 04, 2017, 07:20:41 PM »
Thanks for the answer, but what I wanted is to launch fbx2edf with a .bat file for example. So it would be possible to generate the .trp and the .map "at once" without adjusting the options in the fbx2edf converter everytime.
To show the problem with "Recalculate" - left side is with parameters and right is with the UI with "Recalculate" on.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2149
    • View Profile
Re: fbx2edf parameter options
« Reply #3 on: March 29, 2017, 11:29:52 PM »
FBX2EDF updated:
http://forum.piboso.com/index.php?topic=3565.msg73105#msg73105

To replicate the "Recalculate" option, "use_normals" must be set to 0.

Steven

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: fbx2edf parameter options
« Reply #4 on: March 31, 2017, 08:45:18 PM »
Thank you!

If somebody wants to try this:

Code: [Select]
fbx2edf.exe input.fbx output params.ini [-q]

possibilities for params.ini:
Code: [Select]
[params]
type =
lightdir_x = 1
lightdir_y = 1
lightdir_z = 1
shadowvolumes_create = 0
shadowvolumes_supersampling = 2
shadowmaps_create = 0
shadowmaps_scale = 0.2
shadowmaps_supersampling = 2
merge_vert = 0
merge_dist = 0.0001
scale = 0
scaling =
use_normals = 0
use_smgroups = 0
use_angle = 0
angle =
outfilename =

type:
0   edf
1   map
2   edf (shadow?)
3   trp
5   wss

"-q" just seems to hide the log.
"outfilename" replaces the name "output".

When creating a .trp it also creates a file containing the trackcode (the files have strange random names).
Also together with
Code: [Select]
tracked.exe -merge track.trp center.tclit is possible to get the .map and .trp and merge the centerline in one go.
(Merging the centerline just doesn't work with files/paths including whitespaces (quotation marks don't work?).)