PDA

View Full Version : texture problem on the VIIB desk


Pascal
02-22-21, 05:38 AM
Is it possible to correct this small texture problem on the VIIB desk (the white line)?
http://dar-eva.com/capture02.png

kapuhy
02-23-21, 06:45 PM
Is it possible to correct this small texture problem on the VIIB desk (the white line)?
http://dar-eva.com/capture02.png

Looks like uv map doesn't align with texture. A way to fix this would be either extending texture by 1 pixel or, if this happens at the edge of texture map, by correcting uv (that would require exporting mesh, moving uv coordinates and reimporting mesh again, since you're not modifying the mesh you can do it with strict import option in gr2 editor)

Pascal
02-24-21, 11:58 AM
Looks like uv map doesn't align with texture. A way to fix this would be either extending texture by 1 pixel or, if this happens at the edge of texture map, by correcting uv (that would require exporting mesh, moving uv coordinates and reimporting mesh again, since you're not modifying the mesh you can do it with strict import option in gr2 editor)

Merci beaucoup for your message - I'm afraid your method is far beyond my capabilities - I'm pretty good with photoshop, but not much more.

gap
02-25-21, 08:29 AM
Merci beaucoup for your message - I'm afraid your method is far beyond my capabilities - I'm pretty good with photoshop, but not much more.

You need to extend the dark deck texture by a few pixels on the side where the clearer line appears. If that texture adjoins one of bitmap's edges, you can continue it in the opposite edge :salute:

Pascal
02-25-21, 10:21 AM
You need to extend the dark deck texture by a few pixels on the side where the clearer line appears. If that texture adjoins one of bitmap's edges, you can continue it in the opposite edge :salute:


http://dar-eva.com/Uboat7B_deck1.jpg

First of all, thank you for your help but I'm not sure I understand: I can't change the size of the image and no matter what tint is applied, there is always this clear line - No, I think the solution is in a data file, or data structure, but here I don't know how to do it.
Is this line just my PC or is it everyone?

GrenSo
02-25-21, 11:05 AM
Is this line just my PC or is it everyone?


I have the same with and withou your mod of VIIB.


https://www.subsim.com/radioroom/attachment.php?attachmentid=4071&stc=1&d=1614269055


https://www.subsim.com/radioroom/attachment.php?attachmentid=4072&stc=1&d=1614269055

Pascal
02-25-21, 12:41 PM
I have the same with and withou your mod of VIIB.


https://www.subsim.com/radioroom/attachment.php?attachmentid=4071&stc=1&d=1614269055


https://www.subsim.com/radioroom/attachment.php?attachmentid=4072&stc=1&d=1614269055

If I may say so, it reassures me, so a pro I hope to work on this bug.
I also see that I still have to work on the design of this deck VIIB.

gap
02-25-21, 01:56 PM
I should export VIIB's model and check it in a 3D editing program, but from the last screenshots posted by GrenSo I would say that the problem is caused by an mistake in deck's UV mapping which is only made more obvious by your new texture :yep:

kapuhy
02-26-21, 05:11 AM
Checked this.

Two planes that are parts of boat deck do not touch as they should, leaving a small hole through which boat's hull below is visible. Solution would be in this case to reposition vertices of one of the deck planes by a bit. I have work atm, but I'll try to fix this in the evening.

Jeff-Groves
02-26-21, 11:48 AM
I've found the 4 verts that need moved.
I'm changing them by hex editing the GR2 file.
That insure the VIIB GR2 remains stock for all intents and purposes.
File size does not grow that way and future edits are as if it was a stock file.

It's easier to do simple edits like this rather then take the risk of borking the files for future work.

Should anyone want the information on how I do this?
I'd be happy to post the how to.

kapuhy
02-26-21, 12:49 PM
Should anyone want the information on how I do this?
I'd be happy to post the how to.

