article thumbnail

Mesh Baking Your Assets (With Ian Deane)

The GameDev Guru

Today, I had the pleasure to interview Ian Deane, the developer behind Mesh Baker. This famous Unity asset lets you drastically reduce your draw calls so your game runs at substantially higher frame-rate. Let's see what he has to say.

Mesh 100
article thumbnail

How to color triangels in custom Mesh?

Cocos

I created custom mesh let mesh = cc.utils.createMesh({ positions : positions, indices : indices, doubleSided : true }); and i would like a make color of every triangle with different color as on picture below How could I achieve it ? right now Mesh uses color from Material and mesh filled with one color.

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

Simplify Your Life With Unity Mesh Simplifier

The GameDev Guru

Lose those extra vertices you don't need from your meshes and make the life of your GPU a bit easier.

Mesh 100
article thumbnail

How to color triangels in custom Mesh?

Cocos

colors.push( color ); colors.push( color); colors.push( color); } let mesh = cc.utils.createMesh({ positions : positions, indices : indices, doubleSided : true, colors: colors}); let comp = node.addComponent(cc.MeshRenderer); comp.mesh = mesh; transformMat4(pos,pos,m4); positions[i] = pos.x; positions[i + 1] = pos.y;

Mesh 40
article thumbnail

Unable to view mesh via UI meshrenderer with dynamic instantiation

Cocos

Body_Material0' : `${element}_Material0`) resources.load(`${Section}/${element}/${ElementHeader}`, Mesh, (err, meshinst) => { let NewDisplayBtn = instantiate(PrefabIcon) console.log(meshinst) NewBtn.parent = this.node NewDisplayBtn['parent'] = NewBtn NewDisplayBtn.getChildByName('Mesh').getComponent(MeshRenderer).mesh

Mesh 40
article thumbnail

Unable to view mesh via UI meshrenderer with dynamic instantiation

Cocos

I set the parent node and mesh holder all under the same prefab and it fixed the issue. Hey man, Thanks for you reply, it turned out to be the widget, i was dynamically instantiating ‘MeshHolder’ into a parent node. Have a good day!

Mesh 40
article thumbnail

Float Compression 4: Mesh Optimizer

The Astronauts

Introduction and index of this series is here. The previous post investigated some lossless filtering of data, before passing it to a regular compression library. Our result so far is: 94.5MB of data can get filtered+compressed down to 23.0MB in one second (split/shuffle bytes, delta encode, zstd or kraken compression).

Mesh 52