May 14, 2024, 01:20:40 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Forum rules
-
please read before posting, it can save you a lot of time.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Saturation
« previous
next »
Pages: [
1
]
Print
Author
Topic: Saturation (Read 3297 times)
0 Members and 1 Guest are viewing this topic.
Birdline
Supporter
Occasional poster
Karma: 0
Offline
Gender:
Posts: 57
Saturation
«
on:
November 23, 2008, 12:59:11 AM »
Hi all,
I wonder if it is possible to change the saturation of an object (or even the whole scene).
I mean to change it from color to grayscale (B&W).
Using the MakeRGBA or MakeHSL, only give me a color tint not a greyscale effect.
Best regards,
Spyros
Logged
http://www.birdline.gr/
http://skins.birdline.gr/index.html
sychron
Wanderer zwischen den Welten
Global Moderator
Regular poster
Karma: 0
Offline
Posts: 223
There is no spoon. The enemy gate is down!
Re: Saturation
«
Reply #1 on:
November 23, 2008, 10:26:48 AM »
Hmm, you're not alone with this problem:
http://forum.dead-code.org/index.php?topic=2995.0
Logged
... delete the inner sleep ...
sychron
Wanderer zwischen den Welten
Global Moderator
Regular poster
Karma: 0
Offline
Posts: 223
There is no spoon. The enemy gate is down!
Re: Saturation
«
Reply #2 on:
November 23, 2008, 10:30:55 AM »
Hmm, both topics read as if the Engine uses HSV instead of HSL:
http://en.wikipedia.org/wiki/HSL_and_HSV
Logged
... delete the inner sleep ...
Birdline
Supporter
Occasional poster
Karma: 0
Offline
Gender:
Posts: 57
Re: Saturation
«
Reply #3 on:
November 23, 2008, 01:23:09 PM »
As I understand it by making some tests,
The L value must be <255 to have any difference (so you will have always less brightness).
The S value must be >0 (so you can never have desaturation).
The H value sets the coloring (I think it is 0-360).
The image is made using
var SomeEntity = Scene.GetNode("book");
SomeEntity.AlphaColor = MakeHSL();
Best regards,
Spyros
Logged
http://www.birdline.gr/
http://skins.birdline.gr/index.html
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Saturation