Skip to main content
gamedev.net
๐Ÿ”’ Locked

something about the segment

Started by chinaSTU Apr 25, 2009 at 8:58 AM 1 replies 700+ views
Original Post
chinaSTU
chinaSTU
Hi all.I have a problem.Please look the picture i post: I make the cube to rotate.But I find some segments of the cube are not very smooth.The cube is imported from the .x file.And i also try "D3DXCreateBox(g_D3DDevice, 3, 3,3, &g_cube, NULL)".It done nothing.How can i figure out this problem???Thanks you very much.
Evil Steve
Evil Steve
What do you mean "not very smooth"? Are you using dynamic lighting? If so, remember that lighting is only applied at the vertices, so if you only have 4 vertices on a face, dynamic lights won't show up very well.
chinaSTU
chinaSTU
YES!!!.You are right.I find this:
if i use "g_D3DDevice->SetRenderState(D3DRS_LIGHTING, FALSE);",the line of cube is straight. if i use"g_D3DDevice->SetRenderState(D3DRS_LIGHTING, TRUE);", the line of cube is not so good,just like the flection and curve.How can i solve this problem?
Thank you!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.