Game Development Community

1.4-DRL-TLK and a request for Help with Bumpmapping

by Alan James · 04/24/2006 (7:08 pm) · 5 comments

Ok everyone, it's my usual "I'm way over my head, hep me hep me!" Post. Since producing content and building levels would be much too productive and lead to possibly a completed game some day, I've attempted to implement the Bumpmapping resource for TGE:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6431

At this point I have no compile errors, I get the console message:

CG:callback set
CG:interior initShader started
CG: found frag profile...
CG:interior InitShader() finished
0


Which I believe is correct. I have the libs included, cg files, dropped the .cg and .exe into my example/cg directory, created DOT3 compliant files with the both ATI and Nvidia tools, but I end up with this in game:

www.reallyreallygoodthings.com/screens/bumpscreenshot2.jpg
www.reallyreallygoodthings.com/screens/bumpscreenshot3.jpg
This is really close, but there is something small that I've missed. Just enough that the DOT3 images aren't blending *just* right. I've tried making them with several programs, the results are the same. On closer inspection you can notice that the DOT3 textures are tiling in a smaller pattern than the main texture:

www.reallyreallygoodthings.com/screens/bumpscreenshot4.jpg
And at a distance they look pretty good:

www.reallyreallygoodthings.com/screens/bumpscreenshot5.jpg
but I'm just stumped at what I've missed. If anyone has had success at integrating this resource into 1.4 with TLK & DRL I'd love to hear about it, and am open to any suggestions as to what I've done/am doing wrong.

#1
04/24/2006 (7:31 pm)
Very nice, not counting your tiling problem.

I seem to recall a detail texture resource for dts shapes through the LW2dts converter which had a similar problem. I memory serves, the problem was that detail and the main texture would only map at a 1:1 ratio.

However, I *think* resource/correction was developed to over come this.

You may want to search around an see if you can locate it, the solution may be along the lines of what you need.
#2
04/24/2006 (8:05 pm)
What hardware do you have that you're getting 53.4 FPS with DRL and Bump mapping? That's amazing.

Oh, and i do look forward to Monster Island some day!
#3
04/24/2006 (10:47 pm)
@Andrew

Thanks, hopefully Monster Island will be finished some day!

In regards to the framerate...about 2 weeks ago freaked out about my integrated video card's performance so I ordered a BFG 7300GS...of course I knew my motherboard didn't support pci-e, so I had to get a new motherboard...and my power supply wasn't pci-e compatible so I had to get a new power supply...and the power supply wouldn't fit into my case, so I needed a new case and with changing out that much hardware I didn't want a problem with all my work so I copied the partition onto a new 200GB hard drive... =P

P4 3.2 GHZ w/HT with 768mb DDR 400, BFG7300GS 256MB, twin 200GB SATA hard drives with a 80GB Backup
- Alan
#4
04/25/2006 (11:56 am)
Write the author, Kevin Johnson. He's a good friend, and may know the solution to your problem. He's been out of the GG loop for a bit lately, so he may not see this here.
#5
04/25/2006 (2:21 pm)
Erik,

Thanks, I'll email Kevin tonight when I'm off work. Appreciate your help!

- Alan