Difference Between 0 opacity and "invisible"

For questions about using Classic.

Post » Mon Mar 16, 2009 4:18 pm

so can someone explain the difference? (if there is one)
B
48
S
10
G
9
Posts: 1,224
Reputation: 8,449

Post » Mon Mar 16, 2009 4:53 pm

0 opacity: object still renders itself to the screen processing any effects, taking the GPU's time, but most likely results in nothing being changed on-screen. However, if you had an effect which did something like invert the opacity, it would still be seen.

Invisible: object skips drawing at all so will never be seen under any circumstances. Therefore GPU spends no time at all trying to draw the object.

In short, use 'invisible' instead of 0 opacity to hide objects, it's faster.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145

Post » Mon Mar 16, 2009 5:38 pm

thanks ash. It wasn't a question of hiding objects, i just wanted someone to clarify how it affected objects. (as you explained)
B
48
S
10
G
9
Posts: 1,224
Reputation: 8,449

Post » Wed Mar 18, 2009 3:06 pm

[quote="Ashley":1fh0uxky]0 opacity: object still renders itself to the screen processing any effects, taking the GPU's time, but most likely results in nothing being changed on-screen. However, if you had an effect which did something like invert the opacity, it would still be seen.

Invisible: object skips drawing at all so will never be seen under any circumstances. Therefore GPU spends no time at all trying to draw the object.

In short, use 'invisible' instead of 0 opacity to hide objects, it's faster.[/quote:1fh0uxky]

Can I add text on the Construct Wiki?
Here:
http://apps.sourceforge.net/mediawiki/c ... acity_ACEs
My latest game is: Plants at www.rogerty.com
B
28
S
6
G
7
Posts: 683
Reputation: 5,686

Post » Wed Mar 18, 2009 4:46 pm

Please do.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145

Post » Mon Mar 23, 2009 8:25 pm

[quote="Ashley":192oiife]Please do.[/quote:192oiife]

When I try to edit the wiki, it says "You do not have permission to edit pages, for the following reason:
The action you have requested is limited to users in one of the groups editor, admin.".
My latest game is: Plants at www.rogerty.com
B
28
S
6
G
7
Posts: 683
Reputation: 5,686

Post » Mon Mar 23, 2009 9:18 pm

Have you read about how to gain wiki access on the tutorials forum?
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests