.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old October 29th, 2024, 10:12 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is online now
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,409
Thanks: 103
Thanked 641 Times in 427 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

I've been looking at the "buy menu" encyclopedia icon and the png file:



I think what's happening is this:

My compression routine starts out correctly enciphering transparent areas of the SHP images (notice how the hull is mostly good?) and then somewhere things break.

I think what's happening is something causes the pixel variable being scanned to hang in memory and refuse to be updated; explaining how the hull on the first image works mostly fine, then the turret is flashing transparent.

Either that; or the true color to indexed color flattening code is bugging out somewhere; reading index 255 as a different index (one that happens to flash)

EDIT:
And I think the reason why other zoom levels work; but not the "Default" is because your zoom and rotate routines use interpolation.

So my program is probably outputting transparent pixels as something like index 254 or something (which is a known flashing color index); so it flashes in "normal" view.

But when you zoom in; the interpolation code moves it into pixel value 255; and it becomes transparent again.

Last edited by MarkSheppard; October 29th, 2024 at 10:35 PM..
Reply With Quote
  #2  
Old October 29th, 2024, 10:57 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is online now
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,409
Thanks: 103
Thanked 641 Times in 427 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

I think it's programming error on my part.

I never defined a way to pass through a palette to the SHP compression function; so it's somehow picking the first palette I defined (the full SPCAMO palette)
Reply With Quote
  #3  
Old October 30th, 2024, 11:03 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,617
Thanks: 4,058
Thanked 5,816 Times in 2,870 Posts
DRG will become famous soon enough
Default Re: Next Generation SHP Viewer

Quote:
Originally Posted by MarkSheppard View Post
I think it's programming error on my part.

I never defined a way to pass through a palette to the SHP compression function; so it's somehow picking the first palette I defined (the full SPCAMO palette)

That could be why Fred added a " SP no flash" checkbox
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.