Easier Plotting - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Easier Plotting (/thread-7714.html)
Easier Plotting - sinclair44 - Jun 8, 2002 11:21 AM
Is there a program that I could use to plot the x,y,z coords for OpenGL in actual 3D space, like Strata 3D Base or Maya PLE (without texturing) that could export to a text file with all the coordinates in it? Working out with graph paper all of the coords is very time consuming and difficult.
Easier Plotting - Jeff Binder - Jun 8, 2002 12:05 PM
I don't know of any way to directly export models into code, but generally it's better to load the 3D models from a file. OpenGL doesn't have any built-in way of doing this. Basically, pick a format you like, look up the specification, and write code that loads the data from the file and displays the model. Some formats are easier to parse than others and some really aren't good for games, so you may want to shop around.
I'd recommend you download the shareware program Meshwork and use its native format. It's an easy to use format, the models are efficient for use in GL, and it supports everything you're likely to need in a game (multiple textures, bones, etc). There's an example (in Obj-C) on this site that loads and displays Meshwork format models.
Easier Plotting - sinclair44 - Jun 8, 2002 12:24 PM
Quote:Originally posted by Jeff Binder
Actually, if it output something like:
I also don't want to spend money (I have very little as a student) if possible, but Meshwork isn't much (is it?).
[EDIT] I can't seem to download the source from http://188.8.131.52/downloads/srcmac/cocoa/MeshworkImporter.sit (link from http://www.idevgames.com/fileshow.php3?showid=280). Is it a busy signal? [/EDIT]
Easier Plotting - Jeff Binder - Jun 8, 2002 01:00 PM
I think it has something to do with the server switch. You can also get it here:
The specification for the Meshwork (which is $30 BTW) is here:
Easier Plotting - Mutle - Jun 17, 2002 02:59 PM
An alternative would be the Wavefront .obj format, which is very easy in syntax and implemention, and afaik Strata and Maya PLE should support exporting into this format.
If you want information on this file format, have a look at http://www.wotsit.org/
Easier Plotting - Nimrod - Jun 18, 2002 11:32 AM
Quote:Originally posted by Mutle
I don't think Maya PLE exports to anything, because of its restrictions. If you don't mind learning a little MEL, then you can export your own text format to Maya's console, then copy it to a text file. Have a look at this tutorial at macscene.org. If you're not familiar with Maya PLE it's free and restricted to non-commercial use, and pretty good, although it's even buggier on the mac than on PC, or so I hear... at least it's on OS X, so won't crash your whole system.
Easier Plotting - sinclair44 - Jun 18, 2002 02:24 PM
Thanks for the info!