Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello I'm new to CopperLitch and here is one thing which i wasn't able to find anywhere how can I set color to mesh which doesn't have texture on it I need it because I want to build something with random colors and make some operations on colors to get new colors and dynamically change them thanks |
||||
|
You can change the color of each vertex individually, if you like. So if you want to color a mesh, change all colors of all vertices. Use the color member of the vertex: http://www.ambiera.com/copperlic... |
||||
|
thank you the documentation says that Color is {int} should it be a CL3D.ColorF ? I tried this approach but it didn't worked
where {this} is CL3D.SceneNode |
||||
|
.MyMesh won't work, it's probably only usable if you implemented your own scene node and are using a property named 'MyMesh'. If you have a MeshSceneNode, you can get the current mesh using yourNode.getMesh();. But apart from this, setting the colors as you do should work. |
||||
|
I'm editing working example Custom Scene Nodes example from http://www.ambiera.com/copperlicht/tutorials.html I'm using derived object from SceneNode
is there anything in this way which may conflict setting vertex colors ? |
|