Sign in to follow this  
AndrewPL

swapped Normals

Recommended Posts

Hi! After a month of hard work i finally made working x file animation code. I have only one problem. Some of normals on my mesh are swapped. Which functions are responsible for normals on mesh? Maby somebody had the same problem. Thx for answer if any.

Share this post


Link to post
Share on other sites
Hi there AndrewPL,
How are you doing?

[Swapped Normals?]
1) Your mesh might have been exported incorrectly. You have an option that you can invert the normals in most of the X exporters.

[Conclusion]
I hope this helps. If you have any more queries, please don't hesitate to ask

Share this post


Link to post
Share on other sites
Hi Andrew,

Could you please describe to us why you are thinking it is your normals that are inverted. You could have an issue that you think is related to the normals. To better equip us to answer your question, could you please assist us by pasting a few screenshots?

Share this post


Link to post
Share on other sites
sorry testing... i hope it'll work

Free Image Hosting at www.ImageShack.us


[URL=http://img69.imageshack.us/my.php?image=aaaa9ve.png][IMG]http://img69.imageshack.us/img69/4932/aaaa9ve.th.png[/IMG][/URL]

[url=http://img69.imageshack.us/my.php?image=aaaa9ve.png][img=http://img69.imageshack.us/img69/4932/aaaa9ve.th.png][/url]

Share this post


Link to post
Share on other sites
I sloved the problem. Thx for reading. If anyone is interested i mised those two functions:

d3dpp.EnableAutoDepthStencil = TRUE;

and I had:

g_pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,255), 1.0f, 0 );

insed of:

g_pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET|D3DCLEAR_ZBUFFER, D3DCOLOR_XRGB(0,0,255), 1.0f, 0 );

I hope i'll finish work soon and show my progress in a complite source code of x-file animation

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