PDA

View Full Version : Lost in textures



Bence Frenyo
07-21-2008, 11:42 PM
Hi everyone,

I'm new to GL, and I have to implement some chart map feature, which I'm playing with for a while and getting to lost here. I'd appreciate if someone could enlighten me which is the right way to go.

I've got a 2D scene, but later might turn to 3D. I want to texture it with map I get for a specified geographic location, and blend few other images over it.

1. I figured multitexturing here isn't right, because then I need one rectangle textured with more images but those are not necessarily for the same area, right? (Would be working as long as the texture is bigger than the rectangle, but not other way around, because then the texture is wrapped or clamped, no other choice.)

2. If I use different rectangles how do I make them half transparent, when I have full opaque image as textures? I don't want to change there alpha when I load them, because it might be useful and faster to change the alpha for the existing texture.

That's it for now, I think more questions will come...

Bence

Bence Frenyo
07-22-2008, 12:40 AM
In the meanwhile I got it working fine.