<div dir="ltr">I think the issue with the Sphere in the BoundedPhysicsModel in view3dscene may actually be the Sphere in the ParticleSystem. Try it and see.<div><br>I've made a bit of progress in FreeWRL, at least using a Shape instead of a Particle System works now.</div><div><br></div><div>Included are files that don't require local shaders or images.</div><div><br></div><div>If you flip the Particle System with a Shape tag, you can get an idea of what's happening.</div><div><br></div><div>Remember to enable your own ComposedShader!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 21, 2024 at 12:32 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Michalis, Holger, Doug, Don,</div><div dir="ltr"><br></div><div dir="ltr">On the tails of Holger's message about GPU instancing...<br><div><br></div><div>It's easier to send email to you all rather than filing a report on your websites.</div><div><br></div><div>I'd like to get a fairly simple Particle System working with a ComposedShader (different for each of you).</div><div><br></div><div>I am attaching the .x3d file and the shaders.</div><div><br></div><div>I've gotten the ComposedShader working for a single sphere for each of your systems, but getting it working with a Particle System and ComposedShader seems difficult.</div><div><br></div><div>I've gotten the Particle System working in sunrize.</div><div><br></div><div>There's a Problem with BoundedPhysicsModel geometry in view3dscene.</div><div><br></div><div>Don,</div><div><br></div><div>CommandLine doesn't validate the scene AFAICT.</div><div><br></div><div><div>$ java -cp ~/Downloads/X3DJSAIL.4.0.full.jar org.web3d.x3d.jsail.CommandLine -validate `pwd`/particleflowers.x3d</div><div>CommandLine parameter: "-validate" for model validation</div><div>parameter: source file particleflowers.x3d filesize 6208 bytes</div><div>Parsing using Document Object Model (DOM) based X3DLoaderDOM...</div><div>[error] X3DLoaderDOM: Incorrectly handled X3DJSAIL object construction, current elementObject=BoundedPhysicsModel (BoundedPhysicsModel), child="Sphere", containerField="geometry", java.lang.ClassCastException: class org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel cannot be cast to class org.web3d.x3d.jsail.Shape.Shape (org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel and org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')</div><div> This error can be caused by incorrect parent-child node relationships or incorrect containerField values.</div><div> X3D node typing is strict, check or validate your scene graph!</div><div> This error can also be caused by X3DLoaderDOM DOM omissions in X3DJSAIL. Please report mysterious problems, thank you.</div><div><br></div><div>java.lang.ClassCastException: class org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel cannot be cast to class org.web3d.x3d.jsail.Shape.Shape (org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel and org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:972)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:247)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:231)</div><div> at org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:205)</div><div> at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)</div><div> at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:242)</div><div>[error] X3DLoaderDOM: Parent-child node relationship not found! (parent ParticleSystem, child BoundedPhysicsModel, containerField='physics') Please report this problem to <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a></div></div><div><br></div><div>Interesting challenge!</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div></div>
</blockquote></div>