Re: Project Cars 2
Posted: Sun Jan 10, 2021 4:54 pm
Does that mean you extract the unencrypted part and just mirror everything, or...?
Did you tring with Fast and Furious samples?
Unfortunately none of these samples I checked come with a valid top projection. Same circumstance might be applied to most of the meb files from PC3. So it seems pretty obvious that it's not meant to be handled in this way.
Some years ago i send a model ripped using Ninja Ripper to Dave Noonan (author of 3DSimEd), he managed to restore mesh, using information from shader, but that method works only with one car model, others require another keys, which Noonan fails to locate and abandoned this game.Bigchillghost wrote: ↑Wed Jan 13, 2021 6:03 amSo it seems pretty obvious that it's not meant to be handled in this way.
Code: Select all
...
if_z r0.x
mov r1.z, l(0)
ld_indexable(texture2d)(float,float,float,float) r0.xyzw, r1.xyzz, t1.xyzw
mul r2.x, r0.w, cb1[13].x
mad r0.w, r0.w, cb1[13].x, -cb1[13].w
div r2.x, |r0.w|, r2.x
mul r2.y, cb1[13].z, cb1[13].z
add r2.z, -cb1[13].z, cb1[13].w
mul r2.z, r2.z, cb1[14].x
div r2.y, r2.y, r2.z
mul r2.x, r2.x, r2.y
mul r2.x, r2.x, cb1[10].x
mul r2.x, r2.x, l(14.285714)
lt r2.z, r0.w, l(0.000000)
movc r2.w, r2.z, cb1[13].y, cb1[14].y
min r2.x, r2.x, r2.w
mul r3.xy, cb1[11].xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
mul r4.xy, r2.xxxx, l(0.500000, 0.250000, 0.000000, 0.000000)
ge r0.w, r0.w, l(0.000000)
and r2.x, r0.w, l(1)
dp2 r2.w, cb1[12].xyxx, icb[r2.x + 0].xyxx
ge r2.w, r4.x, r2.w
mul r4.z, cb1[14].w, l(0.250000)
mov r4.w, l(2)
mov r5.x, r4.x
mov r5.y, cb1[14].w
mov r5.z, l(0)
movc r6.xyz, r2.wwww, r4.yzwy, r5.xyzx
dp2 r2.x, cb1[12].zwzz, icb[r2.x + 0].xyxx
ge r2.x, r6.x, r2.x
mul r7.xy, r6.xyxx, l(0.500000, 0.250000, 0.000000, 0.000000)
mov r7.z, l(4)
movc r6.xyz, r2.xxxx, r7.xyzx, r6.xyzx
lt r2.x, r6.x, l(1.000000)
movc r2.x, r2.x, l(0), r6.x
movc r2.x, r2.z, r2.x, r6.x
add r2.x, r2.x, r2.x
iadd r7.xyw, r1.xxxx, l(2, 1, 0, 3)
mov r1.w, r7.y
ld_indexable(texture2d)(float,float,float,float) r8.xyzw, r1.wyzz, t1.xyzw
...