Creating own simple 3D engine

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.

Creating own simple 3D engine

Postby Heldighenrik » Wed Nov 30, 2016 8:15 pm

Hi

Im completely new to this topic, but I would like to learn how to create my own 3D engine. A simple one which can show a 3D tetrahedron for an example. It doesn't need to be in realtime or anything fancy like that.
It's a huge topic, and i've had trouble finding a starting point. I know the basic math needed to create the objects, I just dont know how to create them in a computer. Any help is much appreciated.

Regards,
Heldighenrik
Heldighenrik
 
Posts: 2
Joined: Wed Nov 30, 2016 8:09 pm

Re: Creating own simple 3D engine

Postby CuteAlien » Wed Nov 30, 2016 8:32 pm

Study an opensource engine (like Irrlicht...). In our case the most important stuff to get started would probably be the devices (that's the stuff to set up a window and make it fullscreen etc) and the drivers (those are the classes which send the 3d data to opengl or direct3d).
So for Irrlicht it could be CIrrDeviceLinux (or CIrrDeviceWin32 if your are more interested in that) and COpenGLDriver. Those 2 classes should give you a basic idea how to communicate with the operating system and with the graphic card drivers.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8441
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Creating own simple 3D engine

Postby Heldighenrik » Wed Nov 30, 2016 9:36 pm

Thank you, im gonna take a look at it tomorrow. Didn't expect an answer so quickly. I'll give a heads up in this thread if there is anything that confuses me.
Heldighenrik
 
Posts: 2
Joined: Wed Nov 30, 2016 8:09 pm

Re: Creating own simple 3D engine

Postby Virion » Tue Dec 06, 2016 7:36 am

I've been learning 'raw' OpenGL 3 (core profile) lately and the math is driving me nuts xD
User avatar
Virion
Competition winner
 
Posts: 2141
Joined: Mon Dec 18, 2006 5:04 am

Re: Creating own simple 3D engine

Postby CuteAlien » Tue Dec 06, 2016 10:32 am

There is a good book out there: Game Engine Architecture from Jason Gregory. It also contains a lot of general game programming basics. And some nice math chapters about the usual vector/matrix math you need in 3D.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8441
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Creating own simple 3D engine

Postby REDDemon » Tue Dec 06, 2016 11:51 pm

When you will realize how to do it and how much time it takes to change from your version to what you think is now good. you could already have done several games.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
User avatar
REDDemon
Developer
 
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Creating own simple 3D engine

Postby Mel » Wed Dec 07, 2016 12:47 am

That's one of the major disadvantages of the current 3D API, the time they take to learn... but then, if they were easy, there wouldn't be that many engines, right?

Anyway, i'd start also by pointing something. You're doing an engine... for what? a 3D engine per se isn't really appealing. If you're doing a game you might want to have an engine for that specific game, if your aim is to create physical visualizations, perhaps you want to focus on precission instead of speed. I'd say that you had something in mind for what you need an engine, and if the current engines don't fill your needs, well, go ahead and build one.

Also, a great help could be a maths library and GLM, for instance gives a lot being focused mainly on OpenGL, so it might be your shot at maths libs. Good luck!
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
User avatar
Mel
Competition winner
 
Posts: 2243
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Creating own simple 3D engine

Postby Virion » Wed Dec 07, 2016 8:27 am

I would suggest you to try several game engines first (unity, ue4, gamemaker, etc.), it will help you to understand how a game engine works before trying to make your own (most of the time you will be reinventing the wheels anyway). I personally used quite a number of game engine before, I just learn OpenGL for fun.
User avatar
Virion
Competition winner
 
Posts: 2141
Joined: Mon Dec 18, 2006 5:04 am


Return to Everything 2d/3d Graphics

Who is online

Users browsing this forum: No registered users and 1 guest