Jump to content
  • Advertisement
Sign in to follow this  
VeryUseless

OpenGL OpenGLES - Texture Projection?

This topic is 3553 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, Not sure where to ask this, but I've searched high n low and I'm more stuck than a glue sniffer on Tuesday. Can someone give me some help working out how to go texture projection in OpenGL ES? It doesn't have the EYE_LINEAR stuff, which means it all has to be done manually, which is fine if you know how. :) I've googles for hours today and just keep finding the same examples using the OpenGL eye_linear stuff. In standard OpenGL, no worries, but ES is hampering me. Any help or links to examples or anything would be well n truly appreciated! Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Do you mean 'projective texturing'? Where you have a 'projector' (lightsource) that projects an image (texture) onto the objects in your scene? I.e. where you instead of manually supplying a texture-coordinate for each vertex, you calculate them such that it looks like an image is projected onto the objects?

If so, i learned it from the "Cg Tutorial" chapter 9.3. This book is now avaliable online for free at: http://developer.nvidia.com/object/cg_tutorial_home.html

(i could have written a longer explanation here, but i'm not yet 100% sure we're talking about the same thing)


Note, i don't know anything about OpenGL ES, but it seems like you do have shaders. Also, i've never used glTexGen. If you have shaders, glTexGen is unnecessary, since you can calculate the texture coords however you want in your shaders yourself.

Share this post


Link to post
Share on other sites
Quote:
Original post by ZaiPpA
Note, i don't know anything about OpenGL ES, but it seems like you do have shaders. Also, i've never used glTexGen. If you have shaders, glTexGen is unnecessary, since you can calculate the texture coords however you want in your shaders yourself.
OpenGL ES 2.0 has shaders, ES 1.1 does not. Unfortunately, ES 2.0 devices are still relatively rare, while 1.1 devices (such as the iPhone) are quite common.

Share this post


Link to post
Share on other sites
Thanks, but yeah, unfortunately no shader support under OpenGL ES 1.1.

That's exactly what I'm trying to do tho, project a texture like a slide projector, but I need to do the matrix maths all manually.

Any ideas?

Thanks again.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!