≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How to change texture with coding ?
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b]DouweDabbe[/b] wrote: first you get the terxture from your libray: in a for loop or so to get them all in a array variable for (i=0; i<texCount; i++) { var s = ccbGetSceneNodeFromName("cubeMesh1"); var myTex[i] = ccbGetSceneNodeProperty(s, "Texture"); } then you set the materialproperty with that variabe: ccbSetSceneNodeProperty(s, "Texture", myTex[i]); it depends on you mesh type that you must use: ccb Get / Set SceneNodeProperty or ccb Get / Set SceneNodeMaterialProperty[/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