Jump to content

Recommended Posts

Posted

Hi.

 

I want to know if it's possible to get leadwerks to do this automatically when an fbx is imported:

  • look for embedded or referenced materials/textures (does not seem to work by default)
  • set scaling for the model to 1.01 units to 10.1 cm
  • show up correctly when inspected in preview tool

I'm using autocad 2015 to make the models and materialize/texture them but it's awkward to import them.

 

Thanks in advance.

Posted

How does it not show up correctly when viewed in the preview tool? (I assume you mean the Model Editor.)

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

It appears the model is huge and its origin is not on the model itself but far away. Suggest placing the origin at the corner of the model and scale down the model before exporting. Also, this model does not have the UVs properly mapped (actually appears there are no UVs at all).

 

As a reference, one square in the grid is 100x100 meters.

post-14-0-28169100-1452982628.jpg

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

There is no obvious origin to begin with, but i can move the object to the origin.

As i can't determine the proper scaling i defaulted to millimeters.

 

And i did not bother with UVmaps as this is a sample object which i will most likely replace later.

 

 

Edit: preview fixed, still not sure about the scale

Edit2: i tried different scaling and i think i hit a usable ratio

 

#Solved (except for the automatic materials import that leadwerks does not support)

Posted

Leadwerks uses cm.

 

The Leadwerks Editor's default grid dimensions are in centimeters. "The Leadwerks Engine uses a scale of one unit space = one meter. Therefore, a centimeter is 0.01 units, a millimeter is 0.001 units, and so forth." Engine commands that require distance or position values are in meters.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...