Convergence Posted March 31, 2017 Share Posted March 31, 2017 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: farther, notice the stones appear much bigger than the previous screenshot: Also the trees texture is wrapped wrongly because of the aforementioned scaling. Is this something that can be fixed in Babylon js? Thanks Quote Link to comment Share on other sites More sharing options...
gryff Posted March 31, 2017 Share Posted March 31, 2017 @Convergence : a curious effect . 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 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 31, 2017 Share Posted March 31, 2017 Interesting...Can you repro it in the playground? I assume that you are using bump + parallax? Quote Link to comment Share on other sites More sharing options...
Convergence Posted March 31, 2017 Author Share Posted March 31, 2017 Thank you for the replies 9 hours ago, gryff said: @Convergence : a curious effect . 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. 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: 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. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 31, 2017 Share Posted March 31, 2017 I have no issue Quote Link to comment Share on other sites More sharing options...
Convergence Posted March 31, 2017 Author Share Posted March 31, 2017 Ooh, interesting, I just found out it only happens with textures that are not a power of two in dimensions. At least I have a way to fix it now, even though I thought the power of two requirement was obsolete since a long time Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 1, 2017 Share Posted April 1, 2017 It is in webgl2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.