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

This Month's Specials

BCT Commander- Save $6.00
World Supremacy- Save $10.00

   







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


Reply
 
Thread Tools Display Modes
  #1  
Old October 22nd, 2024, 10:05 PM
DRG's Avatar

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

In the viewer I was able to add a new BMP into a tester SHP file I have in the folder with the viewer.

I was able to adjust the X/Y coordinates to center where I wanted the tester hull in the file

But

When I viewed the full file the number of that Hull was gone as was the crosshair I had centered inside the turret ring



I can see the result of the changed header but I could not find a way to save the file with the new hull

Is that what you see or did I miss something?

As you say not 100% yet but it is very interesting
Attached Thumbnails
Click image for larger version

Name:	wip.png
Views:	402
Size:	1.5 KB
ID:	17063  
__________________


"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
  #2  
Old October 22nd, 2024, 10:17 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,415
Thanks: 103
Thanked 649 Times in 433 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

Re: being unable to download file with images in them -- the SHP compression logic necessary to actually download a SHP file with the new images isn't there yet.

I was a little bit ahead of myself here.

To edit headers; this is the procedure:

1.) Right Click on image you want to edit header for and select SHOW ICON SHP HEADER DATA.

3.) Move the Centroid Cross to where you want it through double clicking or using the X/Y buttons.

4.) Push "Write Header to this Icon" button.

5.) Close pop up window.

6. ) Click on Rewrite Headers to SHP to download a SHP file with just the headers edited.
Reply With Quote
The Following 2 Users Say Thank You to MarkSheppard For This Useful Post:
  #3  
Old October 23rd, 2024, 04:49 AM
DRG's Avatar

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

Quote:
Originally Posted by MarkSheppard View Post
Re: being unable to download file with images in them -- the SHP compression logic necessary to actually download a SHP file with the new images isn't there yet.

I was a little bit ahead of myself here.

To edit headers; this is the procedure:

1.) Right Click on image you want to edit header for and select SHOW ICON SHP HEADER DATA.

3.) Move the Centroid Cross to where you want it through double clicking or using the X/Y buttons.

4.) Push "Write Header to this Icon" button.

5.) Close pop up window.

6. ) Click on Rewrite Headers to SHP to download a SHP file with just the headers edited.
Yes, that is how I did it as well and the "Centroid Cross" had moved to where I put it on the new image but, of course, the new icon was not actually saved in the file

You have made some real progress with this and it looks very promising
__________________


"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
The Following User Says Thank You to DRG For This Useful Post:
  #4  
Old October 24th, 2024, 09:13 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,415
Thanks: 103
Thanked 649 Times in 433 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

I'm currently stalled on the SHP compression; I can get it to compress the first row of pixels in an icon; then it just stops compressing pixel rows.

The GOOD: Both SHPed and this show the exact same broken image; so my image decompression code is valid.
Reply With Quote
The Following User Says Thank You to MarkSheppard For This Useful Post:
  #5  
Old October 25th, 2024, 03:20 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 6,000
Thanks: 492
Thanked 1,934 Times in 1,259 Posts
Mobhack is on a distinguished road
Default Re: Next Generation SHP Viewer

Quote:
Originally Posted by MarkSheppard View Post
I'm currently stalled on the VFX SHP compression; I can get it to compress the first row of pixels in an icon; then it just stops compressing pixel rows.

The GOOD: Both SHPed and this show the exact same broken image; so my image decompression code is valid.
Mark - check your PM's as I sent you an email address there which you can reply to for a copy of the design specs for the VFX library SHP format by Miles Design. That includes the compression formulae they used.

You will need to pass me a valid email as there is no way to attach a zipfile to PM's, and I'm not putting it up here in case of copyright issues.

oh - found that he seems to have put it up on github so I'll PM you with the linky

cheers
Andy
Reply With Quote
The Following 2 Users Say Thank You to Mobhack For This Useful Post:
Reply

Bookmarks


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 08:05 PM.


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