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.