• Advertisement

Archived

This topic is now archived and is closed to further replies.

Transforms, and Draw Primitive.

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

Are the points you send to DrawPrimitive Transformed when you send them to it?, also, does it light the vertices when you do the right SetRenderState, and is there D3DTLVERTEX, just if you want to do the Lighting and the Transformations yourself. Thanks alot, jus trying to get clear on the concept

Share this post


Link to post
Share on other sites
Advertisement
If you send untransformed vertices, they will be transformed within DrawPrimitive.

Lighting always occurs (even on lit vertices) unless the D3DRENDERSTATE_LIGHTING render state is set to FALSE.

You can find more information on this topic in the SDK help under Direct3D/Essentials/Vertex Formats and Direct3D/Essentials/Lighting and Materials/Enabling and Disabling the Lighting Engine.

Share this post


Link to post
Share on other sites
When you send a D3DTLVERTEX or simmilar structure, they should be transformed already. They do not have to be transformed and do not have to be used for 3d. If you send a structure without lighting information then DX will light them by default. (Given that you did not set D3DRENDERSTATE_LIGHTING to false)

Share this post


Link to post
Share on other sites

  • Advertisement