TGE Bump mapping - first screens!
by Koushik · 03/24/2008 (6:24 pm) · 8 comments
As I had mentioned in my earlier post, I have been working with getting shaders onto DTS objects... once that was done, it was absolutely essential to get bump-mapping working, for that is one of the main reasons I started working on this.
Anyway, I have some images and a video to show-off in tis edition of "in-your-face shininess"... take it away folks!
Mandatory pics!



Even-more-mandatory video
Like they say, a movie speaks louder than a thousand pictures! (er... they actually say that, right?) You really should see this one, it shows off the light-effects better.
Bump mapping video
Please remember that this is still WIP. Most people think that getting bump-maps from the MK is straight forward, because the MK does come with a parallax-mapping shader. However, the way TGE 1.5 handles lighting on DTS objects is different from how it handles DIFs. You'll need to call the openGL lights in the shader, as the dynamic lights are stored in there. This was what I did to get per-pixel lighting to work, as outlined in my previous entry.
For the record, the normal maps for Kork (good 'ole loyal Korkie) and the crossbow were generated using a nifty little program called CrazyBump. I've generated some AO maps and some spec maps as well, but haven't used them yet. Definitely work for the future :)
Let me know what you think of it!
Anyway, I have some images and a video to show-off in tis edition of "in-your-face shininess"... take it away folks!
Mandatory pics!



Even-more-mandatory video
Like they say, a movie speaks louder than a thousand pictures! (er... they actually say that, right?) You really should see this one, it shows off the light-effects better.
Bump mapping video
Please remember that this is still WIP. Most people think that getting bump-maps from the MK is straight forward, because the MK does come with a parallax-mapping shader. However, the way TGE 1.5 handles lighting on DTS objects is different from how it handles DIFs. You'll need to call the openGL lights in the shader, as the dynamic lights are stored in there. This was what I did to get per-pixel lighting to work, as outlined in my previous entry.
For the record, the normal maps for Kork (good 'ole loyal Korkie) and the crossbow were generated using a nifty little program called CrazyBump. I've generated some AO maps and some spec maps as well, but haven't used them yet. Definitely work for the future :)
Let me know what you think of it!
About the author
Recent Blogs
• TGE Shader Pack• Shaders galore!
• Major announcements!
• ...And the sun shines again!!
• TGE normal mapping
#2
I really can't tell because the scene and character are so dark and contrasted.
03/24/2008 (7:04 pm)
Is this just bump mapping or dot3 bump mapping? (normal mapping) I really can't tell because the scene and character are so dark and contrasted.
#3
I'm running an onboard GeForce 6150FX integrated with an Athlon Dual processor on a friend's system (I have a GeForce2MX... lol), at 2.5 GHz. At 640 by 480, 32-bit color, I get around 35-40 fps quite easily. I suppose I could increase that a bit by increasing the alloted memory on the GPU (the card uses shared-memory). With only the MK built-in, I'd get around 40 fps, so not much of a difference.
@Ryan:
By bump-mapping, I presume you're referring to emboss bump-mapping? That is kinda old right now... in fact it could be done even without a shader call, by just using multitexturing and a cube-map for normalization. I suppose that would work even on cards that don't support high-level shaders, but can handle multitexturing. (I also think that TGE had some of this built-in, if you look through the DTS-SDK, you'll find references to a bump-map, though it was not implemented). This one is normal mapping. I've used the terms interchangeably though.
As for the darkness and high contrast, it was meant show off the bumpy effect. I generated normal maps from the stock TGE character texture, so the bumpiness was marred by the texture. I thought by increasing the disparity between the dark areas and the specular highlights, the effect would look more pronounced... like I said, its still WIP though...
03/24/2008 (7:54 pm)
@ T-Squared:I'm running an onboard GeForce 6150FX integrated with an Athlon Dual processor on a friend's system (I have a GeForce2MX... lol), at 2.5 GHz. At 640 by 480, 32-bit color, I get around 35-40 fps quite easily. I suppose I could increase that a bit by increasing the alloted memory on the GPU (the card uses shared-memory). With only the MK built-in, I'd get around 40 fps, so not much of a difference.
@Ryan:
By bump-mapping, I presume you're referring to emboss bump-mapping? That is kinda old right now... in fact it could be done even without a shader call, by just using multitexturing and a cube-map for normalization. I suppose that would work even on cards that don't support high-level shaders, but can handle multitexturing. (I also think that TGE had some of this built-in, if you look through the DTS-SDK, you'll find references to a bump-map, though it was not implemented). This one is normal mapping. I've used the terms interchangeably though.
As for the darkness and high contrast, it was meant show off the bumpy effect. I generated normal maps from the stock TGE character texture, so the bumpiness was marred by the texture. I thought by increasing the disparity between the dark areas and the specular highlights, the effect would look more pronounced... like I said, its still WIP though...
#4
Try creating a normal w/o enhancing the contrast and take some screenshots on a well lit* map.
Play around with 2 different color lights with subject just at the edge of the light sphere and see what you get.
03/24/2008 (8:08 pm)
Yeap it's old. It is still used for the terrain bump map for TGE 1.5.2 terrain though. I don't like to use it however, because it tends to change the whole color of the terrain when you view it in certain directions, and normal in others... So I just stick with detail images.Try creating a normal w/o enhancing the contrast and take some screenshots on a well lit* map.
Play around with 2 different color lights with subject just at the edge of the light sphere and see what you get.
#5
03/24/2008 (11:05 pm)
This is pretty darn neat stuff. I wish I could offer more then just thanks and appreciation, but if this ever goes live as a resource you'll have lots of it from me :P
#6
03/25/2008 (12:39 am)
Pretty freaking awesome. Definately WIP, but a WIP is far better than nothing. I reckon if you put a price tag on this, even $1, you'd make a killing :P. (Don't lynch me! You were all thinking it!)
#7
03/25/2008 (8:49 am)
This is an amazing innovation to the engine. Congratulations! Even while this is a WIP, it looks outstanding. A few tweaks here and there could really make this sellable (I agree with Daniel).
#8
04/05/2008 (11:22 pm)
Ok... big update coming up folks... embrace yourselves!! 
Torque 3D Owner Thanhda Tie
Digital Shock Inc.