Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Unfortunately that just makes it point to the wrong time, as now it take 2 hours to move around the face
(E:LOCAL TIME, minutes) flr 60 %
(E:LOCAL TIME , seconds) INT (E:LOCAL TIME , seconds) 3600 / 3600 * -
<?xml version="1.0" ?>
<ModelInfo version="1.1" guid="{2b520599-a7ca-422b-68b3-cf47060b03f1}">
<LODS>
<LOD MinSize="0" ModelFile="mamu-clock-asobo.gltf"></LOD>
</LODS>
<Behaviors>
<Include Path="Asobo\Common.xml"/>
<Component ID="Clock">
<UseTemplate Name="ASOBO_INSTRUMENT_Needle_Current_Time_Clock_Template">
<HOURS>True</HOURS>
<MINUTES>True</MINUTES>
<SECONDS>False</SECONDS>
<USE_TIME_ADJUSTMENT_KNOB>False</USE_TIME_ADJUSTMENT_KNOB>
</UseTemplate>
</Component>
</Behaviors>
</ModelInfo>


Fantastic work, I have been playing with trying to get seconds to work however I have had no luck. Any suggestions?First thing first, we need to understand the code we are using before making modification,
This means, take the Local time in minutes (they are from the midnight!!)Code:(E:LOCAL TIME, minutes) flr 60 %
Divide It by 60 and take the modulo (%)
take the integer part of It (flr)
Onece you have the result, display that particular frame of the animation So you have a model with 360 degrees rotation with 60 Frames, each frame represent a rotation of 6 degrees ( 360/60)
But you want a smaller rotation to get It buttery smoooth
so i tried to work out a solution using a 3600 degree animation with this code:
Code:(E:LOCAL TIME , seconds) INT (E:LOCAL TIME , seconds) 3600 / 3600 * -
that should work, but it doesn't, and if a guru of RPN can spot where the error is, really appreciated
BUT
the solution is simpler:
use this code in you .xml, change only the guid and the gltf name
Code:<?xml version="1.0" ?> <ModelInfo version="1.1" guid="{2b520599-a7ca-422b-68b3-cf47060b03f1}"> <LODS> <LOD MinSize="0" ModelFile="mamu-clock-asobo.gltf"></LOD> </LODS> <Behaviors> <Include Path="Asobo\Common.xml"/> <Component ID="Clock"> <UseTemplate Name="ASOBO_INSTRUMENT_Needle_Current_Time_Clock_Template"> <HOURS>True</HOURS> <MINUTES>True</MINUTES> <SECONDS>False</SECONDS> <USE_TIME_ADJUSTMENT_KNOB>False</USE_TIME_ADJUSTMENT_KNOB> </UseTemplate> </Component> </Behaviors> </ModelInfo>
in your model, give the hours handle this name: INSTRUMENT_Needle_Clock_Hours
and the minutes handle, this name: INSTRUMENT_Needle_Clock_Minutes
animate booth with a 360 degree rotation (with nla as usual)
and presto, your clock will be suuuuper smoooth!
thanks ASOBO!
full project with source attached!

Hi Mamu,Can you tell how you are implementing seconds?
Share what have you tried so far, some source code, otherwise It Is pretty hard to tell where the problem Is
Inviato dal mio Mi 9 Lite utilizzando Tapatalk


Hello, MaMu.First thing first, we need to understand the code we are using before making modification,
This means, take the Local time in minutes (they are from the midnight!!)Code:(E:LOCAL TIME, minutes) flr 60 %
Divide It by 60 and take the modulo (%)
take the integer part of It (flr)
Onece you have the result, display that particular frame of the animation So you have a model with 360 degrees rotation with 60 Frames, each frame represent a rotation of 6 degrees ( 360/60)
But you want a smaller rotation to get It buttery smoooth
so i tried to work out a solution using a 3600 degree animation with this code:
Code:(E:LOCAL TIME , seconds) INT (E:LOCAL TIME , seconds) 3600 / 3600 * -
that should work, but it doesn't, and if a guru of RPN can spot where the error is, really appreciated
BUT
the solution is simpler:
use this code in you .xml, change only the guid and the gltf name
Code:<?xml version="1.0" ?> <ModelInfo version="1.1" guid="{2b520599-a7ca-422b-68b3-cf47060b03f1}"> <LODS> <LOD MinSize="0" ModelFile="mamu-clock-asobo.gltf"></LOD> </LODS> <Behaviors> <Include Path="Asobo\Common.xml"/> <Component ID="Clock"> <UseTemplate Name="ASOBO_INSTRUMENT_Needle_Current_Time_Clock_Template"> <HOURS>True</HOURS> <MINUTES>True</MINUTES> <SECONDS>False</SECONDS> <USE_TIME_ADJUSTMENT_KNOB>False</USE_TIME_ADJUSTMENT_KNOB> </UseTemplate> </Component> </Behaviors> </ModelInfo>
in your model, give the hours handle this name: INSTRUMENT_Needle_Clock_Hours
and the minutes handle, this name: INSTRUMENT_Needle_Clock_Minutes
animate booth with a 360 degree rotation (with nla as usual)
and presto, your clock will be suuuuper smoooth!
thanks ASOBO!
full project with source attached!


Thank you, KCGB for your appreciation.2 small issues.
1st. Your animations aren't linear, this won't stop it from working, but it won't tell the correct time.
2nd. Your animation names are INSTRUMENT_Needle_Clock_HoursA/B and INSTRUMENT_Needle_Clock_MinutesA/B. They need to be, "INSTRUMENT_Needle_Clock_Hours" for the two hours hand animations (they can both have the same name), and "INSTRUMENT_Needle_Clock_Minutes" for the two minutes hands.
