[x3d-public] X3D Scripting for X3DOM w/o reading standard

Joseph D Williams joedwil at earthlink.net
Fri Dec 3 13:07:05 PST 2021


Well, wish for rain and you deal with the mud, so is what you are asking is how to include a script in an event system that does not have a really deep consideration for content of the current host or hosted frame at any particular time? For x3d, hopefully the idea that the x3d scene can proceed in accordance with controlled or maximum frame rate remains, and that ‘internal’ event system works with script nodes included in the cascade, and we can drive it from ’external’ expecting the same responses, including events to ‘internal’ script. 

Is there some writings describing this event system that has stumbling blocks that remain given the latest and  greatest DOM? 

➢ 4.  What is the new event model for X3D4? 

What I can see at 
https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/concepts.html#Eventmodel

what is different? Does your question have to do with something happening when the host can’t figure out how to deal with a child that includes what is expected to be just another node in the scenegraph (if you wish to at  least maintain the expected x3d event system) however, the hosted scene has a script so now x3d doesn’t work anymore? 

H

From: Joseph D Williams
Sent: Friday, December 3, 2021 11:54 AM
To: John Carlson; X3D Graphics public mailing list
Subject: Re: [x3d-public] X3D Scripting for X3DOM w/o reading standard

➢ 2.  What are the stumbling blocks to getting script fields into the event model?

Hi John,
Scripts are completely involved in the x3d sai event model. A script must receive an event to begin execution and then it is like an ’external’ in that when the script begins it essentially acts like a beginUpdate and when it completes it essentially gets an endUpdate and all outputs are sent with the same time stamp as kicked off the script. Think of it as script is like any other node that can receive and send events. Only exception is, I think, that a script directOut does not initiate a new cascade

➢ 3.  If scripts are transformed, how?

If it is ECMAScript then what do you do? What can be done? Break it down into json like any other node? For some reason I hope not.

Joe 


From: John Carlson
Sent: Tuesday, November 30, 2021 11:40 AM
To: X3D Graphics public mailing list
Subject: [x3d-public] X3D Scripting for X3DOM w/o reading standard

Information needed:


1.   Do scripts in proto bodies get copied?

2.  What are the stumbling blocks to getting script fields into the event model?

3.  If scripts are transformed, how?

4.  What is the new event model for X3D4?

John


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211203/4c03ea53/attachment.html>


More information about the x3d-public mailing list