PDA

View Full Version : About Dot3 Texturing



jeppa
04-30-2002, 07:17 AM
is it possible to make per-pixel lighiting
whitout bump-effect using Dot3 "Texturing"??


Thanks in advance

davepermen
04-30-2002, 07:51 AM
yes

just dot the normalized point_to_light vector with the normalized surfacenormal

use two normalization-cubemaps, in one you give the (objectspace!! no tangent/texturespace needed)-normal in (can be done with simple texgen), in the other one the objectspace point_to_light (can be done with simple texture-matrix! no vertexprograms needed http://www.opengl.org/discussion_boards/ubb/wink.gif)

and then you simply dot the two textures in the texenv.. thats it..

jeppa
04-30-2002, 08:02 AM
thanks for your reply.exist one examples about it??

thanks.

Nutty
04-30-2002, 08:15 AM
Theres a demo with source on my site, showing how to do non-bumped per pixel lighting.

It uses Register Combiners to do the DOT3, but you could quite easily change it.

The rusty-metal box on here; http://www.nutty.org/OpenGL/Nvidia/index.html

Nutty

jeppa
04-30-2002, 08:18 AM
Thanks Nutty.exist "ONE better way" for per pixel lighting???


Thanks
Sandruzzo

davepermen
04-30-2002, 01:19 PM
please don't use that "exists?", its "does there exist some other way..?" or something like that http://www.opengl.org/discussion_boards/ubb/wink.gif

well thats the most easy..

SirKnight
04-30-2002, 04:21 PM
please don't use that "exists?", its "does there exist some other way..?" or something like that
well thats the most easy..


Actually it would make more sence as, "Does some other way exist?"

Also since we are on the subject of correcting grammar (hehe http://www.opengl.org/discussion_boards/ubb/smile.gif ) "well thats the most easy" should be, uh...(trying to figure out wth you mean http://www.opengl.org/discussion_boards/ubb/wink.gif) "Well, that is the easiest way."

Useless post by me but what the heck.
http://www.opengl.org/discussion_boards/ubb/smile.gif

-SirKnight

davepermen
05-01-2002, 02:18 AM
i just stated it because i needed to read 3 times before i even understood what he was asking to nutty.. (and even now i'm not sure what he wants, as the way presented _IS_ the most easy on todays hardware..)

all i forgot was a ' nothing more http://www.opengl.org/discussion_boards/ubb/wink.gif

and sir night, its a big nono to use the verb itself conjugated in questions.. you always have to use do (or the last 6 years of english-lessons where wrong.. hum i had a real ENGLISH teacher, so i think he knows how to talk http://www.opengl.org/discussion_boards/ubb/wink.gif)

Michael Steinberg
05-01-2002, 07:05 AM
Six years of english lessons weren't enough to teach you the diferrence between "where" and "were". =]

[This message has been edited by Michael Steinberg (edited 05-01-2002).]

davepermen
05-01-2002, 08:23 AM
Originally posted by Michael Steinberg:
Six years of english lessons weren't enough to teach you the diferrence between "where" and "were". =]

[This message has been edited by Michael Steinberg (edited 05-01-2002).]

yes they did
i think..
well..
where were you in the holidays?
i was in canada.
were you visiting the huge watefalls?
yes i was.
where are those waterfalls again?
in niagara.. that's why they are called niagara-falls http://www.opengl.org/discussion_boards/ubb/smile.gif

or, for insiders:
"lesson 1: margareth goes to the market"