Jump to content
  • Advertisement
Sign in to follow this  
LenaM

Classconcept, big box with a lot of small boxes

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

Hello Forum, i'm new in managed directx and got a basic question, i hope you can help me. I've got a big container (only 6 walls) in a 3D room. This container holds a lot of small boxes, called cubes. The User can move these boxes via drag'n'drop. I'm working with C#, winforms, mdx 9.0c. My question is, how to organize my classes and how to create simple boxes. The performance is very important, because the 3D-View runs in a panel in a mdi-child-form. Currently the cube itselfs contains VertexBuffer, but closing the form takes a lot of time. The closing-time seems to increment every time i'm moving a cube. I draw them with SetStreamSource(). Is it recommended to create the cubes with Mesh.Box() (but without *.x-Files) instead of VertexBuffer or what is the best way? I hope you can give me a hint. In germany we say something like "i can't see the forest, because of the trees" in my position. Greetz Lena

Share this post


Link to post
Share on other sites
Advertisement
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!