Completely lost

Started by
11 comments, last by Spencer Bowers 12 years, 4 months ago

[quote name='jonarmstrong' timestamp='1323685809' post='4893060']No one creates 3D polyhedrons at run time via code? Do I just need to use a 3D program to create the models for the dice?
Some programs have code to generate them. It's really not much of a big deal. In some cases, they have the data encoded as constants. I have icosahedron hardcoded in a array and cube in a code snippet.

So I would recommend looking into opengl, since that's a little quicker to learn...
With C#? I'm not sold on that. I have used OpenGL for a while... to be completely honest, I suggest against using OpenGL in the first place. I still cannot understand how you people can say OpenGL is easier to learn. My main problems in understanding Direct3D9 were indeed caused by OpenGL over-reliance. Direct3D10 is totally awesome. Don't get me started on the documentation.
[/quote]

Actually most quad, box and sphere geometry used for debugging purposes is still all generated at runtime and never loaded from any file. It is the simple concave shapes that are nearly always generated on the fly, as you need these for more then just graphics, physics can make use of these as well to do collision testing.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

Advertisement

As a side note, I don’t know if something went wrong in your post or if you really have a habit of not indenting properly.
Just in case it is the latter, knock it off. Never fail to indent when you open a new if/while/for/etc.
It is absolutely unacceptable in the entire world of programming to enter an if/while/for/etc. without indenting an extra level.




L. Spiro


I didn't fail at anything. It was a problem with the post. Regardless, it comes off pretty rude. :(
Regarding your actual request for how to build a 3d die roller: use XNA and a physics engine (I use BEPU.) XNA is absolutely the easiest 3d engine I have ever used, and I have used several. You can build a polyhedral shape in code and BEPU can use the vertex data to build your collision object.

This topic is closed to new replies.

Advertisement