Page 1 of 1

Projection of a Planar Texture onto a Mesh

Posted: 23 Jul 2008, 07:03
by Argh
Uh... medium-difficult OpenGL question... how do I go about applying a projection of a texture onto a collection of triangles? I.E., I want to do a planar projection onto a Unit... how do I do that? IIRC, jK wrote a cubemap projection for some thing in CA... I want to do a simple, one-plane projection. How do I get the positions of the texture coordinates right?

Re: Projection of a Planar Texture onto a Mesh

Posted: 23 Jul 2008, 11:22
by jK
glTexGen

Re: Projection of a Planar Texture onto a Mesh

Posted: 23 Jul 2008, 16:35
by Argh
Looked at this... http://pyopengl.sourceforge.net/documen ... en.3G.html

I guess I'll have to go read through how this works a bit more to understand how the heck to apply this. Maybe a spheremap can fake what I want to do.