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 12:17 pm
All times are UTC + 0
Palette Colorrange not fully used?
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Sep 29, 2010 12:48 pm    Post subject:  Palette Colorrange not fully used? Reply with quote  Mark this post and the followings unread

While i tried to create a new palette, i noticed that the OS_Palette_Editor stores only multiples of 4 for the color values.

I then checked the original unittem.pal and noticed there, that all the colors indeed only go from hex 00 to 3F (3F hex = 63 dec; 63*4=252; 252 = max possible color value in OS_Palette_Editor).
Does anyone know, why the palettes use only a quarter of the possible color values: 00-3F instead of 00-FF ?

For what are the other colors used? Are these for special map lighting purposes? Could this explain why some mods (like DTA) have big problems with blocky lighting even when using an extremely low LightIntensity of 0.001 on the lightposts?

\EDIT
I've created a unittem.pal which is using every possible color value from 00-FF
Attached is a screenshot that shows how this palette looks ingame for
left: VXLs
right: SHPs

btw, haven't i read somewhere that changing the voxel color palette is impossible because it is said to be hardcoded? Seems like it is possible, even if the colors are somehow messed up and strange arranged.



unittem.png
 Description:
 Filesize:  33.22 KB
 Viewed:  1537 Time(s)

unittem.png



unittem.zip
 Description:
the modified color palette if you want to test it yourself

Download
 Filename:  unittem.zip
 Filesize:  897 Bytes
 Downloaded:  84 Time(s)


_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Aro
Alcohol Fueled


Joined: 10 Sep 2006

PostPosted: Wed Sep 29, 2010 2:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
btw, haven't i read somewhere that changing the voxel color palette is impossible because it is said to be hardcoded? Seems like it is possible, even if the colors are somehow messed up and strange arranged.


I tried creating a custom voxel palette for Evolution, I replaced the yellow-like colors with a rusty metal color gradient, the results were that the voxel ignored the new colors and just used loaded the default colors from the palette. I tried editting the original mix files as well as placing them in a new mix file, but the result was always the same. The SHP Structures did acknowledge the new colors however.

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


Joined: 26 Apr 2003
Location: Somewhere in Germany

PostPosted: Wed Sep 29, 2010 2:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

Aro wrote:
Quote:
btw, haven't i read somewhere that changing the voxel color palette is impossible because it is said to be hardcoded? Seems like it is possible, even if the colors are somehow messed up and strange arranged.


I tried creating a custom voxel palette for Evolution, I replaced the yellow-like colors with a rusty metal color gradient, the results were that the voxel ignored the new colors and just used loaded the default colors from the palette. I tried editting the original mix files as well as placing them in a new mix file, but the result was always the same. The SHP Structures did acknowledge the new colors however.


ROTD uses custom unit palettes, and it works.

The problem is that facing-related shading is done in somewhat strange ways, it seems they simply use a different color from the palette, depending on several factors (original color, normal, facing...) and THAT's the part that seems to be hardcoded (or stored in the as-of-yet undecoded voxel.vpl inside local.mix).
So when your voxel is let's say color 1, then -assuming it has 'perfect' normals- it will use color 4 for the side facing SW, color 17 for NW, color 243 for E and so on (numbers are made up, but I think you get the point).

Unfortunately, as LKO's screenshot shows, the pattern is somewhat illogical; for some of the greyscale colors, they use a very dark GDI brown for certain facings.
I noticed that when I made all GDI colors brighter, which resulted in my grey Nod units suddenly featuring brown pixels at certain angles/facings. So if you only change the original colors but not the colors used for certain facings, it looks as if there was no change.

Back to top
View user's profile Send private message Send e-mail
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Wed Sep 29, 2010 3:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, I had gamemate try hack voxels.vpl in past to enable the unused indexes to use normals with rather odd lighting results...

sadly not have pics anymore i think...

as for palette colors rgb thing, seems to be some westwood thing and olaf has seemingly duplicated it same way... Banshee kinda confirmed its westwood pal/shp format limit.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 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
You cannot post new topics in this forum
You cannot 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.1623s ][ Queries: 14 (0.0116s) ][ Debug on ]