Jump to content
Sign in to follow this  
Bardez

*.PLT Intensity

Recommended Posts

"Intensity" is misleading at best, if not outright wrong. While it can display a moderately accurate representation of *.PLT content, if you assign colors to a palette and let 'intensity' modify the palette color (this is what Near Infinity does), they end up displaying too dark and off balance. Instead, color map is a row index into 'MPAL256.BMP', where the row numbers match the gradients stored in creatures. 'Intensity' is actually an index to a column of that row for the color to display.

 

As a point of interest, the 255th value for this gradient is always { R:0 G: 255 B: 0 }, or transparent.

Another point is that the shadow (palette channel # 7) is alpha-blended with the background, whereas the rest of the paper-doll is not.

 

Comments on the palettes bitmaps: 'MPAL256.BMP' and 'MPALETTE.BMP' have their columns opposite; MPAL256 ranges dark to bright, whereas MPALETTE ranges bright to dark. Also, while BMPs store the rows bottom-up, their palettes are indexed top-down; index 0 is the first row on top when the image is viewed.

 

This is all probably common knowledge, but I still wasted two days rediscovering this through original research.

Edited by Bardez

Share this post


Link to post

Local copy updated, thanks! The 'intensity' description never sat well with me due to its vagueness, whereas this actually makes sense.

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...