Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
change color on mesh

tito100
Registered User
Quote
2013-06-25 19:41:25

Hi.

I have loaded MeshSceneNode from scene (like floor).Can i change color on defined Vertices, or can I change position of Vertices ?

when I do
buff = meshSceneNode..getMesh().GetMeshBuffers()[0]
for (i=0;i<buff.Vertices.length;i++){
buff.Vertices[i] = createVertex(0,0,0,0,0)
}
nothing is chanded on scene.

Thanks


tito100
Registered User
Quote
2013-06-25 21:23:48

Im find it

buff = meshSceneNode..getMesh().GetMeshBuffers()[0]
for (i=0;i<buff .Vertices.length;i++){
buff .Vertices[i].Color = CL3D.createColor(100,100,100,1);
}


engine.getRenderer().updateRendererNativeArray(buff);
engine.getRenderer().drawMeshBuffer(buf, buf.tVertices.length);


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

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