Papawy / Papawyconv

GTA SA IPL and IDE to SAMP artconfig.txt and streamer converter.
Apache License 2.0
13 stars 2 forks source link

Rx Ry Rz #6

Open MaxAndolini opened 6 years ago

MaxAndolini commented 6 years ago

Most rx ry rz parameters are incorrectly converted.

Command

papawyconv.exe --addx 3000 --addz 5 --ide vcccc.ide --ipl vcccc.ipl --acc

.ipl

4729, comlights09, 0, -1001.64, 524.37, 205.626, 0.5, 0.5, 0.5, -0.5, -1

.ide

4729, comlights09, comlights, 1200, 0, 22, 7

streamer.pwn

CreateDynamicObject(-7350, 1998.36, 524.37, 210.63, 90.00, NaN, 0.00, -1, 0, -1,STREAMER_OBJECT_SD, 1200.00); // comlights09

another;

1313, trafficlight1, 0, -1073.01, 755.81, 28.15, -1.87637e-06, -1.87637e-06, -0.707106, -0.707107, -1

streamer.pwn

CreateDynamicObject(1313, 1926.99, 755.81, 33.15, 0.00, 0.00, -90.00, -1, 0, -1,STREAMER_OBJECT_SD, STREAMER_OBJECT_DD); // trafficlight1

V1ck3s commented 6 years ago

@MaxAndolini Papawy has been busy a lot lately and he apologizes. He will answer you when he has time. For the moment he is on a very big project!

Papawy commented 6 years ago

Try with --quat and tell me if it's better. I've implemented to algorithms for quats to Euler. The --quat one is the first I have implemented and if I remember well it was not working good. The actual one was working. Your NaN is a bit strange for me. I will see if I can bugfix it in 2 or 3 days (no guarantee).

MaxAndolini commented 6 years ago

Command:

papawyconv.exe --addx 3000 --addz 5 --ide vcccc.ide --ipl vcccc.ipl --acc --quat

.ipl

4729, comlights09, 0, -1001.64, 524.37, 205.626, 0.5, 0.5, 0.5, -0.5, -1

.ide

4729, comlights09, comlights, 1200, 0, 22, 7

streamer.pwn

CreateDynamicObject(-7350, 1998.36, 524.37, 210.63, -90.00, 0.00, -90.00, -1, 0, -1,STREAMER_OBJECT_SD, 1200.00); // comlights09

another;

1313, trafficlight1, 0, -1073.01, 755.81, 28.15, -1.87637e-06, -1.87637e-06, -0.707106, -0.707107, -1

streamer.pwn

CreateDynamicObject(1313, 1926.99, 755.81, 33.15, 0.00, 0.00, 90.00, -1, 0, -1,STREAMER_OBJECT_SD, STREAMER_OBJECT_DD); // trafficlight1

these are with --quat and again not same rx ry rz positions.

@Papawy