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 Fri Apr 19, 2024 11:30 pm
All times are UTC + 0
Information on house/team colors in the remasters
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
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Fri Jul 03, 2020 7:28 am    Post subject:  Information on house/team colors in the remasters Reply with quote  Mark this post and the followings unread

The house colors in the remasters are handled by a pair of shaders named PRIM_UI_CNC_COLORIZE_OPAQUE_LOD_0 and PRIM_UI_CNC_COLORIZE_TRANSPARENT_LOD_0 (the only difference appears to be something to do with transparency, the actual color remapping math is the same). The HSVShift, InputLevels, OutputLevels, OverallInputLevels and OverallOutputLevels values go into the shader as-is.
The Hue value for the LowerBounds and UpperBounds colors (along with I believe the Fudge value) go into a shader parameter named HueRangeParams
The shader also has Diffuse and Specular color inputs but I have no idea when they would be something other than white.

The LowerBounds and UpperBounds colors (or more specifically the hues of these colors) are what is used to identify which colors need to be remapped.
No idea what Fudge is for.
HSVShift seems to control the actual output color.
InputLevels, OutputLevels, OverallInputLevels and OverallOutputLevels are somehow used in the calculations but I dont know what for.
RadarMapColor is just the color used for that team when they are displayed on the radar map.

Anyone with more information on this please feel free to contribute... (obviously it would be great if Petroglyph shared some info on this but I wont hold my breath)

Back to top
View user's profile Send private message
Gangster
Commander


Joined: 11 Jun 2004
Location: Moscow, Russia

PostPosted: Fri Jul 03, 2020 9:04 am    Post subject: Reply with quote  Mark this post and the followings unread


_________________
Gangster is a Project Perfect Wuj (c)Aro

Back to top
View user's profile Send private message
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Sun Jul 05, 2020 5:41 am    Post subject: Reply with quote  Mark this post and the followings unread

I managed to find the code that calculates HueRangeParams and its setting x to the hue value of the LowerBounds color, y to the hue value of the UpperBounds color and z to the Fudge value.

Unless someone out there knows the right kind of math to understand what the remap code is actually doing (or a miracle occurs and Petroglyph shares some information on this) I dont think we will be able to figure out anything much more.

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: 3.1682s ][ Queries: 11 (2.9957s) ][ Debug on ]