#(baileyc889) Position of the sun in the skybox?

37 messages · Page 1 of 1 (latest)

south dune
#

Has anyone figured out how to find the position of the sun (in radians or degrees)? I've done some testing, morning horizon is 23250 ticks (5:15 am) and night horizon is 12750 ticks (6:45 PM). That gives 13,500 ticks during the day and 10,500 ticks during the night.

What I've found is the sun moves slower at noon/midnight and faster near the horizons, which means it rotates in an elliptical orbit.

Since the math gets significantly more complicated from here, I figured I'd ask if anyone has accomplished this before I go at it. My goal is to figure it ouf there are blocks interfering with a direct path between player and sun position using a location tag for the sun and the players location. Using rotate_around_z tag with an angle to get suns position.

vague hingeBOT
#

(baileyc889) Position of the sun in the skybox?

vague hingeBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

glacial lotus
#

Didn't we have a thread regarding this?

south dune
#

appears to have not been figured out. I cant find anything online either, they all say to convert ticks to radians. Being that it moves in an ellipse, this is gonna suck to math out

#

its also not a perfect ellipse because there's more daylight hours than night

#

or it is a perfect ellipse, and its shifted upwards from the player as the origin

south dune
#

Is there a tag for returning points along the perimeter of an area or anything else you guys might suggest could help?

sudden plank
#

there are the points_around_xyz tags

#

for circles

#

!t points_around_

candid basinBOT
# sudden plank !t points_around_
Cannot Specify Searched Tag

Multiple possible tags: <LocationTag.points_around_x[radius=<#.#>;points=<#>]>, <LocationTag.points_around_y[radius=<#.#>;points=<#>]>, <LocationTag.points_around_z[radius=<#.#>;points=<#>]>.

sudden plank
#

they'll return a perfect circle, but you could do this to get an ellipse'

#
<location[0,0,0].points_around_xyz[...].parse_tag[<[parse_value].with_x[<[parse_value].x.mul[1.5]]>]>
#

this will stretch the points by 1.5 in the x axis

#

thus making an ellipse

#

i typed that in mobile, so formatting may be incorrect

#

oh yeah that's also vectorized, so to turn it into a real location you'll have to pick a center for the ellipse (likely the player), and then

<[elipse].parse[add[<player.location>]]>
south dune
#

I’ll look into that. Thanks

south dune
#

My current plan is to pull angles ever 500ish ticks then generate a plot of triangles. Find the distance between each opposite corners of the triangles, they should decrease as the sun goes from horizon to noon. That will generate the quadratic curve that I need to calculate the position

south dune
#

!t round_to

candid basinBOT
# south dune !t round_to
Cannot Specify Searched Tag

Multiple possible tags: <LocationTag.round_to[<#>]>, <ElementTag.round_to[<#>]>, <LocationTag.round_to_precision[<#.#>]>, <ElementTag.round_to_precision[<#.#>]>.

south dune
#

!t ElementTag.round_to[<#>]

candid basinBOT
south dune
#

data acquired. I took data points 100 blocks from the player, putting cursor at the sun to get an angle between the flat world and a line between the sun and player

#

generated some angles. This shows the sun moves faster at dusk/dawn and slower at noon

#

this yields 2 possible results... The sun rotates in an elliptical rotation XXX blocks above the player as a pivot point. Or the MC world is round

south dune
#

!haste

candid basinBOT
south dune
#

ok.. here it is. ray tracing the sun to the player

#

granted.. its only effective from sun up (23250 ticks) to sun down (12750 ) because i didnt do the nighttime portion of the data collection

inner juncoBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@south dune