You are browsing as a guest. Sign up (or log in) to start making projects!

12h 18m 30s logged

BACK BABY !!!

Okay so I’m going to try to summerize what I’ve done in a few days
(didn’t know that when +10hr logged the rest aren’t taken for the payout calculation…. MY BAD)

So in the last devlog I was at the step of acquiring the SIMBAD database positions of the celestials objects that I wanted. So I was able to figure that out and let yall with the results of having things like
=> Sirius , RA/DEC of 101 / -16.

During this period this is pretty much all I did in “order” :

-First I converted the RA / DEC into Az/Alt coords , that allows to
locate the object for the user by him being the anchor point of this ,
so for example a Az of 90° is at East and a Alt of 70° in addition with
the Az means the object is at East pretty high up in the sky because
it’s 70° from the horizon.This step took some time because I really
tried to understand the logic behind it , at some point I understood all
the steps / elements needed for the mathematical trick that was needed , from there I cherched forums for astronomical formulas and magic from there hehe. (Screenshot of the js script for that)

-From there after some esthetical adjustements I went into brefly
learning Three.Js , an beautiful webdev tool that makes us devs able to
Create / Display / Render some 3D for our websites !!!!
I for now learned pretty much the basic and didn’t really put much
effort into the esthetic (FOR NOW) , as you can see in the screenshot
( = .

-2 days ago I started working on the backend (with Render thx) that was needed for my app to hide the APIs Key. This step wasn’t something I really enjoyed because even tho I understood all the logical thing behing every requirement and action , I still remained stuck for long moments without any idea. This lead to Claude helping me , sorry );
BUT it was only minor bugs that would’ve took me SO MANY TIME to see , like wow… Now my only issue is that I am currently using a free plan for my server so after a little time without request , it will go to sleep and when the first request after that comes , it will take a pretty long time to load (Around 40s/1min … making the first Loading for some user TOO LONG)

-AND NOW here we are ! So in the last hours logged what I did is add the scope for the 3d page and also position a pink sphere representing the selected object at his ACTUAL POSITION (like in Stellarium hehe). Today I also got in Raycasting method to click on a mesh and trigger an event. Yes in 3d like three.js adding a simple EventListener(“click”…) can’t be done. So the Idea is casting a ray from a point like your mouse and this ray (A mathematical Vector) will INTERSECT with the mesh if
correctly orientated and THIS will prove to us that the usre clicked on
the object. That is for me useful for a feature : I want that when the
user succesfuly place the object in his LookUp scope , my JS detect this
with a ray casted from the center of the scope and is then able to show
a little info pannel like you can see in the 2nd screenshot again !

So yeah that’s it ! I find letting multiple logged days more enjoyable
to devlog so Imma keep it like that I think (;

Next step is really being able to control the 3D camera with the
deviceorientationabsolute of the user’s phone.
(For now I have been able with Quaternion (set with Euler for now) , to
make a cube rotate with the phone being physically rotated IRL)

If someone READ all that , please tell me in the comments what do you
think , that would MAKE MY DAY , for real !

Love to yall <3

0
8

Comments 0

No comments yet. Be the first!