Jump to content
  • Advertisement
Sign in to follow this  
deathwearer

possible to draw inside a cube?

This topic is 4819 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, i wan't to make a Pong 3D with Directx to give me a project to work on to practice with directx. Right now i am uncertain on how i will make the "field" Where the ball move. I tought about drawing my ball and move it inside a cube ( more like rectangle ) but is it possible? Because of what i think is called back culling in english, that's gonna give me some problem. Does anyone has a better idea on how i can make the field? I want a field like a box with no clipping draw in wireframe.

Share this post


Link to post
Share on other sites
Advertisement
If you want to draw the inside of a cube instead of the outside, you just need to flip all the triangles in the mesh. You can do that by reversing the order of the vertices that make up the triangles.
Quote:
In Microsoft® Direct3D®, only the front of a face is visible. A front face is one in which vertices are defined in clockwise order.

Share this post


Link to post
Share on other sites
Your normals will be wrong if you just reverse culling mode.

They'll still be pointing outwards, which will give you really weird lighting artefacts.

Allan

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!