A poormans Bumpmapping
by Paul Ash · in Torque Game Engine · 07/16/2007 (4:46 pm) · 9 replies
Created in the TGE.
Took me all day yeash, but it looks great!
www.imagedump.com/index.cgi?pick=get&tp=508859
Took me all day yeash, but it looks great!
www.imagedump.com/index.cgi?pick=get&tp=508859
About the author
#2
07/16/2007 (10:12 pm)
Its a cheap way of bump mapping. its not baked in at all.
#3
there was another cost to it as well, lost detail mapping, but hey, bump mapping makes everything look way better anyways!
Here it is on the light, cant really see the bump map on it in that last picture, here is a close up
www.imagedump.com/index.cgi?pick=get&tp=508891
07/16/2007 (10:18 pm)
It only uses the closest light to calculate, so it doesn't look very pretty if there is more then just one light (it looks like only the closest one is casting a shadow) but for how little code it really took to get working (also only works in OpenGL) im happy with it.there was another cost to it as well, lost detail mapping, but hey, bump mapping makes everything look way better anyways!
Here it is on the light, cant really see the bump map on it in that last picture, here is a close up
www.imagedump.com/index.cgi?pick=get&tp=508891
#4
07/16/2007 (10:36 pm)
Is the bump mapping being applied to the entire scene or just the door?
#5
07/16/2007 (10:47 pm)
Entire scene, tho the other walls and such have really bad bump maps, need to go thru and revisit them, but the light has a pretty nice one, alittle to sharp tho
#6
07/16/2007 (10:51 pm)
Nice work.
#7
07/16/2007 (10:56 pm)
Don't worry, I plan on putting this out as a resource once i get it tweaked out to what I would call perfect. So keep a lookout for it, might add D3D support for 'SAG' too
#8
07/17/2007 (4:37 am)
Cool,and I'd love to see the TGE code for that. I've often wondered about doing that, just haven't had enough mental bandwidth to deconstruct MK. This would be the perfect place to start.
#9
07/31/2007 (2:56 pm)
Yeah, I would like to see some code for that too. Or better yet, show me some code for normal-mapping.
Torque 3D Owner Max