[x3d-public] [x3d] V4.0 Open discussion/workshopon X3DHTMLintegration > brainstorming > protos

John Carlson yottzumm at gmail.com
Sat Jun 11 05:35:43 PDT 2016


I basically find it very hard to read, thus these long emails full of good stuff are almost making me cry.  I can’t read the spec or long emails, so we’ll have to keep it short.  If you look at my previous email, there is code generated from the script and code generated from the routes.  I need to know what to do to implement routes which interact with the DOM for X3DOM  (I probably don’t need to do anything for cobweb, since it already works with Scripts and Protos) and how to manipulate the script code to make it work in the X3D way.  A series of steps to get from point A (no scripts) to point B (full X3D scripts, or something near it) would be nice.  We are already handling protos for the most part in the proto expander separately from scripts, so people can start working on my Script code separately from protos.  My script code is here:

https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js

How to use the script code (sort of) is here:

https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js

The API interface is fairly simple, you send it an X3D JSON object and get back the script code and the route code which you eval to bring into JavaScript.  The X3D JSON object shouldn’t have prototypes in it.

We may have to do something with the global scope so it won’t get wiped out for each file (check it for undefined).

John
Sent from Mail for Windows 10

From: Joe D Williams
Sent: Friday, June 10, 2016 10:34 AM
To: doug sanden; x3d-public at web3d.org; x3d at web3d.org; John Carlson
Subject: Re: [x3d] [x3d-public] V4.0 Open discussion/workshopon X3DHTMLintegration > brainstorming > protos

>  (It might be if I knew X3D).  Hence my cry for help several months 
> ago.

OK John, we are here now, and want to help. Can you tell me again now 
what detail it is that you want to know about X3D?

Thanks and Best,
Joe


----- Original Message ----- 
From: "John Carlson" <yottzumm at gmail.com>
To: "doug sanden" <highaspirations at hotmail.com>; 
<x3d-public at web3d.org>; <x3d at web3d.org>
Sent: Friday, June 10, 2016 8:26 AM
Subject: Re: [x3d] [x3d-public] V4.0 Open discussion/workshopon X3D 
HTMLintegration > brainstorming > protos


You can run-time instance Scripts by @DEFfing  each one and providing 
a prototype expander which renames each Script.  After that, once you 
have a unique name, you can generate JavaScript from the Script in a 
JavaScript namespace or object.  You can already do this with 
 “require” I believe.   All we need to do is do what require does for 
each instance of the script.

I have done this with my post prototype expander script, but it doesn’t 
handle the X3D event stuff yet.  It has it’s own eventing mechanism.

I think it’s doable to have separate instances of JavaScript.  Scripts 
can be run-time instanced.  I didn’t say it was easy, and my code isn’t 
quite there yet (It might be if I knew X3D).  Hence my cry for help 
several months ago.

We have to be willing to separate ourselves from our comfort zones and 
actually learn the features of JavaScript 😊.

John

Sent from Mail for Windows 10

From: doug sanden
Sent: Thursday, June 9, 2016 11:28 AM
To: 'X3D Graphics public mailing list'
Subject: Re: [x3d-public] [x3d] V4.0 Open discussion/workshop on X3D 
HTMLintegration > brainstorming > protos

creative strategy example > protos
when it comes to protos, an element of that was something about 
Script. If you can't have a Script node then what's the point of 
protos. But html does have scirpts. Am I right to break that down 
into:
e1 scripts can't be run-time instanced ie if you have one copy of a 
script, you can't make another copy at runtime with the same name

other domains > adware
I see lots of advertisements popping up in webpages. I suspect they 
have their own scripts and content. Is it possible to instance 2 ads 
of the same type on the same page? If so, how do they do it, without 
confusing the scripts?
so an adware solution to the script part of proto would be an element 
solution from another domain.

You would write that into the table and keep going.





--------------------------------------------------------------------------------


> _______________________________________________
> x3d mailing list
> x3d at web3d.org
> http://web3d.org/mailman/listinfo/x3d_web3d.org
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160611/00dd02fc/attachment.html>


More information about the x3d-public mailing list