[x3d-public] Proto expander. Scripts in protobodies without a DEF

Don Brutzman brutzman at nps.edu
Thu Jul 14 11:03:00 PDT 2016


Thanks for discussion today on this topic.  I think the core issue is how to handle IS/connect by adding a ROUTE in the expanded prototype.

The previous MaterialModulator scene didn't test that.

Attached please find changes to the original MaterialModulator scene that adds external routing of values outside the ProtoInstance to toggle it.

Subject to improvements, and deciding on design pattern, we can add corresponding expansions to MaterialModulatorPrototypeExpanded.x3d to illustrate what a workable conversion might look like.


On 7/14/2016 8:50 AM, John Carlson wrote:
> I guess my question is about directOutput.  I don't think that Scripts without routes can participate in the scenegraph anyway, if there is no directOutput.
>
>
> On Jul 14, 2016 12:09 AM, "John Carlson" <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>
>     Don,
>
>     How do we handle Scripts in proto bodies without a DEF.

Yes legal.

If you had a Script in a ProtoBody with directOutput='true', then one would expect to see a field of type SFNode/SFNode.  I'll add a check to X3D Schematron to look for that.

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 http://faculty.nps.edu/brutzman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160714/d1a3e7aa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MaterialModulator.x3d
Type: model/x3d+xml
Size: 5877 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160714/d1a3e7aa/attachment-0001.x3d>


More information about the x3d-public mailing list