Hi, as some of you probably know I finally got a 3d card that can do multitexturing. I’ve been trying to figure out how to collapse a 2-pass rendering technique into one multitextured pass. I’m not sure if it’s even possible…
Here it is:
- Turn off OGL lighting and texturing.
- Render objects in pure white/yellow.
- Turn lights and texturing back on.
- Render the objects again.
Okay, so whats so good about that? Well, the textures for the objects have an alpha channel and are mostly fully opaque, but where theres a window in the RGB image there a blob of transparency in the alpha channel.
This means I can use OGL lighting and still have full-lit ‘windows’. See?
So can I use multitexturing somehow by turning off the the lights on one texture unit ? (Its sounding more dodgy the more I think about it )