Jump to content
  • Advertisement
Sign in to follow this  
eastwood20

[Help] It seems not smooth

This topic is 3457 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

Hi everyone, I'm a new guy on graphics programming. I just got a problem. Here is a pic shows the same model drawn in different enveriment. Phong Lighting They both using basic Phong Lighting Model with the same HLSL code.The uper one is drawn in my game, and another one is drawn in RenderMonkey. Obviously the car in my game seems not as smooth as another one. I don't know why :( Maybe it is caused by some RenderState?

Share this post


Link to post
Share on other sites
Advertisement
It looks to me like you are using face normals in game, rather than vertex normals. That is, the vertex normals are the same as the face normals. You might want to check your model loading code? Out of curiosity, which format are you using?

Share this post


Link to post
Share on other sites
Yeah! You are right! Thank u!
Irrlicht engin always do the operation composeObject() when loading 3ds model.
Here is the reason:

mb->Vertices[vtxCount].Normal = pl.Normal;
mb->Vertices[vtxCount+1].Normal = pl.Normal;
mb->Vertices[vtxCount+2].Normal = pl.Normal;

The loader using face normal instead of vertex normal.

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!