Absolutely! While GR2Editor is fine tool, it does cause files to grow (at least with loose import, I didn't try strict a lot) so for simple edits like this another method would be very useful.

Jeff-Groves
02-26-21, 01:23 PM
It may seem hard at first if your not a hex editing Guy!
But it is really simple once you do it a few times.

1st
I export the deck to an object file. What you use to do that does not matter.
No tool out there will give you the EXACT vert information! They all round to 6 places and that is where the secret lies!

Next,
I edit the exported object file in any 3D program to have just the area I want.
I delete anything not important to the area we want to edit.
Then save the file as 2 different obj files so I can compare them.
I end up with 2 faces in each obj file and 6 verts in each.
I'm only interested in 4 verts in each file. 4 of those are the ones to adjust!

At this point you should have 2 files that look like this in note pad.

Forward section...........

# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# File Created: 26.02.2021 10:04:53

#
# object NSS_Uboat7b_deck_41
#

v 0.102030 0.141436 -2.210532
v 0.104960 0.144917 -2.081790
v -0.102031 0.141436 -2.210532
v -0.104961 0.144917 -2.081790
v 0.000000 0.141436 -2.210532
v 0.000000 0.141436 -2.210532
# 6 vertices

g NSS_Uboat7b_deck_41
f 6 3 4
f 2 1 5
# 2 faces

Rearward section.........
(This one I exported with 12 precision but that didn't help)


# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# File Created: 26.02.2021 09:17:14

#
# object NSS_Uboat7b_deck_41
#

v 0.098945997655 0.138082996011 -2.316945075989
v -0.098947003484 0.138082996011 -2.316945075989
v 0.101992003620 0.141395002604 -2.211843013763
v -0.101993001997 0.141395002604 -2.211843013763
v 0.000000 0.141395002604 -2.211843
v 0.000000000000 0.141395002604 -2.211843013763
# 6 vertices

g NSS_Uboat7b_deck_41
f 6 3 1
f 2 4 5
# 2 faces


You can copy the above info and save as an obj and get both my working files.

Jeff-Groves
02-26-21, 01:43 PM
If you look at the Y position? (It is an XYZ layout)
There are 4 exact matches in each file. Those are what we want to edit!

Now the secret of how we find those in a Hex Editor for the changes!

I use a site to convert the decimal numbers to a float as a start.
I know the results will not find the float I want so I do a wild card search.
In 010 I open the GR2 file and search for * C9 10 3E
I get 17 results so I narrow those down by starting at the bottom of the results!
Reason is the deck is far down in the GR2 file!

I then compare the floats ahead and behind the find results to the obj files and narrow down to the floats I want!

C7 C9 10 3E ends up being the match 9 times. We only need 4 so we look at all of them.

Jeff-Groves
02-26-21, 01:52 PM
Now I do the something with the forward section I saved to get the final editing settings.

Once I find that information? I edit the GR2 file and it's as if it was never touched!
I also recalculate the CRC so it is correct.

I've Ghosted the file in a way that no Tool out there does!
I don't put my name in it. I don't change the format.
:03:

By the way? You can Ghost TDW's tools to do a strict import with just NotePad.

Pascal
02-26-21, 02:19 PM
This is all very clever. But, I think the easiest way would be to put this modified file online for download?

Jeff-Groves
02-26-21, 02:36 PM
It will be.

kapuhy
02-26-21, 03:23 PM
It may seem hard at first if your not a hex editing Guy!

I'm not, though this gives me yet another reason to change this ;)

Thanks!

Jeff-Groves
02-27-21, 05:27 PM
Sorry. Had to do some real world stuff that slowed me down.
My Son was in a Bowling Tournament and I went to support him.
He Won!

What I did find is that there are actually 5 verts that need moved!
Not a problem once I narrow down a few things.

I'll probably move all the verts that meet my findings then check in Granny Viewer.

Jeff-Groves
03-02-21, 02:19 PM
https://www.mediafire.com/file/s113txeqdrhopn7/NSS_Uboat7b_Gr2.7z/file

Jeff-Groves
03-02-21, 02:58 PM
For some reason my connection when logged in is bad.
Took me 3 days to post the above link!
Test it and give me feed back.

kapuhy
03-02-21, 03:20 PM
For some reason my connection when logged in is bad.
Took me 3 days to post the above link!
Test it and give me feed back.

Hi,

the gap seems smaller but it's still there:

https://i.imgur.com/NGB5MCc.png

Jeff-Groves
03-02-21, 03:30 PM
There's a few verts attached to the main hull I'll need to edit.
Will post an update as soon as connection gets better.
:doh:

Jeff-Groves
03-02-21, 04:19 PM
Try this one.

https://www.mediafire.com/file/8ucejpkd1jv0z4y/NSS_Uboat7b-GR2-test.7z/file

kapuhy
03-02-21, 05:25 PM
Try this one.

https://www.mediafire.com/file/8ucejpkd1jv0z4y/NSS_Uboat7b-GR2-test.7z/file

Now it seems to be overlapping (note flickering):

https://youtu.be/0Yltz6R9t6E

Jeff-Groves
03-05-21, 11:42 AM
YAY!!! Internet is working again!!!!

Newest 7B deck fix. Please test and advise.

https://www.mediafire.com/file/6jhiyfmrm7h63k4/NSS_Uboat7b.7z/file

Jeff-Groves
03-06-21, 11:23 AM
Checked the new file in Goblin and it appears fine!
:up:

Feel free to do as you wish with the file.
Don't even care about credits. If you insist on giving credits?
Give credit to Subsim Modders Pascal for spotting it, kapuhy and gap for checking it, Anvart for his CRC script for 010.

Details-
A stock 7B GR2 file was edited with 010 Editor.
Part of the deck was mistakenly attached to the main hull and texture mapped all wrong.
I adjusted the main deck verts to close the gap then shrunk the part on the main hull to disappear deep into the 3D model.
I then changed the CRC to be correct for a GR2 model with a script for 010 written by My Friend Anvart.

Pascal
03-06-21, 01:48 PM
I tried on a historical mission: the clear line always visible

Jeff-Groves
03-06-21, 01:56 PM
I tried on a historical mission: the clear line always visible
Can you get a screen shot?
That should not be possible since verts were connected to existing verts.
Then the offending part removed from sight.

:hmmm:

Jeff-Groves
03-06-21, 02:12 PM
Just checked it In Game and I'm not seeing any line.
Are you sure you have the newest file?

Well heck! You must be seeing the 7B AI which has the same problem!
I suspect your using the U99 as that Sub calls the 7B AI hull.
Guess I'll fix that one also!

Be specific on things!

Jeff-Groves
03-06-21, 02:42 PM
All the same verts to move just different addresses in Hex.
Dang it! I deleted half the information I need so I have to start from nearly scratch!
:nope:

Jeff-Groves
03-06-21, 04:33 PM
Below is the information on up coming changes to the 7B AI hull.


Found 11 occurrences of '9bd4103e'.
12B674h 4h 9bd4103e
12C774h 4h 9bd4103e
12D2F4h 4h 9bd4103e
135774h 4h 9bd4103e
3F9B34h 4h 9bd4103e
412FB4h 4h 9bd4103e
4273B4h 4h 9bd4103e change All 0000's
43E474h 4h 9bd4103e
43EB74h 4h 9bd4103e
43F0F4h 4h 9bd4103e change All 0000's
442674h 4h 9bd4103e change All 0000's
^
These move the Hull verts to zero placement

All other edits to below addresses.
Found 9 occurrences of 'C7 C9 10 3E'.
12E2F4h 4h C7 C9 10 3E change
12E334h 4h C7 C9 10 3E change
12E374h 4h C7 C9 10 3E change
135A74h 4h C7 C9 10 3E change 1st 4 changes are the deck
432874h 4h C7 C9 10 3E
432AB4h 4h C7 C9 10 3E
432BF4h 4h C7 C9 10 3E change hull vert
43F0B4h 4h C7 C9 10 3E change hull vert
4426B4h 4h C7 C9 10 3E change hull vert

Then a correction to the CRC.


Now. I can do a patch file for both so You'd not need to download a complete version.
What would be better for everyone?

gap
03-06-21, 05:57 PM
Now. I can do a patch file for both so You'd not need to download a complete version.
What would be better for everyone?

That would be nice. I don't think many subsim buddies wil be able to follow your instructions below, and I am one of the lol :D

Jeff-Groves
03-06-21, 08:29 PM
I'll have full versions of both the 7B and 7B AI GR2 files tomorrow.
Then I'll also make a patch download for those who might want a smaller package.

I'd be surprised if anyone still around would do the hex editing.
:haha:

Some people love it. And all the rest just get confused looks on their face if you say "Hex edit". As if you were talking about witches Hex.
:har:

gap
03-06-21, 11:57 PM
I'll have full versions of both the 7B and 7B AI GR2 files tomorrow.
Then I'll also make a patch download for those who might want a smaller package.

I'd be surprised if anyone still around would do the hex editing.
:haha:

Some people love it. And all the rest just get confused looks on their face if you say "Hex edit". As if you were talking about witches Hex.
:har:

I can find an hex address , I can change a value with another value and I can compare files in hex editor. I am not afraid of doing that, but that doesn't necessarily imply that I know exactly what I am doing lol.

I have the (very) basics of information science, and I know how to perform the most basic hex operations on files, but I lack the rest of the picture between those two levels.

If you a ready to answer a bunch of silly questions, I am ready to learn :salute:

Jeff-Groves
03-07-21, 08:57 AM
7B_AI corrected.

https://www.mediafire.com/file/vev2c0wty4lgu0b/NSS_Uboat7b_AI.7z/file

Feel free to do as you wish with the file.
Don't even care about credits. If you insist on giving credits?
Give credit to Subsim Modders Pascal for spotting it, kapuhy and gap for checking it, Anvart for his CRC script for 010.

gap
03-07-21, 09:58 AM
7B_AI corrected.

https://www.mediafire.com/file/vev2c0wty4lgu0b/NSS_Uboat7b_AI.7z/file

Feel free to do as you wish with the file.
Don't even care about credits. If you insist on giving credits?
Give credit to Subsim Modders Pascal for spotting it, kapuhy and gap for checking it, Anvart for his CRC script for 010.

:up::salute:

Jeff-Groves
03-07-21, 10:25 AM
I'll do a patch file for each GR2 also.
That will be a way smaller download for people that may be limited.