≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Mesh Color
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: thank you the documentation says that Color is {int} should it be a CL3D.ColorF ? I tried this approach but it didn't worked [code] this.MyMesh = new CL3D.Mesh(); var buf = new CL3D.MeshBuffer(); this.MyMesh.AddMeshBuffer(buf); buf.Indices = [0,2,3, 2,1,3, 1,0,3, 2,0,1]; buf.Vertices.push(createVertex( 0, 0, 10, 0, 0)); buf.Vertices.push(createVertex( 10,0, -10, 1, 0)); buf.Vertices.push(createVertex( 0, 20, 0, 0, 1)); buf.Vertices.push(createVertex(-10,20,-10, 1, 1)); var vertices = buf.Vertices; for (var v=0; v<vertices.length; ++v) { var vtx = vertices[v]; vtx.Color = CL3D.createColor(255, 255, 0, 0); } [/code] where {this} is CL3D.SceneNode[/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