SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Dat and obj question. (https://www.subsim.com/radioroom/showthread.php?t=104745)

DivingDuck 01-30-07 01:49 PM

Hello privateer,

I did not dig deep into the texture coords issue til now, but maybe this can bring some light to you:

This i how the uvw mapping tool desktop should look like in any 3dprogramme

http://img444.imageshack.us/img444/4788/vt001tg2.jpg

As the SHIII engine turns Y to -Z in vertex position it might be, that there´s a similar turnover in vertex texture coordinates. Just imagine Y becomes -Y and is counted from the top left corner. Would that match your data?

I´ve reached a point where my English isn´t good enough to explain what I mean. Hope you understand it anyway.

Regards,
DD

Madox58 01-30-07 04:04 PM

@DD, that could be. I've looked at several different files now.
the subtraction from 1 holds true in all the dats I've looked at
so I'll use that as a rule till proven wrong in testing. :yep:

Going back to the other section:
9/2 8/3 7/1

I've got an idea what is going on here but I need to look at the dats some
more.

We take the left numbers first 9 8 7
then the right numbers 2 3 1

In the NavalMines.dat these numbers are reduced by 1
We read 8 7 6 1 2 0

Not sure if this is game wide yet.

ref 01-30-07 04:31 PM

Quote:

Originally Posted by privateer
@DD, that could be. I've looked at several different files now.
the subtraction from 1 holds true in all the dats I've looked at
so I'll use that as a rule till proven wrong in testing. :yep:

Going back to the other section:
9/2 8/3 7/1

I've got an idea what is going on here but I need to look at the dats some
more.

We take the left numbers first 9 8 7
then the right numbers 2 3 1

In the NavalMines.dat these numbers are reduced by 1
We read 8 7 6 1 2 0

Not sure if this is game wide yet.

That's because the dat files use 0 based arrays.
ie. face 1 is stored in facearray[0]

Ref

Madox58 01-30-07 04:38 PM

Doh! :oops:
:rotfl:


All times are GMT -5. The time now is 03:44 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.