BumpH images creation/manipulation? - lowfighter - 19.09.2008
I created some BumpH image for a texture by simply converting the original texture to grayscale then renaming to bumph. My question though: after converting to grayscale are there any processing rules (changing luminosity etc) which would give the best results (or i just have to experiment by trial and error)? (for who doesn't know, The bumpH texture adds sort of 3D illusion to the original "flat" colored texture)
- BBury - 19.09.2008
How are the "bumph" textures applied. Do we chain those next to the appropriate texture assigned in the load.ini or do they take up a grayscale value? Do you know which map load.ini I can look to for reference?
I have a couple areas on my MiddleEast map that could use this feature.
Thanks,
2bits
- lowfighter - 19.09.2008
2bits, in load ini only the chief RGB textures are listed, for example
lowland0=sk_lowland0.tga
The game looks for this file and AUTOMATICALLY looks if there exists a file called sk_lowland0.bumpH (also looks if there exists a file called sk_lowland0.tgb). If it exists it will use it together with sk_lowland0.tga (and or tgb). If it doesn't exist, well then the game will just use what it has namely the tga and tgb files.
- BBury - 19.09.2008
That's good. Thanks lowfighter.
2bits
- Neil Lowe - 19.09.2008
Quote:(or i just have to experiment by trial and error)?
Yeah, pretty much.
Although a sharper contrast will yield a more dramatic effect it seems.
Cheers, Neil
- lowfighter - 19.09.2008
Thanks Neil!
- BBury - 20.09.2008
What do the tgb textures do?
- lowfighter - 20.09.2008
If there's a tgb than the game uses that image instead of the tga. If you extracted the map textures you'll notice that most of textures have both a tga and a tgb, and always the tgb is higher size (higher resolution) than the tga. I suspect the tga is used with lower lanscape detail setting. Now if there's only a tga and no tgb, the game will use that one. But I forgot to use the phrase "I believe" here, so the best is if you can test it yourself...
- fabianfred - 20.09.2008
maybe the tgb is for when you are closer to the ground ...like when landing and t/o... more detailed
- lowfighter - 21.09.2008
Fred, I thought so too but pretty long time ago I wanted to modify one industrial texture (factory.tga). So I modified it, went to game and saw no change relative to original. Then I thought maybe since i modified only the tga and the tgb is unchanged and it's bigger size, maybe then the tgb represents the long sighting distance texture, so maybe I see the difference if I increase the sighting distance. but nothing changed...However when I changed afterwards the corresponding tgb then the result was immediately visible in game.
- Neil Lowe - 21.09.2008
I would guess that the *.tga is used in conjuntion the following conf.ini entries to help with vid card compatibility.
TexLarge=1
..........
TexLandLarge=1
I would assume by setting these to "0" would force the game to use the *.tga's rather than the larger *.tgb's
Cheers, Neil
- lowfighter - 21.09.2008
Yes, I think too this must be it...