≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Live transparancy adjustments for mesh textures
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b]guest[/b] wrote: Scripting Window: ================= // try some transparancy settings var s = ccbGetSceneNodeFromName("MapBox_planeMesh"); var thing = ccbGetSceneNodeProperty(s, "Type"); print("The thing's Type is " + thing); var t = ccbGetSceneNodeMaterialProperty(s, 0, "Texture1"); print("The plane texture is " + t); var diff = ccbGetSceneNodeMaterialProperty(s, 0, "Diffuse"); print("The plane init difuseness is at " + diff); var vect = new vector3d(255, 0, 0); ccbSetSceneNodeMaterialProperty(s, 0, "Diffuse", vect); var diff = ccbGetSceneNodeMaterialProperty(s, 0, "Diffuse"); print("The plane new difuseness is at " + diff); ccbSetSceneNodeMaterialProperty(s, 0, "trans_add", 125); ccbSetSceneNodeMaterialProperty(s, 0, "trans_alphach", 125); // var trans = ccbGetSceneNodeMaterialProperty(s, 0, "trans_add"); print("The plane transparancy is at " + trans); Message Log: ============ The thing's Type is mesh The plane texture is c:\users\douwe dabbe\downloads\0-app-stuff\scr-screenshot\mapbox-layer-deventer.png The plane init difuseness is at (0, 0.007843, 0.333333) The plane new difuseness is at (0, 0.007843, 0.333333) The plane transparancy is at false[/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