Jump to content
  • Advertisement
Sign in to follow this  
AndyPandyV2

normalization cube map?

This topic is 4615 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

Hello I have attempted to use a normalization cube map for normalizing vectors in my fragment program and while it seems to be working there is a problem when it switches from one side of the cube to another. I've looked around for mention of a wrap mode that might take care of this but I can't seem to find one... anyone know if there is a way to make it smoothly go from one face to another so as to not get this visible line? http://www.lugtug.com/ShaderPicks/cubeMap.jpg Also are normalization cube maps worth using? My performance doesn't seem to have improved at all but that could be because I'm doing a zillion texture fetches in the shader already.

Share this post


Link to post
Share on other sites
Advertisement
On a 6800 a normalization cubemap will probably not be a win, almost certainly not if you are doing trilinear or aniso in the cubemap.

The fastest way to normalize on your card should be half-precision normalize in shader code.

Share this post


Link to post
Share on other sites
SimmerD is spot on, on ATI hardware anything post 9500 its faster to normalise in maths than via a texture and on the NV side of things the GF6 range and onwards its the same.

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!