Jump to content
  • Advertisement

Is my parallax mapping ok or not?

Recommended Posts

Posted (edited)

ello. I'm trying to achieve image like in this picture:



Here is my image: 


As you see they don't looks the same. Is my parallax mapping incorrect?



Edited by _Flame_

Share this post

Link to post
Share on other sites

Haven't worked with parallax mapping myself so far, so I can't help you with the details but it looks to me like it only works in the horizontal direction. If you compare the edges of the learnopengl picture with yours, you 'll see what I mean.

So I would narrow down the debugging to every instruction that affects the vertical direction.


Share this post

Link to post
Share on other sites
29 minutes ago, Frantic PonE said:

TBH if you made the second screenshot brigher it'd help

I've made it a little brighter, hope it helps. For some reason screenshots are darker then monitor images.

Share this post

Link to post
Share on other sites
5 hours ago, pcmaster said:

Yours looks flipped on the Y axis (but not on X). Posting source might help :)

Thank you . Looks like the problem solved.


The problem was how i calculated binormal vector. I have changed cross(n, t); on cross(t, n);

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!