Tint Plus

For questions about using Classic.

Post » Wed Jun 10, 2009 5:46 pm

Currenly I am doing the lighting stuff for my game. I want to change color balances depending to nearest lights. I am using tint plus effect but I have noticed that I cant change the RGB at runtime. Any alternative?
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Wed Jun 10, 2009 6:09 pm

Yes you can, use the 'Set red', 'set green' and 'set blue' actions in the Tint Plus tab of the object with the effect :P
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Wed Jun 10, 2009 6:51 pm

why not use filters instead of a pixel shader? i doubt you need it

just do this, set filter> right click on the title bar of the select filter parameter> use expression> then write setRGB(x,y,z)

x y and z are variables for red green and blue respectively
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Jun 11, 2009 8:43 am

[quote:1pboyr0r]Yes you can, use the 'Set red', 'set green' and 'set blue' actions in the Tint Plus tab of the object with the effect :P[/quote:1pboyr0r]

:oops: I dont know how can i miss the set RGB options.

[quote:1pboyr0r]why not use filters instead of a pixel shader? i doubt you need it

just do this, set filter> right click on the title bar of the select filter parameter> use expression> then write setRGB(x,y,z)

x y and z are variables for red green and blue respectively[/quote:1pboyr0r]

Thanks QuaziGNRLnose. It is the first thing that I have done. But I didn' know about "use expression" option. Looks the best options, and no need PS 2.0.

Thanks again guys :o
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Thu Jun 11, 2009 10:05 am

I can tint the sprites with filter property, even convert to black. But is it posible to "burn" the color to white?
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Thu Jun 11, 2009 10:32 am

Nope, it is additive, but if you use white sprites...
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Jun 11, 2009 1:34 pm

I think the best way to get a white silhouette of the object is to set a black filter then use the Inverse shader.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Thu Jun 11, 2009 2:41 pm

I see that putting an extra sprite is quite complicated. Even doing that I should control balance between color filter and the intesity of the second one. Is it posible write a Brightness effect in PS 0.0? An intensity or brightness parameter for the color filter would be great :D
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Thu Jun 11, 2009 9:33 pm

PS 0.0 can only be used for renderstates; parameterised effects will always require some form of processing, and thus cannot be achieved in the same way.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jun 16, 2009 1:32 pm

Can I set R, G or B indibidually in color filter?
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests