Specular Highlight (Bitmap)

Archives Forums/Blitz3D SDK Programming/Specular Highlight (Bitmap)

John Pickford(Posted 2007) [#1]
I remember when working on N64 games it was possible to add a specular highlight to an object in the form of a bitmap image (usually just a white blob). Presumably the u\v coords were updated by the hardware like with environment mapping (perhaps it's the same thing)?

In B3D you can set shinyness for s similar effect but it's fairly crude as it uses vertices. Is there anyway to do with with a texture layer?


Big&(Posted 2007) [#2]
Fredborg did a sort of hack way of accomplishing it here:
http://www.blitzbasic.com/en/codearcs/codearcs.php?code=1928

I have used it and it does give good results, the only thing is you usually have to double up on the pollys.


John Pickford(Posted 2007) [#3]
Cheers, I have a look.


John Pickford(Posted 2007) [#4]
Solved this. Just add a second texture with the cubic environment mapping flag (128) and set its blend mode to ADD (3). Looks perfect.


Big&(Posted 2007) [#5]
What sort of texture do you have as your specular John?
It it just the "white dot" method or are you doing something else?


John Pickford(Posted 2007) [#6]
Well it's a cube map but yes, white dots to represent lights work well. In theory you could do a lot more (Ste's working on that now).