ATTENTION ALL PROBLEM-SOLVERS: How would you approach this scenario?

Question Scripting

Attention: Python and developing ahead. I've been contemplating a solution for this, but it's becoming increasingly complex for me. The question is clear: How can you synchronize the clock with the position of the sun? In other words, how can you create a functioning clock in this animation? (A day time lapse)


et_Problem copia.jpg


The solution I've devised seems overly complicated, but I believe it's a viable approach...

So, let's get started:

  1. First, I would create textures for numbers 1 to 9, in order to represent all possible hours.
  2. Next, I would take the mesh and create two placeholders in the area of the numbers, assigning them the same material but with the textures set up in the shading area.
  3. The third step, which is the most complex, involves creating a Python script with an iterating if/then statement: If sun.elevation = 90º, then texture.n. The idea is to increment from one hour to the next (without minutes) to simplify the process. So, depending on the sun's elevation, Blender would automatically switch between the different textures (.jpg).

t_Solution copia.jpg

I'm not certain if this is feasible, but it seems plausible in my mind... I would appreciate it a lot if someone with more expertise in this area could correct me and show me the script for this... or explain how they would approach this question!

Thank you all.

2 loves
Reply
  • Dwayne Savage(dillenbata3) replied

    spikeyxxx method paired with this Digital Font I think is awesome. It also appears to be a pretty simple setup. I really need to learn more about goenodes. The only problem I see is it removes the leading 0 for first 9 minutes. 

    1 love
  • Martin Bergwerf replied

    "The only problem I see is it removes the leading 0 for first 9 minutes."

    Yeah, I haven't figured that out yet, but it shouldn't be too hard to fix, I expect...Probably just using a Switch Node could do the trick..



    2 loves
  • Martin Bergwerf replied

    ...and dillenbata3  anarchymedes  and Infoxicao about the posts before...it is amazing how many ways you can come up with when you start thinking about it, right.

    2 loves
  • Dwayne Savage(dillenbata3) replied

    As usual you are spot on spikeyxxx I didn't even know about the switch node. It works great. I made it into a node group so I could apply it to the minutes as well. I'm Totally going to use this geonodes setup for my project. 

    4-01-21 13-34-00.png

    • 🥳
    1 love