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.
Post Reply
Heldighenrik
Posts: 2
Joined: Wed Nov 30, 2016 8:09 pm

Creating own simple 3D engine

Post by Heldighenrik »

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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Creating own simple 3D engine

Post by CuteAlien »

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.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Heldighenrik
Posts: 2
Joined: Wed Nov 30, 2016 8:09 pm

Re: Creating own simple 3D engine

Post by Heldighenrik »

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.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Re: Creating own simple 3D engine

Post by Virion »

I've been learning 'raw' OpenGL 3 (core profile) lately and the math is driving me nuts xD
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Creating own simple 3D engine

Post by CuteAlien »

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.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Creating own simple 3D engine

Post by REDDemon »

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
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Creating own simple 3D engine

Post by Mel »

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
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Re: Creating own simple 3D engine

Post by Virion »

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.
Post Reply