≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Manipulating meshes
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b][/b] wrote: Above, Niko gave this example for CopperCube.... [code] var meshnode = editorGetSelectedSceneNode(); var bufferCount = ccbGetSceneNodeMeshBufferCount(meshnode); if (bufferCount == 0) alert('The selected node has no 3D geometry.'); else { for (var i=0; i<bufferCount; ++i) { var vertexcount = ccbGetMeshBufferVertexCount(meshnode, i); for (var v=0; v<vertexcount; ++v) { var pos = ccbGetMeshBufferVertexPosition(meshnode, i, v); pos.x *= 2; pos.y *= 2; pos.z *= 2; ccbSetMeshBufferVertexPosition(meshnode, i, v, pos); } } ccbUpdateSceneNodeBoundingBox(meshnode); }[/code] This is the kind of thing that I need to do. Is there possibly an example for CopperLicht ? I can't seem to find anything.. Cheers :)[/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