-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right-hand side of 'instanceof' is not callable #52
Comments
Where is the error happening (I know it appears in the console, but what code, or file, or line, or whatever, is causing it)? It's happening when you call the BTW, not sure what you're thinking of doing with that, but argon.js uses Cesium's math libraries to do geospatial computation, and uses Entity's as frames of reference. If you wanted to use their renderer to actually render that polylineVolume, that would be something you have to do yourself. None of the renderer code, etc., is in there. |
Yes. I'm trying to reproduce polylines like that, from geospatial data (array of lat/long), with Argon; not sure if it is possible. |
It's not directly and easily possible. Argon is not Cesium: our focus is on exposing AR tech into the web, in a platform independent way that unifies geospatial data with local tracking (Vuforia, right now). We use Cesium's math libraries for geospatial computation, and their Entity's as our frames of reference (although we extend their Entity objects to allow nested hierarchies). I'm sure you could probably pull in more of their code to use it to render, but you'd have to do all of that yourself. Since most of their stuff is aimed at massive scale rendering that wouldn't make sense from a 1st person perspective, I've never looked at doing it myself. |
Thanks for the explanation, @blairmacintyre.
That's exactly what I want, but with the ability to show georeferenced complex shapes (like polygons or polylines) in the user's spot. Maybe Argon is not the right existing tool for that? Or just need some tweaks? :) |
@carrbrpoa I think that what you want to do (use Cesium.js as your renderer) is very doable. Argon is renderer-agnostic, so you can use whatever you like. You'll just have to load Cesium.js separately, and setup the binding to the Cesium camera / scene yourself, which is probably very easy, especially given that argon.js is already based on Cesium. |
You may or may not want to "just" use cesium to render those things. We have focused on using three.js or aframe.io for content; it's pretty trivial to show polygons or polylines. It actually might be easy to make something that renders a Cesium entity. Heck, it might be possible to yank parts of the Cesium renderer out (I think it uses three.js under the hood, too?) |
@blairmacintyre very early versions of Cesium, I believe, were based on three.js, but not anymore. |
Anyway, closing this, as it is "by design" that argon.js doesn't do any rendering for you. |
Something like these samples? |
@speigg, by the way, I don't know if I'm mixing too much, but how could I associate |
(What do you think about a gitter channel?) |
sure, I think those samples might be a good start; three has plenty of ways of displaying data and content. It depends on what you want your app to look like really.
So what you need to do is convert the entity values from FIXED coordinates (which they are in, as that is what the Cartestian's are in, I think) to local coordinates. I do not know right now what Argon does if you pass an entity with other than Constant properties to our Easier might be to just create an Entity for each of your geolocations, and use |
We tried it at one point; we use slack now. Go to argonjs.io, and look for the link to get an auto-invite to the ArgonJS slack. I've also just created a discourse server at community.argonjs.io, to use for these kinds of discussions. I just set this up, haven't linked it with the website yet! Or you could post to Stack Overflow and use the |
Hello,
I'm playing with
geopose
sample and trying to integrate some Cesium sample like this one.So, I tried to replace the highlighted code snippet from geopose sample for..
..and am receiving the following error in browser console:
Right-hand side of 'instanceof' is not callable
, when instantiating the modifiedgatechGeoEntity
.Any ideas on how to proceed?
Thanks
The text was updated successfully, but these errors were encountered: