i dont know why your website is using tps protocol. my browser is telling me that it's unsafe. and your app is not working. I think the deviceorientation events is not triggering.
@@Radu yes i tried it on my brother phone and it worked correctly. I also copied the source code and console log the deviceOrientationEvent. I got one message only when the page load with alpha, betta and gamma equals to null. I was more sure when i remembered that some apps like compass doesn't work on my phone because this sensor isn't available on it.
I had the feeling that this video would open the doors to another great world of incredible tutorials! I love these apps that interact with reality using math!
I leave a query of something that I cannot understand: Is the height of the object that is being measured relative to the height of the person that is doing the measurement? For example: If I am 2 meters tall and I am 1 meter away from a tree that is 2 meters tall, when using the cell phone at the height of my head and not having to tilt it to carry out the measurement, the result of the triangulation should give me 0. Now, if a very intelligent ant at the same distance uses my cell phone to make the measurement, it will have to tilt the cell phone, obtaining a different result. Would my reasoning be correct?
Yes, for a better measurement you should give the device to the ant :-) I planned to do the measurement on my stomach, but I had a broken leg at the time and decided to skip 'advanced' moves like that :-D
I've been searching my whole life for someone who make things without libraires just like I'm so lucky I've find that channel thanks radu you're such an inspiration to me
Great app thank you! I've been troubleshooting how to get this to work on iOS. Anyone have any ideas? I can get my camera to stream video to safari or chrome but just not with the code written here.
@@Radu Hi sorry I forgot to write my solution. I basically wrote an if statement that checked if the mediaDevices was going to return true. Then it started working. if ('mediaDevices' in navigator && 'getUserMedia' in navigator.mediaDevices) { alert("Hello, it's me your camera") }
@@Radu not sure! I've been reading a lot about how iOS has lots of checks in place to stop automatic use of mic and camera. Maybe it helped that? Anyway, thank you so much for the help. Looking forward to doing more of your projects soon!