Jump to content
  • Advertisement
Sign in to follow this  
Dragon_Strike

parallax mapping 3ds models (*solved.. thx FilouGK )

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

ive encountered some problems with parallaxmapping loaded 3ds models... first i thought it was the TBN matrix or view vector that was causing the problems.. but it seems that its due to the texture coordinates that the models has that parallax mapping doesnt work properly... how would one fix this? usually one would do something like this... V.z = V.z/ParallaxScale; V = normalize(V); TexCoord = TexCoord+V.xy*offset; where offset is the raytraced intersection... however as far as ive understood this requires that the texture coordinates are oriented over a quad something like this... (0,1) (1,1) (0,0) (0,1) but it seems this isnt always the case with the loaded texcoords... EDIT:: solved... seems like the real v coordinate = 1.0 - loaded v coordinate [Edited by - Dragon_Strike on May 18, 2007 4:23:29 PM]

Share this post


Link to post
Share on other sites
Advertisement
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!