Jump to content


milkshape exporter


  • You cannot reply to this topic
3 replies to this topic

#1 danieljamestravers

    New Member

  • Members
  • PipPip
  • 29 posts

Posted 05 November 2005 - 11:24 PM

Hi All.

Ok, heres my situation. I want to develop a 3D space application. I am going using opengl/glut/C or maybe C++ to create it. I want to create a quite simple spaceship in a modelling program.(probably milkshape). The creation of the spaceship doesnt pose that much of a problem to me. But the exporting of the final model is my biggest problem that i am thinking about at the moment. Heres what i would hope you can help me with.
1. I want to know what I need to be able to export my model into my opengl application.

2. What is a better/simpler/easier modelling program for a newbie to use for modelling and also exporting the model? (3d studio max OR milkshape)

3. What do I have to do (code-wise) to actually render it in my application? (if there is any good code examples out there on the net for rendering the model in my application. if you could give me a few web links i would be very greatful)

4. Also, have yee any tips to help me out at all? Remember I am a newbie to this whole modelling application exporting thing. So please, try keep it as simple for me to understand as possible.

Thanks all in advance.


Daniel.

#2 Wernaeh

    Senior Member

  • Members
  • PipPipPipPip
  • 368 posts

Posted 06 November 2005 - 12:20 AM

Hi there =)

Quote

1. I want to know what I need to be able to export my model into my opengl application.

A programm that exports to a file format you know (see wotsit.org for a quite comprehensive listing), and an importer (... you usually can write this one yourself...) that loads the appropriate file into a memory structure your code can handle.

Quote

2. What is a better/simpler/easier modelling program for a newbie to use for modelling and also exporting the model? (3d studio max OR milkshape)

Well, if its just about usability, and such, I'm quite in favour of Cinema 4D by Maxon (not all too well known, but still very good if you need a poly modeller).
But, considering you think of yourself as a newbie, I'd rather dissuggest buying 3D Max or any other expensive software package (... and I do hope you didn't talk about a _illegal_ copy ...) Either go for milkshape, which I think is quite uncomfortable to use, or use blender, which is even worse to get into, but free.

Quote

3. What do I have to do (code-wise) to actually render it in my application? (if there is any good code examples out there on the net for rendering the model in my application. if you could give me a few web links i would be very greatful

Well, after you got the entire mesh in memory, just walk through all tris and push them with

glBegin(GL_TRIANGLES);

glVertex3f(x, y, z);  // Repeat this one for all vertices

glEnd();


Not fast, but good enough for testing purposes. Then, read up on VBOs, or display lists to get it fast. Also have a look at nehe.gamedev.net, I think they have a tutorial about mesh rendering as well.

Quote

4. Also, have yee any tips to help me out at all? Remember I am a newbie to this whole modelling application exporting thing. So please, try keep it as simple for me to understand as possible.

Start small. Don't try to get a pixelshaded doomy bone animated physically correct moving zombie on screen as your first test object, you will most probably fail doing so.
First, try with a box and a simple (maybe text based) format, so you can walk through your code by hand and see what every line does. I'd suggest sticking to the milkshape ASCII format at first.

I hope that helps.

Cheers,
- Wernaeh

#3 danieljamestravers

    New Member

  • Members
  • PipPip
  • 29 posts

Posted 06 November 2005 - 12:43 AM

that did help Werneah. thanks.

#4 roxtar

    Member

  • Members
  • PipPip
  • 94 posts

Posted 06 November 2005 - 04:24 AM

One of the NeHe tutorials has exactly what you asked for. Hope that helps.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users