[x3d-public] TimeSensor Hierarchy
GPU Group
gpugroup at gmail.com
Mon Jul 3 09:42:03 PDT 2023
Somewhat tangentially related: test automation and MIDI files
- both have sequenced events
- with a delta-time between events
<information about event> dtime
<information about event> dtime
For MIDI the information is the music key aka midiNote:
MIDIOut
{
MFInt32 [out] octave
MFInt32 [out] key12
MFInt32 [out] key88
MFInt32 [out] keyPiano
MFInt32 [out] midiNote
}
MidiOctaveOut : X3DUtilityNode
{
SFInt32 [in,out] octaveFilter -1
MFInt32 [in] midiNote
SFBool [out] C
SFBool [out] Cs
SFBool [out] D
SFBool [out] Ds
SFBool [out] E
SFBool [out] F
SFBool [out] Fs
SFBool [out] G
SFBool [out] Gs
SFBool [out] A
SFBool [out] As
SFBool [out] B
}
so a midi keyboard could be used to record a midi file, and played back
with the time between notes recorded and affecting when an out event is
triggered.
Test automation: (yet to be published version of) freewrl has --record and
--playback commandline options.
On --record it monitors mouse and keyboard input and writes <information =
mouse xy, button> dtime and <information = key> dtime records in a
<scene_name>.fwplay file. On running with --playback, it reads that file in
a separate thread, sleeping(dtime) between sending the events to the
program.
-Doug
On Mon, Jul 3, 2023 at 10:12 AM Brutzman, Donald (Don) (CIV) <
brutzman at nps.edu> wrote:
> Here is one way to do it.
>
>
>
> - X3D Example Archives: X3D4WA, X3D for Web Authors, Chapter 07 Event
> Animation Interpolation, Time Sensor Chaining
> - Connecting TimeSensor nodes so that the completion of one behavior
> chain triggers another.
> -
> https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/TimeSensorChainingIndex.html
> -
> https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/TimeSensorChaining.x3d
>
>
>
> However, seems like a ROUTE or two might be missing/mistaken... Clicking
> to open the door opens OK, but then has trouble closing again.
>
>
>
> If anyone sees the mistake in the event chain, please advise, all
> corrections welcome.
>
>
>
> This is a good occasion to point out that something which took an X3D file
> and produced an event graph diagram (perhaps in SVG) would be generally
> useful. (On Linux, the Titania authoring tool has such a diagramming
> capability,)
>
>
>
> I will print out the HTML documentation version and draw the ROUTE lines
> mNUlly to visualize what is happening and troubleshoot further.
>
>
>
> -
> https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/TimeSensorChaining.html
>
>
>
> p.s. here are some helpful author checklists from book chapters on
> animation and interactivity.
>
>
>
> - 10-step process for constructing animation chains
> -
> https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/Chapter07-EventAnimationInterpolation.10StepAnimationDesignProcess.pdf
>
>
>
> - X3D Event Utility Nodes: Field Event Diagrams
> -
> https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/X3dEventUtilityNodeEventDiagrams.pdf
>
>
>
> Have fun with X3D animation! 8)
>
>
>
> all the best, Don
>
> --
>
> Don Brutzman Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
>
> Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA
> +1.831.656.2149
>
> X3D graphics, virtual worlds, navy robotics
> https://faculty.nps.edu/brutzman
>
>
>
> *From:* x3d-public <x3d-public-bounces at web3d.org> *On Behalf Of *Joseph D
> Williams
> *Sent:* Monday, July 3, 2023 6:52 AM
> *To:* X3D Graphics public mailing list <x3d-public at web3d.org>
> *Subject:* [x3d-public] TimeSensor Hierarchy
>
>
>
> Hi All,
>
> So, I have a master timesensor that will run enabled and several other
> timesernsors that need to be enabled or disabled in various sequences
> during the main time evolution. What is best way to build this control?
>
> Thanks,
>
> Joe
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230703/b2628a79/attachment.html>
More information about the x3d-public
mailing list