Author Topic: GT2 Car Viewer: A tool to view GT2 cars...  (Read 17999 times)

harmalarm

  • Newbie
  • *
  • Posts: 3
Re: GT2 Car Viewer: A tool to view GT2 cars...
« Reply #60 on: May 27, 2019, 03:28:46 pm »
Awesome Leo, thanks for the info. I took a quick dive in your files and found it in texture_maker.pas
for triangles:
PI := ((TR1[LOD, ii].UKN13 shr 6) *4) +(TR1[LOD, ii].UKN13 and $003F);
for quads:
PI := ((QU1[LOD, ii].UKN12 shr 6) *4) +(QU1[LOD, ii].UKN12 and $003F);

I have never seen a situation like this before, but then again this is an old game and they used old tricks to get things rendered :D

Thanks again for the sources. would it also be possible for you to send me the sources of your track tool, perhaps via PM?