≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Changing Cube color accessing it vertices
Posted by:
(you are not logged in)
Enter the missing letter in: "Internation?l"
(you are not logged in)
Text:
[quote][b][/b] wrote: I haven't tried this out, but something like this might work: [code]var mesh = yourNode.getMesh(); var buffers = mesh.GetMeshBuffers(); for (var i=0; i<buffers.length; ++i) { var vertices = buffers[i].Vertices; for (var v=0; v<vertices.length; ++v) { var vtx = vertices[v]; vtx.Color = CL3D.createColor(255, 255, 0, 0); } } [/code] This makes all vertices red.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact