Jump to content

Different output values on Same Shaders


Pryme8
 Share

Recommended Posts

http://www.babylonjs-playground.com/#0J7M2M#54
http://www.babylonjs-playground.com/#0J7M2M#57

Notice the fracturing between zones?


So the heightmap is being generated by a noise algo on a shader then applied to a rendertargettexture.  If I was to just use the raw noise algo to displace it everything would be honkey dorry, but for some reason my values on the samplers seems to not be consistent.

I know there are a few errors on my math for the normal stuff and unit size but all that should be irrelevant to the high  stuff.

I tried to set precisions and alas nothing seems to work. Ive tried different filtering/sampling modes etc...  In theory this is supposed to be easy.

Any ideas?

Link to comment
Share on other sites


Using Adjusted UV:
http://www.babylonjs-playground.com/#WWJUIG#15
rabble rabble rabble... it did not fix anything... my brain hurts normally stuff like this I have no problem with... sigh...

Using Original UV:
http://www.babylonjs-playground.com/#WWJUIG#14
with this one I would assume there should be some overlap/repetition but I'm guessing my math if off if there is not.
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...