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

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

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

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

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

QtMeshEditor

GameDev.Net

A graphical editor for Ogre3D mesh, materials, and animations Features: Translation, Scale, and Rotation of meshes (Easier than OgreMeshMagick) Material Editor - It shows in real time the new material on the model Change the material of the mesh - It allows the change of the mesh material Export mesh in older versions - It allows the export of the (..)

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