ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Feature requests and bug reports
trans_add bug
Author Text

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
Registered User
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: "Internati?nal" (you are not logged in)


Text:

 

  

Forum 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


   





Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.