Cesium error when adding virtual visite

When I try combining a virtual visite that I created using a specialized software i get the following error message:

TypeError: Right-hand side of ‘instanceof’ is not an object

TypeError: Right-hand side of ‘instanceof’ is not an object
at Array. (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:327835)
at Material$4.update (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:325849)
at EllipsoidPrimitive.update (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:2638665)
at Moon.update (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:2912464)
at Scene.updateEnvironment (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:3190858)
at render (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:3194383)
at tryAndCatchError (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:3194642)
at Scene.render (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:72:3196528)
at CesiumWidget.render (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:80:166330)
at n (https://cesium.com/downloads/cesiumjs/releases/1.95/Build/Cesium/Cesium.js:80:152059)

any idea what could be the sources of the problem?

What’s the line in your code where the error happens? What are you doing at that point? Are you doing custom materials?

Cheers,

Alex

the code stops in the rendering phase. When it starts reading the Cesium.js file

@omar any idea what could be the problem?

You really need to tell us a bit more about what you’re doing, like customized renderers, materials, etc. is there any code that works, and if you add “something” it doesn’t, etc.

Cheers,

Alex

Thanks for your second reply, I really appreciate it! What happened is I created a virtual visite for my site and wanted to combine the virtual visite (which is panoramic images) with the point cloud of my site.
The point cloud visualization is done using Cesium js and the virtual visite was created with pano2vr. The virtual visite output is an HTML5 file. What I wanted to do is display the panoramic visite with point cloud in the same page side by side. So I devided the screen to two halfs (right and left) and displayed the point cloud on the right and virtuel visite on the left. once I combined them in one index html file and combined their styling, the rendering stops and the virtual visite does not show up any more, and I dont understand why.

Yeah, ok, but that’s still quite tricky to help you with. :slight_smile: It doesn’t sound like you have a Cesium issue as such, but more of an issue of mixing two platforms together, and that could be anything. And I still don’t know what a “virtual visite” is, is it a technical term for something? You call them panoramic images, is it like an anamorphic panoramic viewer in a <div> tag kinda thing? I think it’s outside the scope of this forum, but you can always try to put the “virtual visite” framework and images into a Sandcastle next to pretty much any pointcloud example. If you can do that, we might be able to help? It’s a bit “shot in the dark” without any links or code.

Cheers,

Alex