Jump to content
  • Advertisement
Sign in to follow this  
Rannion

FBX double sided materials

Recommended Posts

Hi all and especially those who know about FBX SDK...

I've been using fbx sdk for some time now but I couldn't put the finger on how to know if a material or a piece of geometry is supposed to be double sided.

I can't find a flag or something that could tell me, this geometry needs to be rendered with no culling. I know in Maya this information exist but how is it exported to fbx file. I checked the forum in autodesk sdk but couldn't find any good answer. I know the community here has some serious fbx developper so I hope to get some hint.

I am currently working on a model which has a cape, it looks good in Maya obviously but the exported file doens't even show properly in fbx review. I know this is not really surprising... When loading the exported file (fbx) in Maya, I can see in the cape in the section "Render Stats", Double Sided is ticked. So somewhere this information must be stored.

Does anyone has an idea on how or where this information is stored in the sdk?

Many thanks.

Share this post


Link to post
Share on other sites
Advertisement

I have the same I issue, all I found about it is that 3ds Max and Maya do not export such info to FBX, I do not know if it is still true, this is issue is on halt for me, there could be some dirty workarounds like adding custom properties to the materials or the meshes.
 

Share this post


Link to post
Share on other sites

I'm happy to see I'm not the only one in this situation and that the answer is not so trivial.

Also I don't believe this information is coming from the custom properties, it could be a workaround for sure but I need to determine this from any FBX file.

Thanks for your post, let's hope we'll gather more informations here ;o)

Share this post


Link to post
Share on other sites

Thank you goalied00d for your answer but I know about culling and that is precisely the problem. In the Fbx file, the geometry has some winding order determined by the indices. And there is only one triplet of indices per triangle. So how do I know this triangle should be rendered both sided?

So to use the proper shader, I was expecting to find some informations in the materials.

Thank you anyway, might help others.

Share this post


Link to post
Share on other sites

Would it be possible to simply add "the flip-side" triangles to the model in your 3D modeler? You would have twice as many triangles for the cape, but I think it could be a not-too-hacky approach :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!