Game Development Community

dev|Pro Game Development Curriculum

Plan for Chris "Hobbiticus" Weiland

by Chris \"Hobbiticus\" Weiland · 10/02/2003 (9:27 am) · 14 comments

For the passed few weeks, I've been working on specularity in Torque on all objects. So far, terrain, .dts, and water all have bump mapping and specularity using vertex/fragment programs. I've used Cg as the api of doing all of this. I've had to first integrate the Cg api into the engine, then apply it to each type of rendered object to get something that looks quite nice. Torque can be a very dark engine most of the time, so it's nice to see some specular highlights and shininess to brighten it up a bit.

The source code for this will not be made public, but I'm thinking of releasing it at some point as a content pack for $15-20. Hey, I gotta make money some way, right? The most major change was ripping out all references to voodoo and d3d, which greatly simplified the graphics layer, cut the executable down by a couple hundred killobytes, and sped up the startup time. Other than that, it's just a matter of integrating the rendering techniques into all of the objects, which can actually be quite a challenge. Though, so far I'd like to thank Clark Fagot for writing the TS library so nicely as to allow such effects with minimal impact :)

Anyway, I bet you're hungry for some pics, so here are some examples of what's been done:

BEFORE:
Torque guy: hobbiticus.acm.jhu.edu/things/guyBefore.png
Orc: hobbiticus.acm.jhu.edu/things/orcBefore.png
Campfire circle: hobbiticus.acm.jhu.edu/things/campBefore.png

AFTER:
Torque guy: hobbiticus.acm.jhu.edu/things/guyAfter.png
Orc: hobbiticus.acm.jhu.edu/things/orcAfter.png
Campfire circle: hobbiticus.acm.jhu.edu/things/campAfter.png

Here are some links to some movies that really show off the realtime specular and water reflections:
hobbiticus.acm.jhu.edu/things/shiny.avi
hobbiticus.acm.jhu.edu/things/shinybump.avi
hobbiticus.acm.jhu.edu/things/beforeafter.avi


Also, if Mark reads this, can you help me out with this?
www.garagegames.com/mg/forums/result.thread.php?qt=13110
Thanks :)

Oh, and I know about the wierd stuff - I think those are just errors in the models, but I don't know for sure. My appologies if some of the links don't work as I have no time to test them since I'm going to be late for my physics lab...

Whoops! fixed the movie urls

#1
10/02/2003 (11:18 am)
Lookin good! I'd buy that for $20 :)
#2
10/02/2003 (1:07 pm)
*WEll* worth $20.
#3
10/02/2003 (2:03 pm)
$20? Heck yeah I'd buy it!
#4
10/02/2003 (2:37 pm)
Hmmm...$40-50? :)
#5
10/02/2003 (2:43 pm)
Did you say something, Chris? ;-)
#6
10/02/2003 (5:48 pm)
$20 hell yeah! maybe $24.95... got to have .95 in it!

Whats the frames per second lost with all of this in?

P.S. chris the movies are in "things/movename" where the images are.
#7
10/03/2003 (2:03 am)
Looking good Chris!
#8
10/03/2003 (4:13 am)
Let's see if my post gets eaten again.

Looks great. I will buy.
#9
11/06/2003 (12:32 pm)
Hey what are the system specs and resolution that you were running there? and what was the frame rate that you were able to get? Looked pretty smooth but would be good to know in comparison with your systems specs to get an idea of "real world" performance
#10
11/15/2003 (9:17 pm)
SOmething id definately support you for.

However!
How about a resource for flushing the references to voodoo and d3d down the shitter?
#11
12/27/2003 (2:46 am)
Cool... I am looking for it. ;)
When is the estimated time to release?
#12
02/13/2004 (11:02 am)
Hello Chris
Some months has gone, whats up with this wonderfull project ?
When it will be finished ? I hope you arent stopped the work on.
When are you planning to drop it into ebusiness ?
#13
05/09/2004 (4:02 pm)
Just emailed Chris and asked.
#14
09/02/2004 (8:25 pm)
ummm next time could you go faster in circles and maybe get a closer shot of the back of your head.. :)

hehehe just kidding.. well from what I see looks pretty sweet..
noticed the reflections in the underwater scene is reversed.. ie looks like it is reflecting form above but isnt righted underneath.. weird.. :)

looks great..