Archived

This topic is now archived and is closed to further replies.

Bobby-D

Advanced sphere mapping question

Recommended Posts

Problem: Currently, when I do sphere mapping, the vertex whos normal is pointing staight at the camera, is allocated the texture coorinate which is the center of the texture image. So if I have a texture image which is the radius of a light, the brightest point on the mesh, is the point which faces the camera. Is there a way of changing it so that the coordinate generation is base on a point that I give instead of the camera point? I have made a procedure to generate the coordinates manually, but it''s way too slow. One by one, the peguins steal my sanity.

Share this post


Link to post
Share on other sites
That singularity you''re talking about is inherent in sphere mapping. Check out the ARB extension for cube mapping.

Share this post


Link to post
Share on other sites