SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-27-10, 12:05 AM   #1
Royale-Adio
Officer
 
Join Date: Jul 2009
Posts: 238
Downloads: 119
Uploads: 5
Default

Quote:
Originally Posted by SteelViking View Post
Well, I just took a glance around, and I think I found the texture files which are used to render those little symbols(I have seen them before, so I pretty much knew where they were). Here is the good news: It looks like it would be very easy to make them all the same shape(so they would not tell what class it was). Here is the bad news: they all appear white in the image files, which means they are being given color by something, either scripting which one of the UI boys could change or it might be hard coded.

Mind you, I did not spend too much time looking into this, if someone were to dig deeper, they may find I am wrong.

Edit: @ Sober, are you sure that the mechanism used in SHIII for those symbols is the same as SH5?

I think they are hard coded too. I took a glance at them also, and I saw exactly what you described. Theres the Shapes folder which contains SHP files that, when opened with text, looks like jibberish. It look like HEX, but I'm no expert so I'm not sure.
__________________
Lurking In The Dark...
Royale-Adio is offline   Reply With Quote
Old 07-27-10, 12:22 AM   #2
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by Royale-Adio View Post
I think they are hard coded too. I took a glance at them also, and I saw exactly what you described. Theres the Shapes folder which contains SHP files that, when opened with text, looks like jibberish. It look like HEX, but I'm no expert so I'm not sure.
The only shp files i have found are dds files ?
THE_MASK is offline   Reply With Quote
Old 07-27-10, 12:58 AM   #3
Royale-Adio
Officer
 
Join Date: Jul 2009
Posts: 238
Downloads: 119
Uploads: 5
Default

I meant in the menu folder.
__________________
Lurking In The Dark...
Royale-Adio is offline   Reply With Quote
Old 07-27-10, 01:42 PM   #4
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 72
Uploads: 0
Quote:
Originally Posted by Royale-Adio View Post
I think they are hard coded too. I took a glance at them also, and I saw exactly what you described. Theres the Shapes folder which contains SHP files that, when opened with text, looks like jibberish. It look like HEX, but I'm no expert so I'm not sure.
I looked into the .shp files, that is what I found:
Not sure about the first number, maybe it is a color.

The second number gives you number of dots. I.e. 28 means that there are 28 dots.
The three-numbers rows following are the XYZ coordinates of those dots. Since we are talking about 2d shapes - z is always 0. X and Y are just that - X and Y. So if you take MS Excel or OO Calc and make it to plot XY graph on the coordinates given in the first part of our file - you can roughly see the actual shape coded in the file. Try it for example on the ring.shp file - the name is self-explanatory.

I guess the second part gives you shapes (thickness, maybe color) of the lines between the dots. But I cannot figure out what do the numbers mean.

However even knowing this I just do not undertand how and what to those .shp files are used in the game,
Vanilla is offline   Reply With Quote
Old 07-27-10, 02:01 PM   #5
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

I intend to publish my Shape Viewer in a few days.

I developed this tool in the past for some of my own map mods.
The viewer can display the shapes, export / import to/from OFF so editing of the shapes in others app is also possible.

__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 07-27-10, 02:03 PM   #6
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 72
Uploads: 0
Default

Quote:
Originally Posted by Seeadler View Post
I intend to publish my Shape Viewer in a few days.

I developed this tool in the past for some of my own map mods.
The viewer can display the shapes, export / import to/from OFF so editing of the shapes in others app is also possible.
Wow! Great news! Thank you so much! Now I don't have to spend my whole night looking into those files.
Vanilla is offline   Reply With Quote
Old 08-01-10, 08:05 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

the color is done by a shader and yes the color can be removed and set to just one color Here all contacts are set to black in color:


Now trying to take the color away from the contact lines......
TheDarkWraith is offline   Reply With Quote
Old 08-01-10, 08:55 AM   #8
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Nice work TDW. Now you should replace all the different icon .dds files with the same one.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 08-01-10, 09:01 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SteelViking View Post
Nice work TDW. Now you should replace all the different icon .dds files with the same one.
doesn't work like that. The symbols for the ships are drawn using the .shp files. The coloring for them is done with a pixel shader.
TheDarkWraith is offline   Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT -5. The time now is 05:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.