1 (edited by dgrafix 2007-10-06 02:11:51)

Topic: Is it me or entityyaw?

Hi Gman, just registered, great work you are doing here!!! smile

I noticed something peculiar about the way entityyaw works in Ib3d.

This is the report from debug ib3d_entityyaw when turning the cube by 1' each loop.
Can you see the problem (especially around the 90' & 270' area).

Is there a quick fix for this to get the -180 to +180 range like in normal b3d?

[codebox]
DebugLog:0.999999940
DebugLog:1.99999988
DebugLog:2.99999976
DebugLog:3.99999976
DebugLog:4.99999905
DebugLog:5.99999857
DebugLog:6.99999857
DebugLog:7.99999857
DebugLog:8.99999905
DebugLog:10.0000000
DebugLog:11.0000000
DebugLog:12.0000010
DebugLog:13.0000019
DebugLog:14.0000010
DebugLog:15.0000019
DebugLog:16.0000019
DebugLog:17.0000019
DebugLog:18.0000000
DebugLog:19.0000000
DebugLog:19.9999981
DebugLog:20.9999981
DebugLog:21.9999981
DebugLog:23.0000000
DebugLog:24.0000000
DebugLog:25.0000000
DebugLog:26.0000000
DebugLog:27.0000019
DebugLog:28.0000019
DebugLog:29.0000038
DebugLog:30.0000038
DebugLog:31.0000038
DebugLog:32.0000038
DebugLog:33.0000038
DebugLog:34.0000076
DebugLog:35.0000076
DebugLog:36.0000038
DebugLog:37.0000076
DebugLog:38.0000114
DebugLog:39.0000114
DebugLog:40.0000153
DebugLog:41.0000191
DebugLog:42.0000191
DebugLog:43.0000191
DebugLog:44.0000229
DebugLog:45.0000267
DebugLog:46.0000229
DebugLog:47.0000267
DebugLog:48.0000305
DebugLog:49.0000267
DebugLog:50.0000305
DebugLog:51.0000343
DebugLog:52.0000343
DebugLog:53.0000381
DebugLog:54.0000343
DebugLog:55.0000305
DebugLog:56.0000343
DebugLog:57.0000343
DebugLog:58.0000305
DebugLog:59.0000267
DebugLog:60.0000267
DebugLog:61.0000381
DebugLog:62.0000420
DebugLog:63.0000381
DebugLog:64.0000381
DebugLog:65.0000458
DebugLog:66.0000534
DebugLog:67.0000458
DebugLog:68.0000458
DebugLog:69.0000534
DebugLog:70.0000610
DebugLog:71.0000610
DebugLog:72.0000610
DebugLog:73.0000610
DebugLog:74.0000610
DebugLog:75.0000610
DebugLog:76.0000687
DebugLog:77.0000763
DebugLog:78.0000763
DebugLog:79.0000839
DebugLog:80.0000916
DebugLog:81.0000992
DebugLog:82.0000916
DebugLog:83.0001068
DebugLog:84.0001068
DebugLog:85.0001297
DebugLog:86.0001678
DebugLog:87.0001678
DebugLog:88.0002213
DebugLog:89.0002441
DebugLog:90.0000000
DebugLog:89.0000458
DebugLog:88.0000229
DebugLog:87.0000381
DebugLog:86.0000687
DebugLog:85.0000916
DebugLog:84.0001068
DebugLog:83.0001068
DebugLog:82.0001144
DebugLog:81.0001144
DebugLog:80.0001297
DebugLog:79.0001373
DebugLog:78.0001373
DebugLog:77.0001373
DebugLog:76.0001450
DebugLog:75.0001450
DebugLog:74.0001450
DebugLog:73.0001450
DebugLog:72.0001450
DebugLog:71.0001526
DebugLog:70.0001602
DebugLog:69.0001602
DebugLog:68.0001678
DebugLog:67.0001678
DebugLog:66.0001755
DebugLog:65.0001755
DebugLog:64.0001831
DebugLog:63.0001793
DebugLog:62.0001793
DebugLog:61.0001793
DebugLog:60.0001831
DebugLog:59.0001869
DebugLog:58.0001869
DebugLog:57.0001869
DebugLog:56.0001869
DebugLog:55.0001869
DebugLog:54.0001869
DebugLog:53.0001907
DebugLog:52.0001907
DebugLog:51.0001907
DebugLog:50.0001907
DebugLog:49.0001907
DebugLog:48.0001907
DebugLog:47.0001907
DebugLog:46.0001907
DebugLog:45.0001907
DebugLog:44.0001869
DebugLog:43.0001869
DebugLog:42.0001907
DebugLog:41.0001907
DebugLog:40.0001907
DebugLog:39.0001869
DebugLog:38.0001831
DebugLog:37.0001869
DebugLog:36.0001869
DebugLog:35.0001831
DebugLog:34.0001831
DebugLog:33.0001831
DebugLog:32.0001831
DebugLog:31.0001869
DebugLog:30.0001888
DebugLog:29.0001907
DebugLog:28.0001907
DebugLog:27.0001907
DebugLog:26.0001926
DebugLog:25.0001926
DebugLog:24.0001926
DebugLog:23.0001926
DebugLog:22.0001926
DebugLog:21.0001926
DebugLog:20.0001926
DebugLog:19.0001945
DebugLog:18.0001945
DebugLog:17.0001965
DebugLog:16.0001965
DebugLog:15.0001965
DebugLog:14.0001965
DebugLog:13.0001965
DebugLog:12.0001965
DebugLog:11.0001974
DebugLog:10.0001974
DebugLog:9.00019646
DebugLog:8.00019646
DebugLog:7.00019598
DebugLog:6.00019646
DebugLog:5.00019693
DebugLog:4.00019693
DebugLog:3.00019670
DebugLog:2.00019670
DebugLog:1.00019693
DebugLog:0.000196931156
DebugLog:359.000183
DebugLog:358.000183
DebugLog:357.000183
DebugLog:356.000183
DebugLog:355.000183
DebugLog:354.000183
DebugLog:353.000183
DebugLog:352.000183
DebugLog:351.000183
DebugLog:350.000183
DebugLog:349.000183
DebugLog:348.000183
DebugLog:347.000183
DebugLog:346.000183
DebugLog:345.000183
DebugLog:344.000183
DebugLog:343.000183
DebugLog:342.000183
DebugLog:341.000183
DebugLog:340.000183
DebugLog:339.000183
DebugLog:338.000183
DebugLog:337.000183
DebugLog:336.000153
DebugLog:335.000153
DebugLog:334.000153
DebugLog:333.000153
DebugLog:332.000153
DebugLog:331.000153
DebugLog:330.000153
DebugLog:329.000153
DebugLog:328.000153
DebugLog:327.000153
DebugLog:326.000153
DebugLog:325.000153
DebugLog:324.000153
DebugLog:323.000153
DebugLog:322.000153
DebugLog:321.000153
DebugLog:320.000153
DebugLog:319.000153
DebugLog:318.000153
DebugLog:317.000122
DebugLog:316.000122
DebugLog:315.000122
DebugLog:314.000122
DebugLog:313.000092
DebugLog:312.000092
DebugLog:311.000092
DebugLog:310.000092
DebugLog:309.000092
DebugLog:308.000092
DebugLog:307.000092
DebugLog:306.000092
DebugLog:305.000092
DebugLog:304.000061
DebugLog:303.000061
DebugLog:302.000061
DebugLog:301.000061
DebugLog:300.000061
DebugLog:299.000061
DebugLog:298.000061
DebugLog:297.000061
DebugLog:296.000061
DebugLog:295.000061
DebugLog:294.000061
DebugLog:293.000061
DebugLog:292.000061
DebugLog:291.000061
DebugLog:290.000031
DebugLog:289.000000
DebugLog:288.000000
DebugLog:287.000000
DebugLog:285.999969
DebugLog:284.999969
DebugLog:283.999969
DebugLog:282.999969
DebugLog:281.999939
DebugLog:280.999908
DebugLog:279.999908
DebugLog:278.999908
DebugLog:277.999908
DebugLog:276.999878
DebugLog:275.999878
DebugLog:274.999878
DebugLog:273.999878
DebugLog:272.999908
DebugLog:271.999878
DebugLog:270.999756
DebugLog:270.000000
DebugLog:270.999939
DebugLog:271.999878
DebugLog:272.999908
DebugLog:273.999878
DebugLog:274.999878
DebugLog:275.999847
DebugLog:276.999878
DebugLog:277.999878
DebugLog:278.999878
DebugLog:279.999847
DebugLog:280.999817
DebugLog:281.999786
DebugLog:282.999786
DebugLog:283.999786
DebugLog:284.999786
DebugLog:285.999786
DebugLog:286.999786
DebugLog:287.999786
DebugLog:288.999786
DebugLog:289.999786
DebugLog:290.999786
DebugLog:291.999756
DebugLog:292.999756
DebugLog:293.999756
DebugLog:294.999756
DebugLog:295.999756
DebugLog:296.999756
DebugLog:297.999756
DebugLog:298.999756
DebugLog:299.999756
DebugLog:300.999756
DebugLog:301.999756
DebugLog:302.999756
DebugLog:303.999756
DebugLog:304.999756
DebugLog:305.999756
DebugLog:306.999756
DebugLog:307.999756
DebugLog:308.999756
DebugLog:309.999756
DebugLog:310.999756
DebugLog:311.999756
DebugLog:312.999756
DebugLog:313.999756
DebugLog:314.999756
DebugLog:315.999756
DebugLog:316.999756
DebugLog:317.999756
DebugLog:318.999756
DebugLog:319.999756
DebugLog:320.999756
DebugLog:321.999756
DebugLog:322.999756
DebugLog:323.999756
DebugLog:324.999756
DebugLog:325.999756
DebugLog:326.999756
DebugLog:327.999756
DebugLog:328.999756
DebugLog:329.999756
DebugLog:330.999756
DebugLog:331.999756
DebugLog:332.999756
DebugLog:333.999756
DebugLog:334.999756
DebugLog:335.999725
DebugLog:336.999725
DebugLog:337.999725
DebugLog:338.999725
DebugLog:339.999725
DebugLog:340.999725
DebugLog:341.999725
DebugLog:342.999725
DebugLog:343.999725
DebugLog:344.999725
DebugLog:345.999725
DebugLog:346.999725
DebugLog:347.999725
DebugLog:348.999725
DebugLog:349.999725
DebugLog:350.999725
DebugLog:351.999725
DebugLog:352.999725
DebugLog:353.999725
DebugLog:354.999725
DebugLog:355.999725
DebugLog:356.999725
DebugLog:357.999725
DebugLog:358.999725
DebugLog:359.999725
DebugLog:0.99970942

[/codebox]

Re: Is it me or entityyaw?

greetings smile  its not you i think its the matrix rotations coming into play.  i dont understand quaternions enough to be able to rotate properly using them but i think if i could i would be able to fix the issue neutral

Re: Is it me or entityyaw?

If you can find my rotation with Ageia PhysX problem you will see the extent of this issue, it is an Irrlicht problem and Irrlicht is really famous for it, unfortunatly the fix is not simple even when using Irrlicht direct with c#, I fixed the problem with Agiea PhysX with the help of Render who owns the Ageia Blitz3d BMax wrapper at Rubux, you could also try and visit the Irrlicht site, there are fixes on there, but they are in c#, this is why I gave up in the end with Blitz, not putting it down but it's not very well supported, whereas c# is hmm  Sorry if this isn't much help.  Try Rubux, see if it helps.