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 01-16-20, 10:43 AM   #1
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Somewhere in the conversion a few bytes are being skipped.
I have my suspicions why and I'll do more checking.
Nice thing is I have version 10 of SweetScape!
This version has a DeBug capability built in now.
I'll run the script on DeBug and step through each conversion to find the exact spot causing the issue.
Jeff-Groves is offline   Reply With Quote
Old 01-16-20, 05:58 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Somewhere in the conversion a few bytes are being skipped.
I have my suspicions why and I'll do more checking.
Nice thing is I have version 10 of SweetScape!
This version has a DeBug capability built in now.
I'll run the script on DeBug and step through each conversion to find the exact spot causing the issue.
Thank Jeff, sweet!

Let me know if I can assist you in any way
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-16-20, 06:11 PM   #3
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Just pointing out this helps for future work.
Jeff-Groves is offline   Reply With Quote
Old 01-16-20, 07:03 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Just pointing out this helps for future work.
With the negligible exception of the file I uploaded yesterday, so far your conversion scripts have worked flawlessly.

With their help, and with the use of few more tools (Grass GIS, the hgt data reader that OldCoder recompiled for us, a photoshop pgm importer/exporter, Ref's SH4 terrain data importer/exporter, and couple of spreadsheets I created for converting from pgm to obj format and for 'blending' seamlessly the data of two obj meshes), I was able to convert RW height data into in-game heights with unprecedented precision.

At present we can rebuild directly in a 3D editor fairly realistic models of little islands, seabed reefs/trenches, cliffs, gulfs and entire coastlines which were poorly modelled in stock game. We can reliably predict how they will look in SH5, and we can check the positioning of various 3D objects relative to them, before importing them in game!

This is exactly what I had in mind when I observed that, though an useful tool, the Terrain Editor built into the game was not accurate enough, and when I started bothering you and Pintea on the possibility of creating new tools
__________________
_____________________
|May the Force be with you!|
...\/

Last edited by gap; 01-16-20 at 07:19 PM.
gap is offline   Reply With Quote
Old 01-18-20, 04:12 PM   #5
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

I'm starting to believe there may be bug in 010 causing the odd ball issue.


I plan a few more tests to verify before I send off a bug report.
Jeff-Groves is offline   Reply With Quote
Old 01-18-20, 04:22 PM   #6
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Little endian versus big endian?...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 01-18-20, 04:55 PM   #7
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Found the problem!
Vert 8307 is 0.0000000e+0 on the Y

Thus does not get converted to a hex output properly!
Will code for that kind of situation.

When you re centered the other files you were slightly off on the Y axis so it changed things a bit.
Same vert is 1.0000000e-6 in the other file.

Still think it's a bug to be honest. A zero should be converted to a float no matter what!
Sent a bug report to SweetScape.

Last edited by Jeff-Groves; 01-18-20 at 06:19 PM.
Jeff-Groves is offline   Reply With Quote
Reply

Tags
enviromental mod, environment, terrain, trees, vegetation

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 Off

Forum Jump


All times are GMT -5. The time now is 12:07 AM.


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