Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Opacity and alpha for 2D overlays images.

just_in_case
Moderator
Quote
2018-03-02 08:45:08

I don't know if currently there is an option to change the alpha or the opacity of an 2D overlay with an Image applied to it is available or not. I didn't find one myself.

So a feature is requested through which one can change the alpha transparency or opacity of a 2D Overlay.

currently am using javascript command
ccbDrawTextureRectangleWithAlpha to get the desired result but an option in 2D Overlay attributes setting will be good enough.


niko
Moderator
Quote
2018-03-05 05:42:11

True, I think that is missing, right. Will add.


douwedabbe
Registered User
Quote
2019-06-10 10:59:42

cc js reference:

For 2D overlay nodes, Properties like the following are available: 'Pos X (percent)', 'Pos Y (percent)', 'Width (percent)', 'Height (percent)', 'Pos X (pixels)', 'Pos Y (pixels)', 'Width (pixels)', 'Height (pixels)', 'Alpha', 'Image', 'Background Color', 'Draw Text', 'TextColor', 'Text'.

var s = ccbGetSceneNodeFromName("cubeMesh1");

var atex = ccbGetSceneNodeProperty(s, "Alpha");

print("The cube tex is " + atex);


Create reply:


Posted by: (you are not logged in)


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