Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 24th, 2007, 11:24 AM   #1
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
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 is offline   Reply With Quote
Old May 24th, 2007, 11:25 AM   #2
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
also, please do not laugh at the last three letters of the generated HTML code from youtube... ¬_¬
Seif is offline   Reply With Quote
Old May 24th, 2007, 11:29 AM   #3
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Good work! I know how hard that stuff in OpenGl can be to get working.
__________________
Death smiles at us all. All a man can do is smile back.

Last edited by Eric the Red; May 24th, 2007 at 11:40 AM.
Eric the Red is offline   Reply With Quote
Old May 24th, 2007, 11:31 AM   #4
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 301
Rep Power: 4 Klarre is on a distinguished road
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!
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old May 24th, 2007, 12:14 PM   #5
sixstringartist
Programmer
 
Join Date: Jun 2005
Posts: 68
Rep Power: 4 sixstringartist is on a distinguished road
Very interesting.
sixstringartist is offline   Reply With Quote
Old May 24th, 2007, 1:15 PM   #6
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Nice work, Looks very good.
Booooze is offline   Reply With Quote
Old May 24th, 2007, 7:20 PM   #7
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
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?
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old May 29th, 2007, 1:18 PM   #8
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
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 is offline   Reply With Quote
Old Jun 4th, 2007, 5:06 PM   #9
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
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.

Last edited by Seif; Jun 4th, 2007 at 5:47 PM.
Seif is offline   Reply With Quote
Old Jun 4th, 2007, 5:29 PM   #10
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 301
Rep Power: 4 Klarre is on a distinguished road
"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...
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# as a script engine.. System.CodeDom.Compiler cloud- C# 2 Mar 11th, 2007 8:43 AM
PHP search engine script grimpirate PHP 4 Sep 14th, 2005 11:05 PM
UltraLight game engine is now a community project rpg_code_master Coder's Corner Lounge 1 Apr 25th, 2005 12:58 AM
Converting to a scrolling tile engine....ABSURD! Aourhgad C++ 3 Feb 16th, 2005 11:00 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:19 PM.

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