Jump to content

Textures involuntarily scale up when far away from camera


Convergence
 Share

Recommended Posts

Hello,

After updating Chrome my projects all look off, and I quickly found out its because webgl involuntarily scales some textures up when they are a bit far from the camera. The curious thing is it only does it to select materials, and doesn't affect other materials. It happens in different versions of Babylon.js.

Please see the chimney texture below:

close:

Hr2Po1J.jpg

 

farther, notice the stones appear much bigger than the previous screenshot:IuGHc2K.jpg

Also the trees texture is wrapped wrongly because of the aforementioned scaling.

Is this something that can be fixed in Babylon js? Thanks

Link to comment
Share on other sites

@Convergence : a curious effect :o. I don't notice it on the trees - but certainly on the chimney and it looks like on the "plaster" wall too.

I have no idea why, I don't have an answer just a question. Is there a bump/normal map applied to those textures?

cheers, gryff :)

Link to comment
Share on other sites

Thank you for the replies :)

9 hours ago, gryff said:

@Convergence : a curious effect :o. I don't notice it on the trees - but certainly on the chimney and it looks like on the "plaster" wall too.

I have no idea why, I don't have an answer just a question. Is there a bump/normal map applied to those textures?

cheers, gryff :)

Yes, there is a bump map applied; but even removing that doesn't change this effect. :huh:

18 minutes ago, Deltakosh said:

Interesting...Can you repro it in the playground?

 

I assume that you are using bump + parallax?

Sure - http://www.babylonjs-playground.com/#2CYUX8#0, it does the effect for me here too.

Up close it looks fine, but farther away its like this:

fvRjL6U.jpg 

I tried some of the demos on the babylon website, but I didn't find any demo that suffer the same effect on my computer.

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...