Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Existing Project Development (http://www.programmingforums.org/forum51.html)
-   -   3D rendering Graphic Engine (http://www.programmingforums.org/showthread.php?t=13206)

Seif May 24th, 2007 12:24 PM

3D rendering Graphic Engine
 
Hi all,

I'm writing a mini graphic engine for my Advanced graphics assignment. some features currently include:

# OpenGL for rendering
# SceneGraph for managing SceneNodes such as cameras, meshes, lights etc
# 2D spriteManager
# Customizeable
# OBJ file loader
# TGA file support for textures

Although this is very much still a work in progress, I am however now at the stage where I can see results of my hard work.
heres a quick youtube video containing a room with desk, 3 chairs, a book on the desk, some spread pages and a PC under the Desk.

http://youtube.com/watch?v=vcY6CrLyGAY

My next stage is to load the textures of the walls chairs etc, and load them accordingly. As you can see I am using one texture at the moment for all objects, but this shows that the texture UV's are rendering the textures correctly on the objects.

I also get this scene properly lit with some lights, and to add something that is animated. These are all part of the requirements for my assignment.

As I enjoyed this work and the learning process of it all, I would like to continue working on this project, and start building some robust libraries. some future work I am already considering is :

# MD2 and FBX support
# fix BMP and possibly add other image files support ?
# particle effects system

Not releasing the Code as of yet as its in a very raw state, but will release the full source in two weeks time when Its due in, complete with some web documentation until then if anyone is interested in this.

Thanks for checking out my current project :)

Seif May 24th, 2007 12:25 PM

also, please do not laugh at the last three letters of the generated HTML code from youtube... ¬_¬

Eric the Red May 24th, 2007 12:29 PM

Good work! I know how hard that stuff in OpenGl can be to get working.

Klarre May 24th, 2007 12:31 PM

Looks good so far. Looking forward to see it with textures. If you got some kind of design document (UML or simliliar) it would alos be fun to see.

Keep up the good work!

sixstringartist May 24th, 2007 1:14 PM

Very interesting.

Booooze May 24th, 2007 2:15 PM

Nice work, Looks very good.

mrynit May 24th, 2007 8:20 PM

look good so far, but why the dark red and black?

I to am interested in 3D graphics. I have this book but no OpenGL book. What text book(s) and materials are you using for your class?

Seif May 29th, 2007 2:18 PM

Hey guys, thanks for the feedback.

Sorry its taken a while to get back to you all, but my fingers lost to a fight with a burning hot bbq ans have therefore been incapacitated this week.

@Klarre, I will be generating some UML diagrams using starUML next week. I will post them up here afterwards. to for now, and the black is merely a clear bit color

@mrynit, the red is purely a base color I've set when rendering the face of the polys and set black as the clear color. The 1 black wall is due to it being culled on the wrong side. This is due to me not checking the normal of the face when modelling it.
You are definately on the right track with the book you have now. I'm still learning the basics of OpenGL, but Fortunately I had a good knowledge of vector maths, which helped me with the development of the OBJ loader and a working camera class.

One Book I would recommend is the good old red book. The original version is available free. Its a bit old, but the basics have barely changed in recent times.
Also the Blue Book which is also free, which is a reference manual for OpenGL.

links for these two at :

red book - http://www.glprogramming.com/red/
blue book - http://www.glprogramming.com/blue/

Also I found Advanced Graphics using opengl by Hill a pretty good read. not sure of ISBN though.

Hope some of that is of use to you.

I'm actually falling behind on what I originally had planned due to the bad hand. not long after posting, I actually got the textures to load up correctly to the meshes, my final task is the lighting now. Will post my progress including source, video footage, and UML diagrams (incomplete though) on monday.

Seif Jun 4th, 2007 6:06 PM

Hi again,

Heres a short Video of the final system which I submitted earlier today.

http://youtube.com/watch?v=akZIRKk_wwo

for the animation of the fish and fan, I actually stole a State Machine system i initially wrote for my final year project, but works pretty well.

Some UML for outlining the design.

http://www10.asphost4free.com/seifst...ementation.jpg
http://seifsta.110mb.com/overviewofabm.jpg
http://seifsta.110mb.com/overviewofengine.jpg

It's not great, but I got the requirements done in time. would have been a lot better if i didn't have this past week n half off with a burnt hand, the actual animations, lighting, semi transparent objects were pretty much a rush job and done last night. I haven't been able to upload the source yet as my connection keeps dropping. Probably just as well as at the moment as I haven't had a chance to fully annotate the source code.

Anyways, I hope someone may find some use for it. Will upload as soon as i can.

Klarre Jun 4th, 2007 6:29 PM

"Forbidden

You don't have permission to access /overviewofimplementation.jpg on this server."

Seems like you haven't set the right permissions on the files...


All times are GMT -5. The time now is 2:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC