[x3d-public] protos for v4: x3dom + cobweb?
John Carlson
yottzumm at gmail.com
Thu Jan 28 12:38:47 PST 2016
So you have to keep all events around until all direct outputs are sent? How do you create a cascade? What is “complete”? Parsed?
How do scripts “run”, when they are a collection of functions? Are functions events?
> On Jan 28, 2016, at 1:10 PM, Joe D Williams <joedwil at earthlink.net> wrote:
>
> The X3D execution model is simple.
>
> The script is this.
>
> Events are sent when the script is complete.
>
> Events are part of the current cascade.
>
> DirectOutputs are sent as set, outside the current cascade.
>
> Joe
>
>
>
>
> ----- Original Message ----- From: "John Carlson" <yottzumm at gmail.com <mailto:yottzumm at gmail.com>>
> To: "doug sanden" <highaspirations at hotmail.com <mailto:highaspirations at hotmail.com>>
> Cc: "X3D Graphics public mailing list" <x3d-public at web3d.org <mailto:x3d-public at web3d.org>>
> Sent: Thursday, January 28, 2016 7:05 AM
> Subject: Re: [x3d-public] protos for v4: x3dom + cobweb?
>
>
> Here’s a good start on porting Scripts from X3D to X3DOM:
>
> https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js <https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js><https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js <https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js>>
>
> download the code with:
>
> git clone https://github.com/coderextreme/X3DJSONLD/ <https://github.com/coderextreme/X3DJSONLD/>
>
> I need help understanding the X3D execution model. Right now, it’s all messed up.
>
> This is a driver for it:
>
> https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js <https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js><https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js <https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js>> which generates the JavaScript and evals (yuck!) it.
>
> I’m not sure prototypes need too much more work, but you can try converting your prototypes to JSON and expanding them. it would be helpful to get a
> tester. I would just like to get scripting working in the short term. That’s my priority 1 item besides validating and encoding JSON for display in X3DOM.
>
> We can add stuff like the requestFieldRef and releaseFieldRef to the X3D JSON loader for X3DOM soon as well. Question: Can I request and release in quick succession, and can I use objects and arrays to set the values of the requested field?
>
> This code allows for Cross Site Scripting (XSS) if used improperly! Know your data (no don’t trust it), or validate with schema and encode (yes we are working on it).
>
> John
>> On Jan 28, 2016, at 9:42 AM, John Carlson <yottzumm at gmail.com> wrote:
>>
>> Think of Cobweb as a classic VRML silo ported to the web. At least that’s what it seems like to me. You must use VRML types in your VRMLscript, it’s not JavaScript.
>>
>> But yeah, if I read your subject right, you want to port Cobweb protos to X3DOM. I believe scripts would have to be ported as well. It might be worth investigating.
>>
>> John
>>> On Jan 28, 2016, at 9:19 AM, John Carlson <yottzumm at gmail.com> wrote:
>>>
>>> AFAIK, Cobweb does not do DOM or JQuery. Protos can be used with X3DOM, using my prototype expander for JSON (in beta), but not VRMLscript (partial implementation, alpha or pre alpha).
>>> We need to figure out how to route to and from scripts in X3DOM. See my many postings pleading for help. If you would want to help, I can show you the ropes.
>>>
>>> The alternative to Protos for X3DOM is web components, which is what the X3DOM folks are proposing.
>>>
>>> John
>>>> On Jan 28, 2016, at 9:13 AM, doug sanden <highaspirations at hotmail.com> wrote:
>>>>
>>>>
>>>> Q. could protos for V4 be in cobweb format?
>>>> -Doug
>>>> Goal: keep the jQuery/DOM crowd happy, but just up to the interface of a proto, not its body.
>>>> x I have not studied any techical details of either x3dom or cobweb, I have no idea if its doable/practical
>>>>
>>>>
>>>> _______________________________________________
>>>> x3d-public mailing list
>>>> x3d-public at web3d.org
>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>
>>
>
>
>
>
> --------------------------------------------------------------------------------
>
>
>> _______________________________________________
>> x3d-public mailing list
>> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
>> http://web3d.org/mailman/listinfo/x3d-public_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/20160128/e1720c73/attachment-0001.html>
More information about the x3d-public
mailing list