Dot3 with colored light?

Blitz3D Forums/Blitz3D Programming/Dot3 with colored light?

Jan_(Posted 2004) [#1]
I use Dot3 for my Games,
I need colored Lights, but i think i'm not skilled enough, to create it.
Many many hours i tested it, but the light was never colored.
thx for help.


jfk EO-11110(Posted 2004) [#2]
Somebody correct me if I am wrong - afaik dot3 is not a lighting method, but a shading method - it will only subtract brightness from the texture to simulate a detailed surface. So if you light your screne with real lights, it might work the way you want.


Jan_(Posted 2004) [#3]
Oh, Real

That is possible, hard work and the answer was so easy.

THX, -=Norc=-
(warum sieht man dich nicht mehr auf BlitzForum.de)


jfk EO-11110(Posted 2004) [#4]
Als das alte Forum veloren ging, mit den kompletten, genialen Code Archiv usw., dachte ich, ich wart mal ab, wie es sich entwickelt. Ich will mich ja nicht alle 3 Tage neu registrieren. :) Mal sehn, vielleicht werd ich wieder Mitglied.


Chi3f Stadi(Posted 2004) [#5]
JFK, i think your last post was not dedicated to this post ? right ?


AntonyWells(Posted 2004) [#6]
Use an ambient map. I.e a 8x8 texture the color of the light, then blend this in over the final ops.

You can't really use normal blitz lights 'cos you have to use the underlying verts colors to the normal of the light vector.
Unless you're using dot3 for something other than bump-mapping, in which case ignore that.


Jan_(Posted 2004) [#7]
Yes,

I test it.
It's a good idea.
I hope the performance is good.

@chi3f stadi: riht =)


jfk EO-11110(Posted 2004) [#8]
Stadi - it was a sidenote and answer to drdeads question "(warum sieht man dich nicht mehr auf BlitzForum.de)". Yes, his question was off topic, but at least he openend this thread :)