PDA

View Full Version : OBJ Format



Andrew Waller
01-19-2006, 10:53 AM
Hi All,

Im using a model made in maya and have it successfully exported in the .obj format.

What I was looking for is somebody who has sample code I can use to read in the obj and output it in an opengl window.

Can anybody help with this problem.
Please let me know

andras
01-19-2006, 01:04 PM
You can look up the format specification here: http://www.wotsit.org/

And here's Nate Robin's code to load and display OBJ files: http://www.xmission.com/~nate/smooth/smooth.zip

Mikkel Gjoel
01-21-2006, 11:22 AM
A couple of more links. First, shame on your for not checking the homepage of everybody's favorite übergeek:
http://astronomy.swin.edu.au/~pbourke/dataformats/obj/

source for reading obj
http://www.sgi.com/products/software/opengl/examples/more_samples/zip/smooth.zip

Cheers,

Andrew Waller
01-22-2006, 08:44 AM
thanks to both your replys I got the obj reading in just fine now.

Not familiar with the ubergeeks website maybe u can send me the link and I will look it up

Mikkel Gjoel
01-22-2006, 11:32 AM
Uhm, ok. Here you go:
http://astronomy.swin.edu.au/~pbourke/dataformats/obj/

;)

rgpc
01-23-2006, 02:01 AM
<monty burns>I thought I told you to trim those sideburns!</monty burns>