Jump to content
  • Advertisement
Sign in to follow this  
gchewood

No normals generated with fbx file?

This topic is 1730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

(I hope this is in the right section)
 

Ok so I'm using 3ds max. Up until now I've been using the Panda exporter for .X files. I've just switched to the built in fbx exporter as it allows for 2 sets of uv coords. However, when I use the same shader code for the same models that have been exported as fbx, anything using normals fails to work. There are no errors or anything, they just don't seem to have been generated.

 

So if for example in the pixel shader I end with:      return float4(input.Normal.xyz,1);
The entire model is black. Thoughts? Ideas?

 

Thanks

Edited by gchewood

Share this post


Link to post
Share on other sites
Advertisement

Just my luck. Trying to solve it for hours and then figured it out about 10 mins after posting.

 

Turns out it was because of the order I used with the vertex declaration in the shader. I don't know if someone wants to delete this thread or just leave in case someone else has the same issue?

Share this post


Link to post
Share on other sites

The order of entries in the vertex declaration in the shader shouldn't matter - the mapping is determined by the semantics (POSITION, NORMAL0, etc...).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!