Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
trans_add bug

falcon12
Registered User
Quote
2018-09-14 21:53:58

Hi,

Create a new scene with a cube named "handplate1"
Put this code in a " event" linked to it :


var s = ccbGetSceneNodeFromName("handplate1");
ccbSetSceneNodeMaterialProperty(s,0, "trans_add",true);
print("eee");


Click on it at execution and see that the cube doesn't change (added transparency) either in .exe or .html.


just_in_case
Moderator
Quote
2018-09-15 04:33:50

Edit: go with the solution by @Niko ... Below..


niko
Moderator
Quote
2018-09-15 05:21:53

Try this:
ccbSetSceneNodeMaterialProperty(s,0, "Type", "trans_add");



falcon12
Registered User
Quote
2018-09-15 20:37:20

Thanck you Niko


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (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