@andreasplesch Happy to hear that Gendl loaded and started without issues in Jupyter. Which CL implementation is it? From the little I've heard of Jupyter, using Gendl inside Jupyter sounds interesting for sure. I haven't really looked at Jupyter at all yet. So far we just deploy Gendl as a traditional web application server, with its built-in CL-based webserver, and old-school Emacs/Slime as IDE. Rendering a simple box indeed sounds like the next logical step, if your goal is to embed dynamic Gendl models inside a Jupyter notebook. Gendl's online demos and documentation are somewhat lacking and out of date at present; we are working to correct that as soon and as nicely as possible. In the meantime, please reach out to me directly with any issues or if you'd like to discuss ideas for next steps (and let me know here if you need contact info).
Hi Dave, the main issue is that the scenes use Protos which are not completely supported in x3dom. The good news is that the ProtoDeclarations here are effectively simple macros and probably work as x3dom inline in json format.
But this field is only available IndexedFaceSet. So you would need to generate this kind of node from your geometry data.
If you need to use TriangleSet you can explicity define normals at each vertex with a Normal node. For smooth appearance, the normals would need to be the average of the triangle normals around each vertex. Perhaps your backend can generate such normals.
You could use meshlab to convert to IndexedFaceSet.
Thank you! I will try it ASAP. If I'll have any problems this is the best place to discuss?
Any place is fine. Sharing files is easiest on github.
Thank you Andreas, I was able to solve my question. Hovewer, I have another question. I know there is "downloadsfinished" event that fires when x3d file was fully loaded. For some reason sometimes it does not called - probably due to some error. Is there some kind of "onloaderror" event that can be called if downloadsfinished was failed?
Hi Andreas. Sorry for the late reply. Smooth option was done on the library that I'm using to generate x3dom files, so I just changed few options and it look smooth now. Thank you for your help!
Hello guys. I just forked x3dom to upgrade webVR to webXR. I am new to this and I am trying to figure out the code, so far I found webVR code in src/X3DCANVAS.js and /src/util/VRControllerManager.js. can you please direct me on which files I should look into? I looked around and I couldn't find another webVR codes.