openGl 3-D objects

:confused: :mad:

hi there !
well my question is how do we create 3D objects such as tables and chairs in openGl using c++. Also can someone refer me some websites from where i may download the code for such functions (functions that create chairs etc) ?

More often than not 3DObjects (models) aren’t created by a brute force method such as plotting vertices.

They are often created in a 3D modeling environment (such as 3D Studio max or Maya) and then imported into an OpenGL app.

check out:

you’ll find some pre assembled models there.

what you’ll need to do is find source for importing these models into your app.

search for .3ds loaders and .obj loaders to load models from the two apps i mentioned above.