HIT Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Really insane glitch when using normal mapping + detail textures  (Read 2042 times)

0 Members and 1 Guest are viewing this topic.

Captain B.O

  • Headcrab
  • ***
  • Offline Offline
  • Posts: 32
    • View Profile

Okay so with rather large help from my brother I've manged to get normal mapping working in Half-Life, and while it does look good I'm wanting to use detail textures as well. When I tried to add a normal map and detail texture to the same "regular" texture it was a case of either or. The Detail texture wouldn't work when the normal mapping was turned on. I tried having normal mapping on and adding a detail texture to another "regular" texture and...  :o.


Prepare yourself...

Here is what the map looks like with normal mapping (and detail textures) turned off:
http://captainbo.info/whatthefook/nmap10000.jpg

Now.. when I turn it on:
http://captainbo.info/whatthefook/nmap10001.jpg

It seems that the top-right corner of that little window at the bottom left affects the hue of the biggest window.
http://captainbo.info/whatthefook/nmap10002.jpg

Here are some more:
http://captainbo.info/whatthefook/nmap10003.jpg
http://captainbo.info/whatthefook/nmap10004.jpg

What the hell is going on with our equipment?



Just in case you're wondering what use normal maps have, take a look at what it should look like ;):
http://captainbo.info/whatthefook/nmap10005.jpg
(sorry about crappy texture filtering there, it would look sharper with anisotropic filtering)
« Last Edit: October 24, 2010, 09:13:47 PM by Captain B.O »
Logged

Kruk

  • Alien Grunt
  • ******
  • Offline Offline
  • Posts: 368
    • View Profile
Re: Really insane glitch when using normal mapping + detail textures
« Reply #1 on: October 28, 2010, 12:44:56 AM »

Nice someone is working with normal maps in the old engine XD AWESOME !

Im don't really know how it's possible for them too work at all in gold engine :3.
Personally t i can't remember seeing diffuse detail and normal maps used at once (onley detail normal maps with standard normal map) in one material.
Meybe you just cant render it in real time??

Are you using 8 bit textures? from a wad file?

If you got normal maps whats the point with diffuse detail XD

Btw if im not mistaking you are impling pixelshader with dynamic light?
 is it posible to make dynamick shadows, use normal maps on models lighting them corecley ?




Logged

Captain B.O

  • Headcrab
  • ***
  • Offline Offline
  • Posts: 32
    • View Profile
Re: Really insane glitch when using normal mapping + detail textures
« Reply #2 on: October 28, 2010, 07:13:39 PM »

Hi there, it's done using Cg (a programming language for OpenGL made by Nvidia). What it does it take 24 bit .bmp files (outside of the WAD) and overlay it over the diffuse textures, controlled by a text file (just like detail textures). I wanted them both because some textures don't need normal maps on them so using detail textures would save a few resources. Unfortunately you can't add normal maps to models, only bsp textures.

http://web.archive.org/web/20080428154543/collective.valve-erc.com/index.php?doc=1091469531-97736200 This is the tutorial if you want to implement it yourself. Keep in mind that using this causes graphical problems for transparent/additive textures on models and sprites.
Logged

Kruk

  • Alien Grunt
  • ******
  • Offline Offline
  • Posts: 368
    • View Profile
Re: Really insane glitch when using normal mapping + detail textures
« Reply #3 on: October 28, 2010, 07:25:47 PM »

Hi there, it's done using Cg (a programming language for OpenGL made by Nvidia). What it does it take 24 bit .bmp files (outside of the WAD) and overlay it over the diffuse textures, controlled by a text file (just like detail textures). I wanted them both because some textures don't need normal maps on them so using detail textures would save a few resources. Unfortunately you can't add normal maps to models, only bsp textures.

http://web.archive.org/web/20080428154543/collective.valve-erc.com/index.php?doc=1091469531-97736200 This is the tutorial if you want to implement it yourself. Keep in mind that using this causes graphical problems for transparent/additive textures on models and sprites.

hey that's just too much for me XD
I think i will continue my mod in standard ;]
Logged