Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Apr 23, 2024 9:35 pm
All times are UTC + 0
Particle code questions
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Sun Jan 30, 2011 1:55 pm    Post subject:  Particle code questions
Subject description: Solved!
Reply with quote  Mark this post and the followings unread

I am wondering about an element that I do not understand that is used in the 'ParticleFX' code.
It's the 'ColorScale' element, any idea what it does?

Also is there any clear explanation has to what the 'SortLevel' attribute does, and what the significance of the numbers used in this attribute are?

Thanks!

Last edited by Madin on Sun Jan 30, 2011 8:26 pm; edited 1 time in total

Back to top
View user's profile Send private message
Golan
Flamethrower


Joined: 21 Nov 2007

PostPosted: Sun Jan 30, 2011 2:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

ColorScale is a ClientRandomVariable, meaning it asks for a minimum and maximum value and picks a random number in between. From the sound of it, it scales the brightness/intensity of the color set in the Color keyframes.

Say you cave ColorScale set to 0.75 to 1.25 and the first keframe is RGB 1.0;0.5;0.0 then the actual Color is picked randomly from the range of 0.75;0.375;0.0 to 1.25;0.625;0.0 , i.e. dark orange to dark yellow.

SortLevel appears to be used to determine the depth level for transparent objects, additive and multiply shaded objects in particular. By default, such objects will be rendered as if they were positioned in front of the ground but behind solid objects. SortLevel=1 makes sets them to the same plane as regular objects, values greater than one might be used force their position to be before other transparent objects.

_________________
Off Duty.

Back to top
View user's profile Send private message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Sun Jan 30, 2011 4:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the reply!

_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1761s ][ Queries: 11 (0.0070s) ][ Debug on ]