Jump to content

Search the Community

Showing results for tags 'rendertexture setframe'.

  • 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 i have upgraded to pixi version 1.6.0 from 1.5.1. Previously I had a hug container that i have been cutting into smeller chunks with PIXI.renderTexture(5000, 5000) and set frame methid. Previously set frame cut only a part of the texture so i could use it as a sprite. but now it is shrinking the whole texture to the size that i pass in the setFrame method. ANYBODY KNOWS HOW TO TRIM A RENDERED TEXTURE IN PIXI 1.6.0??? Content of the entity container is generated dynamically so I don't know what to do?! var finalEntityTexture0 = new PIXI.RenderTexture(dim * 30, dim * 30); finalEntityTexture0.render(entityContainer); finalEntityTexture0.setFrame({x: 0, y: 0, width: dim * 10, height: dim * 10}); var finalEntity0 = new PIXI.Sprite(finalEntityTexture0); finalEntity0.position.x = 0; finalEntity0.position.y = 0;This is what i have in PIXI 1.5.0 And this is pixi 1.6.0 As you can see the whole container is repeated and shrunk to the size that i have passed in set.Frame Method. Any idea to cut and copy part of render texture and add use it as a texture for a sprite?
×
×
  • Create New...