Basic 3D

Started by
3 comments, last by Scooter 23 years, 8 months ago
How exactly are 3d objects put into games, are they read from a file like a .3ds file or are the coordinates defined within the code? with that in mind how can I add a simple sphere to my program?
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
Advertisement
Yes your correct, they are usually loaded from a file, unless the people are crazy, or they are simple shapes. Most common formats are 3ds, asc, ase, obj probably. As for loading a sphere into your scene, unless you use glut, i believe you must pull out an old math book and find some formulas. Youd probably be better off with some simplier shapes to start with.

~ Chris
ok, well i can do really simple shapes like a cube or a pyrimid, but a sphere seems kinda hard.
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
Simple sphere? What''s that?
Bradley Mason Shaw Bond
Actually, you don''t need to use glut, you can use glu. Infact, you probably include this anyway, for your perspective set up. You use GLUquadric to make up the texture mapping, and a single glu call to draw the sphere, cone, disc or partial disc. Otherwise, you can actually just draw a sphere in a modeller, then export it and load in the vertices.

This topic is closed to new replies.

Advertisement