article thumbnail

Sprite Shader Render out of bounds

Cocos

Good evening, I just finished writing my own custom shader to create 2D shadows on sprites, but I can’t find a way to increase the render area of ​​the sprite. The sprite size is 450x450, I created an atlas and used the trim option, this reduced the frame to 156x393. Is there a way to increase the render bounds?

Sprite 52
article thumbnail

Change Spine Texture in Runtime (Cocos Creator 3.8)

Cocos

My spine skeleton has lots of textures. I cant understand how to set loaded texture to skeleton. Sprites from new texture dont want to refresh and are still pink. I have several png files on export from Spine program. Most of this png file I need only on endgame. Thats why I want to load this png files in runtime.

Texture 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Chronicles of Vaeltaja

Indie DB

Enhanced Textures and Tree Sprites for Lake Road and Islands of the Prophets, Overworld Map Frames and Icons!

Sprite 102
article thumbnail

Tutorial: Cocos Shader Series - Use a Noise Map to Make a Dissolve Texture

Cocos

Blockquote const sprite = this.getComponent(Sprite); const mat = sprite.customMaterial; mat.setProperty(‘dissolveThreshold’, 0.5); Version 3.6.x, x, I using this code but it not bring Property affect to shader Ok, this work if turn of Packable in main Sprite inspector

Shaders 98
article thumbnail

Strategies for Optimizing Multiplayer Games in Unity

Logic Simplified

Use Compressed Textures : Textured images can be saved with lower resolutions while compressed formats such as ASTC and DXT1 and DXT5 reduce memory usage without quality reduction. Texture Atlasing combines multiple textures into one atlas to lower the number of texture switches that occur.

Games 71
article thumbnail

Texture flushed when coming back from background

Cocos

Are you using a texture map or are they all individual images that’s moving in and out of cache could it be phone freeing up memory space while in background? I have not had this but I use Texture map one big image. ohh edit is it you need to say sprite->retain(); to keep it then you have to sprite->release();

Texture 52
article thumbnail

Feature request: Texture atlas polygon support in CC v3

Cocos

We use Texture Packer v7 and it supports Polygon atlases. Useful links: codeandweb.com Cocos2d-x performance optimization with polygon sprites Are you experiencing low FPS in your cocos2d-x game? Optimize your sprite sheets to get the best performance for the players! 版本号) 2.1.3 ### Affected platform?(受影响的平台)

Polygon 52