article thumbnail

Realtime Rendering With OpenGL – A Students Perspective (Week 3)

Game Developer

Week 3 was focused on getting textures into the render engine, making a camera so the user can move around the scene, and the creation of a new mesh class that takes advantage of the VBO and EBO classes.

Render 195
article thumbnail

Use 3d model as base object of particle system?

Cocos

Hi, I’m trying to use a simple 3d model (with a cube-mesh & material of effect “bultin-standard”) as basic object to be emitted in particleSystem My approach was to set “Render>RenderMode” to “Mesh” and fill the “Mesh” & “CPU Material” as I wanted The problem is the material won’t let me replace it if new material doesn’t use effect as (..)

Mesh 52
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

How to color triangels in custom Mesh?

Cocos

In Safari on MacOs Ventura there is no rendered anything, only in Firefox or Chrome. I try to use in demo project, and seems this arg. colors is not fill the triangles or i don’t understand how it works in cocos , there is a project attached, can play. hex-map-sample.zip (387.5

Mesh 52
article thumbnail

Practical Use of Render Textures

The Knights of Unity

And even before an era of SRPs (Scriptable Render Pipelines), there was a good amount of solid features like today’s topic: Render textures. In this post I’m going to explain to you how to use render textures in your game. using legacy rendering, but the features I used work in SRPs too. What is a Render Texture.

Texture 52
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

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
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