View Full Version : rendering models
09-22-2003, 04:15 PM
I am trying to write a game using opengl, but I am having trouble deciding how to display the game models. I have designed one of the models in a 3d rendering app (Solidworks). What is the best (but not most difficult) way to transfer my 3d model into opengl code?
09-23-2003, 12:43 AM
You could also write your own model importer, which reads the model file. Just read in all the necessary data from the file at load time, and then draw the model using the info.
09-23-2003, 07:58 AM
Mr Shoe, could you please elaborate?
09-23-2003, 08:39 AM
There's not much to elaborate on. Find the spec for the file format, which should document the exact layout of the file, then read the file in yourself using the standard C/C++ methods for files. (fread/ifstream, etc).
Look at www.wotsit.org (http://www.wotsit.org) for the specs on a number of different file formats.
The easiest way would probably be to convert the model to an easy format (obj, meshwork, etc.) and then use someone else's model loader.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.