article thumbnail

Changing vertexData of a sprite in 2D in cocos creator 3.6.2

Cocos

but facing one issue depending on the sprite type mesh which is in CC2.4 where there is a function to create render data renderData.createFlexData but I could not find any way to do it in CC3.6. its creating static data I am not able to render the vertices count when they are changing continuously.(This Since in CC3.6

Sprite 40
article thumbnail

Does Spine work with USE_INSTANCING?

Cocos

USE_INSTANCING is only for 3D mesh rendering. if you want to reduce draw calls for 2d objects(sprites, labels, and spines), it’s better to follow the batching mechanism.

Mesh 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

I want to draw more triangles of the component

Cocos

Firstly, Sprite is a quad, the mesh is static for easier usage. You can have a custom render component and make its mesh with multiple quad, but it really isn’t necessary. You can achieve gradient color within one quad. Just calculate color step in the fragment shader is enough.

Mesh 52
article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

Here are the implementation of water wave effects on 2D sprites and 3D meshes: Preview Link The math behind it is simple, the water wave is simulated by the Sin function, and then the fluctuation range is increased in the Update function. _pass = this.node.getComponent(Sprite).material.passes[0]; x,waveFactor.y-uv0.y);

Shaders 98
article thumbnail

Developer Shares Building Fabrics, Ropes, And Soft Bodies

Cocos

Analysis The whole effect can be split into two parts, one for the simulation of the mesh and one for the rendering of the mesh. Rendering is even more straightforward, just use the Graphic component and draw lines directly. If I can pass this texture in between the direct rendering, then I get a 2D real fabric.

Build 98
article thumbnail

Godot Tactics RPG – 01. Intro & Setup

The Liquid Fire

For Renderer, I chose Forward+ because I think it is somewhere between URP and HDRP. The first thing to download will be the sprites and textures from the original tutorial. Type in mesh in the search and select MeshInstance3D. Search for mesh and again choose MeshInstance3D. We’ll start with the Dirt texture.

article thumbnail

Dev snapshot: Godot 4.0 beta 11

Mircosoft Game Dev

This beta includes a few big changes which may interest a lot of users: Animated sprites, both 2D and 3D, now support options for more precise timing of individual frames ( GH-65609 ). Editor: Bring back the renderer options button on the main editor ( GH-70500 ). Rendering: Add options for sorting transparent objects ( GH-69998 ).

Beta 105