Jump to content

FBX imports - Leadwerks auto deletes it seems


redstar_dan
 Share

Recommended Posts

Hi all, I am very new to Leadwerks.

I seem to be having a problem with exporting from 3ds max and importing into leadwerks.

 

The FBX export, seems to work correctly, no error messages or warnings.

 

When I import the FBX in Leadwerks, my model never appears. If I drag the FBX into my scene, and drop it over one of the view ports, in the dialogue window, it states that the model has been deleted straight after it imports.

 

I assume there's something basic going on here, that I don't understand. Could somebody please shed some light on this for me :)

 

Many thanks,

Daniel.

Link to comment
Share on other sites

I also don't know what the "Deleting model" message is supposed to mean, since the model actually won't be deleted. After the import you probably have to open the model in the model viewer (double-click on it) and then save it there. Also, sometimes you have to recalculated the normals (under the Tools menu in the model viewer).

Link to comment
Share on other sites

Yes, same for me:

 

Loading model "F:/Leadwerks/Projects/LargeTerrain/Terrain/tutorial4mesh.mdl"

Deleting model "F:/Leadwerks/Projects/LargeTerrain/Terrain/tutorial4mesh.mdl"

Loading model "F:/Leadwerks/Projects/LargeTerrain/Terrain/tutorial4mesh.mdl"

 

but the model should be there as a black, empty icon in the asset explorer, and you can open it by double-clicking on that. The model viewer might should an empty screen, but when you save it (possibly recalculate normals first) and re-open it it should be visible. Also, after saving the icon in the asset explorer should become an (untextured) white.

Link to comment
Share on other sites

Thanks for the replies :)

 

I can see the model in the asset list, however it only appears in the root list, not under and of the sub folders.

 

If i double click the model (it immediately had a shaded icon of the model) the viewer appears empty, however i can see the vertex and poly count, so I know it is actually there.

 

I tried re-calculating and then saving and re-opening, however its still empty. I also tried flipping the normals, and the same issue of nothing appearing applies. I can see that flipping is affecting the model, as the thumbnail changes according to the flip.

 

colour me confused :)

Link to comment
Share on other sites

Ok Ive figured it out I think, it appears.

 

If I have glass element, do they need to be sepeare objects, or does the whole environment need to be one mesh?

 

Im also confused on how to make my mesh have collision. I placed a character into the scene, but it just drops through the world lol :)

Link to comment
Share on other sites

OK, great!

 

I'm not sure what you want to do with your "glass element" - have a transparent glass in your scene? There's a special shader for that (see under Shaders->Effects).

 

Your model won't automatically have a collision mesh. Either let Leadwerks create one (Right-click->Generate..) or import one from your modeling tool. Also, you should set the collision type which determines which collision events your model "sees" (in your case Character).

Link to comment
Share on other sites

Oh I see, sorry I was looking at the Scene Tab, not the Assets tab. Many thanks :)

 

I chose Polymesh, and now have a .phy file. I assume i need to add that to the physics tab of the mesh properties, and browse to it in the shape file?

 

I tried this, and the character still falls through the mesh :/

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...