Author Topic: How do you make a 3d-file format?  (Read 1800 times)

Gabbe

  • Guest
How do you make a 3d-file format?
« on: 11 October 2010, 17:18:44 »
How can i make a file format like the g3d?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: How do you make a 3d-file format?
« Reply #1 on: 12 October 2010, 18:02:43 »
That's well over your skill level. Don't get in over your head. Start with an existing 3D format such as .x or .3ds and use an existing engine like OGRE or Irlitch.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: How do you make a 3d-file format?
« Reply #2 on: 12 October 2010, 19:10:13 »
Ok, anyways, over my skill level :( :) :( :)  :|

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: How do you make a 3d-file format?
« Reply #3 on: 13 October 2010, 01:26:16 »
To clarify this topic a little, a 3d format is a defenition of what you want to show in your game/application. the more advanced things you want to show the bigger the models are going to be :).

so, in order to USE a 3d format, you need a application that shows models :).

wich means, you must code one. :),

hence why its 99% secure over your current skill level :).
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: How do you make a 3d-file format?
« Reply #4 on: 13 October 2010, 01:46:31 »
Well, in its simplest form, it would need to hold vertexes, faces, normals, etc; However, realistically, you'd also have to hold texture vertexes, texture links, animation frames, colors, etc; More advanced model formats also include things like lighting, specular, multiple textures, etc;

However, its a lot more complex than it sounds, and you would have to create a way to render the model, which would almost definitely need a customized or entirely custom-made engine. Just because Glest did it doesn't mean you have to... In fact, the Glest Team could probably have created Glest faster, added more features like shaders and realistic water very easily, and have glest run faster, had they used a ready made engine like OGRE to render everything. Overally, graphics is one of the hardest parts of programming a game, and studies show that the majority of production for games is for graphics (though presumably, that's mostly the literal graphics, though rendering parts of programs make better graphics easier to do).

In fact, engines like Irrlitch are so simple to use that even I can get a 3D model in, add bump maps, custom shaders, a terrain, add "gravity", set a skybox, add boundaries, and place realistic lighting with shadows in relatively little time. I strongly endorse that you try either OGRE or Irrlitch (both is a good idea) as they are easily the most powerful, best feature-wise free engines out there. And why develope on a non free engine when the free ones can do just as well? No royalties FTW.

As for model formats, I think that .3ds and .x are some of the most common and most compatable (.x may be directX's format, but its compatable with most major graphic engines on most operating systems. After all, the model format itself is just a plain text file).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: How do you make a 3d-file format?
« Reply #5 on: 13 October 2010, 18:59:11 »
<so using Ogre all will be easier? The thing is i want to learn so...Well over my skill level ^^

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: How do you make a 3d-file format?
« Reply #6 on: 14 October 2010, 00:09:09 »
Well, I personally think Irrlitch is much easier to use, though OGRE is far more powerful. Both are very good, so why not take a closer look at them?

http://www.ogre3d.org/
http://irrlicht.sourceforge.net/
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: How do you make a 3d-file format?
« Reply #7 on: 14 October 2010, 00:41:07 »
And that mean i can have a look at their code and change if wanted?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: How do you make a 3d-file format?
« Reply #8 on: 14 October 2010, 01:01:37 »
Yes, you can, but trust me dude, don't. You're getting over your head again :D. Programming an engine is a million times more complicated than just using an engine to make your stuff.

The engines themselves are more than powerful enough for any purpose that you could possibly need at the moment. In fact, the graphical power of the engines easily is better than what your capable of creating in graphics ;).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: How do you make a 3d-file format?
« Reply #9 on: 14 October 2010, 01:11:24 »
The purpose was to have a basic engine made. What i want is a basic engine that i can mod. Thats how i learned previously, is irr or ogr any good for that?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: How do you make a 3d-file format?
« Reply #10 on: 14 October 2010, 03:55:43 »
Yes, but be honest... do you really think you can mod an entire engine? :P :P :P
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: How do you make a 3d-file format?
« Reply #11 on: 14 October 2010, 04:27:15 »
Mhnaaa, maybe, its not like im gonna finish, its a learning process :) I think i could mod "something" but i wouldnt be able to rewrite it :O lol..

I think i would need to have my own engine to make it, the game is going to be a simulator of earth..in low poly and with only a small area were you can see..Myabe i should make a new topic..

 

anything