Jump to content

Leadwerks Phong


ParaToxic
 Share

Recommended Posts

3 hours ago, Bolt said:

The FBX converter supports smoothing groups.  Before exporting your model from 3dsmax, check:
Geometry -> Smoothing Groups.

Modo should also have similar export options in Preferences -> File I/O -> FBX I/O.   Make sure Save smoothing groups is checked.

Is there anything that can be done to better support files that may not be perfect? The dwarf model must contain that data because it gets loaded in 3ds max. We're converting thousands of files right now so anything that optimizes the process will save a significant amount of time.

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

Link to comment
Share on other sites

The dwarf model has no smoothing groups, so everything gets smoothed as if it belongs to one smoothing group. To get this working with Leadwerks, the "armour" mesh should be split into its own smoothing groups.

Programs like Akeytsu don't seem to be using smoothing groups, instead they're reading the actual vertex normals. But, the catch is, sometimes they're stored per polygon vertex.  Which means, for a vertex to have more than one vertex normal, it needs to be split.  Because, as you know, most game engines store their normals per vertex.  So, Akeytsu is probably splitting up their mesh too, you just don't realize it.
 

Ultimate Unwrap 3D: http://www.unwrap3d.com

Link to comment
Share on other sites

Ok, I think I got it working.  Vertices must be split by their normal when loading data into per vertex buffers.

There are some artwork issues with your Dwarf model, btw, but the smoothing should now be correct.  The two beard strands are black because the faces are reversed (you probably scaled them by -1 or they were procedurally created), and the left foot has one polygon assigned to the wrong smoothing group (user error).
 

dwarfBeard.PNG

  • Like 1
  • Upvote 1

Ultimate Unwrap 3D: http://www.unwrap3d.com

Link to comment
Share on other sites

I downloaded Akeytsu just to try it out.  Their FBX import looks ok.  I get the same smoothing results as them now.  And I looked at the dwarf beard again, and it's actually the vertex normals that are reversed.  The face geometry is ok.  Akeytsu shows the same reversed normals too.  As for Unity, it might have double-sided lighting enabled by default, so it doesn't show up as black.

btw, I added a Split vertices per normal option to all the U3D FBX plugins if anybody wants to test it out.

  • Like 2

Ultimate Unwrap 3D: http://www.unwrap3d.com

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...