Jump to content

Search the Community

Showing results for tags 'texture tiling'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. 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
×
×
  • Create New...