Archived

This topic is now archived and is closed to further replies.

sakky

3D file formats

Recommended Posts

sakky    100
I want to know witch file format I can use with OpenGL, thats best for me. I''m better at file io, but I want a file thats very simple to use with OpenGL. I kinda wanted something like the X file. Were I can write the file in text or binary and then rend it. I would also like to know how to use INI or CFG files in a program. I want to be able to turn fog on and off and controll some colors. So would I use CFG or INI? I want a sort of Scripting look to it(INI file). I want to be able to change valuse of the fog and clear colors in a CFG, INI or some type of configuration file. I want to be able to load a 3D file in and view it. Thats why I wanted a 3D file format that could be writen in text. So I can change it with out recompileing my program. Then I would be able to change the fog color,deoth,start and end plus others in a configure file. The point of this is to make a cool little configurable demo.

Share this post


Link to post
Share on other sites
Yann L    1802
Look sakky, it (still) is the wrong forum here... Next time, try to choose the appropriate forum for your post.

[I wasn''t sure if I''d put that into the OGL or beginner forum, but I guess the beginner one is more appropriate.]

Share this post


Link to post
Share on other sites
IndirectX    122
If you''re creating the object data yourself, then you can invent your own file format. It can be text or binary; whichever you feel more comfortable with. If you tell us what kind of data you want to store in your files, we may come up with a sample file format to store that data.

As for the ini files, look into [Get|Write]PrivateProfile[Int|String] functions. They should do what you want.

Share this post


Link to post
Share on other sites
sakky    100
What I wanted was text and binary. Just like the X file, but less confusing for me. I kinda came up with something of my own. If I knew were the ID forums and tutroials were I would go there.

Share this post


Link to post
Share on other sites