[x3d-public] bug in InstantReality or my code?
John Carlson
yottzumm at gmail.com
Sun Nov 29 15:20:15 PST 2015
I just found the InstantReality docs. The attribute is initializeOnly. I don’t think this compiles with the standard. I will try X3DOM next.
John
> On Nov 29, 2015, at 5:07 PM, John Carlson <yottzumm at gmail.com> wrote:
>
> Here’s the full log. Apparently one can’t copy the log in previous versions of InstantPlayer:
>
> LOG Avalon Init: 16/351, V2.6.0 build: R-28726 Sep 30 2015 Mac OS X x86_64
> LOG OpenSG GL Vendor/Renderer: Intel Inc./Intel HD Graphics 4000 OpenGL Engine
> LOG Avalon CDF parsing (0.010345s): 624 Node-Types defined
> WARNING Avalon Can't create ROUTE >RandomTourTime.position_changed< TO >TourPosition.set_keyValue<: Invalid inSlot
> WARNING Avalon Parser: Cannot create route, file:///Users/johncarlson/Source/X3DJSONLD/geobubbles.x3d:32 <file:///Users/johncarlson/Source/X3DJSONLD/geobubbles.x3d:32>
> LOG OpenSG GL Vendor/Renderer: Intel Inc./Intel HD Graphics 4000 OpenGL Engine
> LOG Avalon Remove RenderAction
> FATAL ECMASpt Cannot create field: "position_changed"
> FATAL ECMASpt 4: ReferenceError: position_changed is not defined ( Browser.println(position_changed[0]);)
> FATAL ECMASpt 0: Cannot call function set_fraction
>
> FATAL ECMASpt 4: ReferenceError: position_changed is not defined ( Browser.println(position_changed[0]);)
> FATAL ECMASpt 0: Cannot call function set_fraction
>
>> On Nov 29, 2015, at 5:00 PM, John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>>
>> I’m getting the following error in InstantReality on Mac OS X 10.11
>>
>> WARNING Avalon Can’t create ROUTE >RandomTourTime.position_changed< TO>TourPosition.set_keyValue<: Invalid inSlot.
>>
>> I’ve also tried keyValue. How do I set keyValue in the GeoPositionInterpolator? The standard says I can. http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html <http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html>
>>
>> Here is the x3d:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd <http://www.web3d.org/specifications/x3d-3.3.dtd>">
>> <X3D profile='Full' version='3.3' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd' <http://www.web3d.org/specifications/x3d-3.3.xsd'> xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' <http://www.w3.org/2001/XMLSchema-instance'>>
>> <Scene>
>> <GeoViewpoint DEF='Tour' position='0 0 10' orientation='1 0 0 -1.57' description='Tour Views'/>
>> <Background backUrl='"cubemap/BK.png" "http://coderextreme.net/X3DJSONLD/cubemap/BK.png <http://coderextreme.net/X3DJSONLD/cubemap/BK.png>"' bottomUrl='"cubemap/BT.png" "http://coderextreme.net/X3DJSONLD/cubemap/BT.png <http://coderextreme.net/X3DJSONLD/cubemap/BT.png>"' frontUrl='"cubemap/FR.png" "http://coderextreme.net/X3DJSONLD/cubemap/FR.png <http://coderextreme.net/X3DJSONLD/cubemap/FR.png>"' leftUrl='"cubemap/LF.png" "http://coderextreme.net/X3DJSONLD/cubemap/LF.png <http://coderextreme.net/X3DJSONLD/cubemap/LF.png>"' rightUrl='"cubemap/RT.png" "http://coderextreme.net/X3DJSONLD/cubemap/RT.png <http://coderextreme.net/X3DJSONLD/cubemap/RT.png>"' topUrl='"cubemap/TP.png" "http://coderextreme.net/X3DJSONLD/cubemap/TP.png <http://coderextreme.net/X3DJSONLD/cubemap/TP.png>"'/>
>> <Transform>
>> <Shape>
>> <Sphere/>
>> <Appearance>
>> <Material diffuseColor='0.7 0.7 0.7' specularColor='0.5 0.5 0.5'/>
>> </Appearance>
>> </Shape>
>> </Transform>
>> <TimeSensor DEF='TourTime' cycleInterval='30' loop='true'/>
>> <GeoPositionInterpolator DEF='TourPosition' key='0 1' keyValue='0 0 10 0 0.00628 10'/>
>> <Script DEF='RandomTourTime'>
>> <field accessType='inputOnly' name='set_fraction' type='SFFloat'/>
>>
>> <field name='position_changed' accessType='inputOutput' type='MFVec3d' value='0 0 10 0 0.00628 10'/>
>> ecmascript:
>>
>>
>> function set_fraction(value) {
>> Browser.println(position_changed[0]);
>> Browser.println(position_changed[1]);
>> position_changed[0] = new SFVec3d(position_changed[1][0], position_changed[1][1], position_changed[1][2]);
>> position_changed[1] = new SFVec3d(Math.random()*0.00628-0.00314,Math.random()*0.0628-0.00314, 10);
>> }
>> </Script>
>> <ROUTE fromNode='TourTime' fromField='cycleTime' toNode='RandomTourTime' toField='set_fraction'/>
>> <ROUTE fromNode='RandomTourTime' fromField='position_changed' toNode='TourPosition' toField='set_keyValue'/>
>> <ROUTE fromNode='TourTime' fromField='fraction_changed' toNode='TourPosition' toField='set_fraction'/>
>> <ROUTE fromNode='TourPosition' fromField='value_changed' toNode='Tour' toField='set_position'/>
>> </Scene>
>> </X3D>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151129/57b56a90/attachment-0001.html>
More information about the x3d-public
mailing list