Vexator
11-04-2007, 07:50 AM
i have this texture:
http://www.desertsatori.com/vexator/spot2.jpg
i only want one of those circles to been projected on the scene.
i can offset the projection coordinates to limit it to the lower left circle:
vec2 p = vec2( proj.x*0.333, proj.y*0.5 );
Attenuation *= texture2D( texture, p/proj.w ).r;
http://www.desertsatori.com/vexator/spot.jpg
question: how do i have to offset the projection coordinates so that the other circles are projected? i guess those are not fixed values, but depend on the projector/fragment distance..
btw: i cannot post topics with firefox anymore, the forums always tell me that "the host from which you are accessing the board is not recognized as a valid host."
http://www.desertsatori.com/vexator/spot2.jpg
i only want one of those circles to been projected on the scene.
i can offset the projection coordinates to limit it to the lower left circle:
vec2 p = vec2( proj.x*0.333, proj.y*0.5 );
Attenuation *= texture2D( texture, p/proj.w ).r;
http://www.desertsatori.com/vexator/spot.jpg
question: how do i have to offset the projection coordinates so that the other circles are projected? i guess those are not fixed values, but depend on the projector/fragment distance..
btw: i cannot post topics with firefox anymore, the forums always tell me that "the host from which you are accessing the board is not recognized as a valid host."