Search the Community
Showing results for tags 'texture tiling'.
-
Hi All I am experimenting with textures and am having issues with tiling. I have created several complex (well not that compex) shapes that I am wanting to apply a tiled texture to. However, when I apply the texture it appears warped (i.e. stretched) which makes it appear really bad. What I want is for the texture to be applied/tiled using a predefined aspect ratio therefore ensuring the rendered textures appears clear and crisp. NOTE: I am aware of the uScale and vScale properties for a material - I can successfully experiment and configure their values to get the desired effect. However, this requires lots of tweaking (experimentation) and the result is not perfect, furthermore this is not going to work for me because the shapes in my scene will be added at runtime (hence I need an algorithm to set the uScale and vScale values). Here is a code snipplet I have created that illustrates the problem: http://www.babylonjs-playground.com/#RF9W9#398 If you uncomment lines 102 and 103 the rendition looks good - but I need to calculate these field values at runtime. If anyone can help with this issue I would appreciate it. Thanks Rolento
- 9 replies
-
- texture tiling
- uscale
-
(and 1 more)
Tagged with: