@hgy29 ps// My formula shows the correct results even without the calibration of the magnetic sensors, the compasses available in the store without the calibration show the wrong result
@hgy29 ps// My formula shows the correct results even without the calibration of the magnetic sensors, the compasses available in the store without the calibration show the wrong result
I do get what you say, but lets face it: if apps on the store gives incorrect results for you, then it is probably your phone that has a non commonly placed sensor... I don't want to offend, but do you have another phone to check ?
@hgy29 ps// My formula shows the correct results even without the calibration of the magnetic sensors, the compasses available in the store without the calibration show the wrong result
I do get what you say, but lets face it: if apps on the store gives incorrect results for you, then it is probably your phone that has a non commonly placed sensor... I don't want to offend, but do you have another phone to check ?
I checked on 5 devices
The apps in the store give the right result, but before using the apps you need to rotate the phone to calibrate the sensor
I have a tablet from google, I doubt that the sensor is non-standard
I also checked on third-party devices (samsung,lg)- everything works the same
On the phone from lenovo - does not work because there are no magnetic sensors there
I checked the Gideros compass example code against the 'built-in' Samsung app on my phone - same results. BUT, if I put the phone vertical the Samsung app stays accurate but the Gideros app flips 180 degrees.
(this has apparently been fixed in a newer version of Gideros, will be able to check tomorrow I think when @hgy29 gives me the apk).
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I checked the Gideros compass example code against the 'built-in' Samsung app on my phone - same results. BUT, if I put the phone vertical the Samsung app stays accurate but the Gideros app flips 180 degrees.
(this has apparently been fixed in a newer version of Gideros, will be able to check tomorrow I think when @hgy29 gives me the apk).
in the example of gyderos there are 2 errors
Replace the example code with this one and check on the player with the screen rotate automatically Be sure to turn off GPS
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I plan to use the compass as a joystick along with an accelerometer. So GPS is not suitable for me, but I need stable determination of the deviation of the phone from the magnetic pole.
in gideros installation folder \Library\3dbase wouldn't it be better to replace 3DObjLoader.lua (5kb) by objloader.lua (9kb). I don't seem to make 3DObjLoader.lua work for obj. objloader.lua works great.
in gideros installation folder \Library\3dbase wouldn't it be better to replace 3DObjLoader.lua (5kb) by objloader.lua (9kb). I don't seem do make 3DObjLoader.lua work for obj. objloader.lua works great.
I see gideros 2020.02 is coming could you please comment on the above? Thank you.
I think you mean the opposite: objloader.lua is actually much more advanced than 3DObjLoader ? For me objloader.lua works fine even with reactphysics3d. I tried to push it on github but I couldn't find the library folder!
No, I really mean 3DObjLoader is better: it handles polygon surfaces (not just triangle). It is lower in size because most of the work is now shared across multiple importers. It lacks a few texture options though, I can add them.
-- an object--local patrick = loadObj("3d_objs/Patrick Star", "patrick.obj", "3d_objs/Patrick Star/Tex_0086_2.png")local patrick = loadObj("3d_objs/Patrick Star", "patrick.obj")
I have this error: stack traceback: 3dbase/3DObjLoader.lua:54: in function 'parsemtl' 3dbase/3DObjLoader.lua:147: in function 'importObj' 3dbase/3DObjLoader.lua:160: in function 'loadObj'
Comments
magneticHeading = (math.atan2(fx, fy) + math.pi) * (180 / math.pi);
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
ps//
My formula shows the correct results even without the calibration of the magnetic sensors, the compasses available in the store without the calibration show the wrong result
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
The apps in the store give the right result, but before using the apps you need to rotate the phone to calibrate the sensor
I have a tablet from google, I doubt that the sensor is non-standard
I also checked on third-party devices (samsung,lg)- everything works the same
On the phone from lenovo - does not work because there are no magnetic sensors there
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
(this has apparently been fixed in a newer version of Gideros, will be able to check tomorrow I think when @hgy29 gives me the apk).
Likes: MoKaLux
https://deluxepixel.com
Replace the example code with this one and check on the player with the screen rotate automatically
Be sure to turn off GPS
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg
https://deluxepixel.com
I plan to use the compass as a joystick along with an accelerometer. So GPS is not suitable for me, but I need stable determination of the deviation of the phone from the magnetic pole.
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
when I type this simple macro gideros complains!
EDIT: PLAYER seems to be reserved, I changed to PLAYER1, all good
"falling back to ArrayBuffer instantiation"
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh
Fragmenter - animated loop machine and IKONOMIKON - the memory game
stack traceback:
3dbase/3DObjLoader.lua:54: in function 'parsemtl'
3dbase/3DObjLoader.lua:147: in function 'importObj'
3dbase/3DObjLoader.lua:160: in function 'loadObj'
Likes: MoKaLux