Easier Plotting

sinclair44
Unregistered
 
Post: #1
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.
Quote this message in a reply
Jeff Binder
Unregistered
 
Post: #2
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.

HTH.
Quote this message in a reply
sinclair44
Unregistered
 
Post: #3
Quote:Originally posted by Jeff Binder
I don't know of any way to directly export models into code <snip>

I'd recommend you download the shareware program Meshwork and use its native format. <snip> There's an example (in Obj-C) on this site that loads and displays Meshwork format models.

Actually, if it output something like:

Code:
Object: DummyObj
Shape 1: Square
: 1, 3, 5
: 1, 4, 7
: 3, 9, 4
: 4, 6, 2

Shape 2: Triangle
: 1, 5, 2
etc.

Object: SecondObj
Shape 1: Polygon
: 1, -3, -5
etc.

I also don't want to spend money (I have very little as a student) if possible, but Meshwork isn't much (is it?).

Thanks!

[EDIT] I can't seem to download the source from http://64.246.17.165/downloads/srcmac/co...porter.sit (link from http://www.idevgames.com/fileshow.php3?showid=280). Is it a busy signal? [/EDIT]
Quote this message in a reply
Jeff Binder
Unregistered
 
Post: #4
I think it has something to do with the server switch. You can also get it here:
http://homepage.mac.com/jechk/meshworkimporter.sit

The specification for the Meshwork (which is $30 BTW) is here:
http://www.codenautics.com/meshwork/doc/...tml#SEC3.4
Quote this message in a reply
Mutle
Unregistered
 
Post: #5
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/
Quote this message in a reply
Nimrod
Unregistered
 
Post: #6
Quote:Originally posted by Mutle
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/

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.
Quote this message in a reply
sinclair44
Unregistered
 
Post: #7
Thanks for the info! Cool
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  sdl with a native ui on the iphone is easier than you may think michelleC 0 2,427 Mar 17, 2010 12:05 PM
Last Post: michelleC