[x3d-public] Extrusions, take 3, Replacement with Cylinders, Cobweb needs to be updated in X3D Edit.
Don Brutzman
brutzman at nps.edu
Mon Feb 15 17:41:46 PST 2016
On 2/14/2016 9:03 PM, John Carlson wrote:
> 1. I am beginning to see the wisdom of this approach. What happens when one’s points get large with scripts? I took a slightly different approach and got good results. Note that I had to double instance the points to get the spheres to appear at all. http://coderextreme.net/arc.x3d
> I am not sure why? Anyone?
Thanks for attaching the scene.
X3D Validator found no problems.
Launching all:
Looked consistent in Instant Reality, Octaga, BS Content
Failed in x3dview, freewrl
H3DViewer and Xj3D just showed a single cylinder with moving balls
Several of the consoles were flashing something, but frequently regenerated pointskept over-writing and masked the output
Xj3D console showed some clues:
================================
Xj3D Version: v2.1-nps
utilizing NPS Open DIS v4.08
and featuring 3D rendering by
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.opengl
Extension Name: com.jogamp.opengl
Specification Title: Java Bindings for OpenGL API Specification
Specification Vendor: JogAmp Community
Specification Version: 2.3
Implementation Title: Java Bindings for OpenGL Runtime Environment
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.3.2
Implementation Build: 2.3-b1469-20151010
Implementation Branch: origin/master
Implementation Commit: e794fc40ba723f2fca4ac892e873975fb393e007
-----------------------------------------------------------------------------------------------------
Operating system: Windows 7 6.1
Java environment: Oracle Corporation 1.8.0_74
BuildStamp: 1457 on 12 February 2016
Initializing OpenGL X3D Browser in GLCanvas (AWT) mode.
Device found: Mouse-0
Device found: Keyboard-0
Warning: Native image loaders not available
Warning: JavaHelp not found, help disabled
Main scene: file:///C:/Users/don/Desktop/arc.x3d loaded.
Error: ECMAScript evaluation error on line 22 column 14
" />"
unterminated regular expression literal
The script came from: Inline script
Error: ECMAScript evaluation error on line 1 column 0
Compilation produced 1 syntax errors.
The script came from: Inline script
Error: Script failed to initialize2: ecmascript:
function recompute(startpoint,endpoint){
var dif = endpoint.subtract(startpoint);
var dist = dif.length()*.5;
var dif2 = dif.multiply(.5);
var norm = dif.normalize();
var trans = startpoint.add(dif2);
connectornode.scale = new SFVec3f(1.0,dist,1.0);
connectornode.translation = trans;
connectornode.rotation = new SFRotation(new SFVec3f(0.0,1.0,0.0),norm);
//Browser.print('norm='+norm.toString());
//Browser.print('rotation='+rotation.toString());
}
function initialize(){
recompute(startnode.translation,endnode.translation);
}
function set_startpoint(val,t){
recompute(val,endnode.translation);
}
function set_endpoint(val,t){
recompute(startnode.translation,val);
}
/>
ECMAScript evaluation error on line 1 column 0
Compilation produced 1 syntax errors.
The script came from: Inline script
org.mozilla.javascript.EvaluatorException: ECMAScript evaluation error on line 1 column 0
Compilation produced 1 syntax errors.
The script came from: Inline script
at org.web3d.vrml.scripting.ecmascript.ReportAdapter.runtimeError(ReportAdapter.java:129)
at org.mozilla.javascript.Parser.parse(Parser.java:569)
at org.mozilla.javascript.Parser.parse(Parser.java:478)
at org.mozilla.javascript.Context.compileImpl(Context.java:2348)
at org.mozilla.javascript.Context.compileString(Context.java:1335)
at org.mozilla.javascript.Context.compileString(Context.java:1324)
at org.mozilla.javascript.Context.evaluateString(Context.java:1076)
at org.web3d.vrml.scripting.ecmascript.ECMAScriptWrapper.initialize(ECMAScriptWrapper.java:505)
at org.web3d.vrml.renderer.common.nodes.scripting.BaseScript.initialize(BaseScript.java:539)
at org.xj3d.impl.core.eventmodel.DefaultScriptManager.initializeScripts(DefaultScriptManager.java:260)
at org.xj3d.impl.core.eventmodel.DefaultEventModelEvaluator.evaluateRunning(DefaultEventModelEvaluator.java:1074)
at org.xj3d.impl.core.eventmodel.DefaultEventModelEvaluator.evaluate(DefaultEventModelEvaluator.java:612)
at org.web3d.vrml.renderer.ogl.browser.PerFrameManager.clockTick(PerFrameManager.java:126)
at org.web3d.vrml.renderer.ogl.browser.ApplicationFrameManager.updateSceneGraph(ApplicationFrameManager.java:87)
at org.j3d.aviatrix3d.management.SingleThreadRenderManager.run(SingleThreadRenderManager.java:679)
at java.lang.Thread.run(Thread.java:745)
[...]
================================
"when the going gets tough, the tough get verbose"
i'd add some trace statements and juggle a few things, try to get a clearer error. Good luck!
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
More information about the x3d-public
mailing list