Jump to content
  • Advertisement
Sign in to follow this  
Ksingh30

double sided quad

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

ok lets say I have this 3d world and a quad with a texture in it. but this quad is only visible from 1 side. how can i make it visible on both sides.

Share this post


Link to post
Share on other sites
Advertisement
Either you can render the quad twice or disable backface culling. To disable backface culling, you'd do something like this:

d3d->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);

Share this post


Link to post
Share on other sites
The normal doesn't matter. What matters is the order the vertices are rendered. (Clockwise or counter-clockwise)

Check out the documentation for D3DRS_CULLMODE.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!