[School Project] Rendering Engine

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

User avatar
Boogy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 27
Joined: Sun Mar 06, 2011 3:59 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Breda, The Netherlands
Contact:

[School Project] Rendering Engine

Post by Boogy »

My very first serious post here :)

For a school assignment we have to make a 3D rendering engine with either DirectX or OpenGL.
I decided to go with DirectX :)

The minimal requirements for the final assignment are:
  • Display a 3D model with animation
  • Basic particle effects
  • Basic terrain with a single texture
This is what I have at the moment:
Image

A textured rotating cube :mrgreen:

The next thing on my todo list is model loading.
I keep you updated in this thread when I have something new to show ;)

TODO:
  • Load MD5 file and display model
  • Animation
  • Terrain
  • Particles
Last edited by Boogy on Tue Mar 15, 2011 5:55 pm, edited 1 time in total.
Student @ IGAD
Image
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: [School Project] Rendering Engine

Post by GroundUpEngine »

That's what I call a fun assignment! Nice start :)
User avatar
Boogy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 27
Joined: Sun Mar 06, 2011 3:59 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Breda, The Netherlands
Contact:

Re: [School Project] Rendering Engine

Post by Boogy »

GroundUpEngine wrote:That's what I call a fun assignment! Nice start :)
Last block we had to make a software rasterizer which was pretty fun.
I managed to render 95k of polys on 20 fps on my laptop, Intel Core2Duo T6500 @ 2.1 GHz
Student @ IGAD
Image
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: [School Project] Rendering Engine

Post by thejahooli »

Out of interest, how long do you have to complete this assignment.
I'll make your software hardware.
User avatar
Boogy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 27
Joined: Sun Mar 06, 2011 3:59 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Breda, The Netherlands
Contact:

Re: [School Project] Rendering Engine

Post by Boogy »

thejahooli wrote:Out of interest, how long do you have to complete this assignment.
One block, which is 7 weeks of lectures and 1 week to study for your exams so in total you have 8 weeks to complete the assignment
Student @ IGAD
Image
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: [School Project] Rendering Engine

Post by Ginto8 »

Particle effects shouldn't be too much of a hassle, and rendering terrain from a heightmap shouldn't provide too much difficulty either, so good luck with this, I'd bet it'll look really cool when it's done! :mrgreen:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
ParticleGames
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 53
Joined: Sat Feb 19, 2011 1:20 pm
Current Project: A map editor for a platformer I plan to develop
Favorite Gaming Platforms: Wii, Gamecube
Programming Language of Choice: C++

Re: [School Project] Rendering Engine

Post by ParticleGames »

Looks good so far, show us the finished product when you're done!
Check out my iPhone app here: http://twilighthop.com
User avatar
Boogy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 27
Joined: Sun Mar 06, 2011 3:59 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Breda, The Netherlands
Contact:

Re: [School Project] Rendering Engine

Post by Boogy »

I want you guys to meet bob:

Image

Bob is a MD5 model that currently resides in my rendering engine :) 8-)
Student @ IGAD
Image
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: [School Project] Rendering Engine

Post by GroundUpEngine »

MD5 sexy! ;)
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: [School Project] Rendering Engine

Post by dandymcgee »

Hi Bob! Bob, you should really change your name to something a bit more.. original.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: [School Project] Rendering Engine

Post by eatcomics »

dandymcgee wrote:Hi Bob! Bob, you should really change your name to something a bit more.. original.
GIMLEY!
Image
User avatar
Boogy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 27
Joined: Sun Mar 06, 2011 3:59 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Breda, The Netherlands
Contact:

Re: [School Project] Rendering Engine

Post by Boogy »

I finished my terrain loading today.
It takes an 8 bit raw heightmap and converts it to a terrain :)
I also had a bug which turned it into some sort of minecraft-like terrain :P

EDIT: If you want to see for your self you can download the application here. Use the left mouse button to rotate the camera and move with w,s,a,d. Shift to move twice as fast.

Multi textured bugged 'terrain' :P
Image

Multi textured normal
Image

Single textured ''bugged'
Image

Single textured normal
Image

More images

BTW I am almost done with my particles. I have a firework particle effect and I can generate snow and rain :)
Student @ IGAD
Image
pritam
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 991
Joined: Thu Nov 13, 2008 3:16 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Amiga, PSOne, NDS
Programming Language of Choice: C++
Location: Sweden

Re: [School Project] Rendering Engine

Post by pritam »

Thats pretty sweet, can we see a wireframe closeup on the terrain?
User avatar
Boogy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 27
Joined: Sun Mar 06, 2011 3:59 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Breda, The Netherlands
Contact:

Re: [School Project] Rendering Engine

Post by Boogy »

pritam wrote:Thats pretty sweet, can we see a wireframe closeup on the terrain?
Sure :)
Image
Student @ IGAD
Image
pritam
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 991
Joined: Thu Nov 13, 2008 3:16 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Amiga, PSOne, NDS
Programming Language of Choice: C++
Location: Sweden

Re: [School Project] Rendering Engine

Post by pritam »

That was quick :)

I was just asking 'couse the terrain looked blocky, but now that I think about it the triangle placement shouldn't matter that much, however I think it would look smoother if the height of each vertex were calculated as bilinear (which I'm guessing it's not and that the height map's dimensions are smaller than the terrain's).

This might help wiki.

It seems easy to implement but I can't speak from specific experience here.

Triangle placement in a pattern like this:

Code: Select all

|\|/|
|/|\|
Would make it more well rounded, but probably doesn't have the same impact as the bilinear thing.
Post Reply