Open riechi opened 7 years ago
@riechi Thank you for reporting. I try to find the cause.
On debugging, I found the error happens when a raycasted object is obj model. When it is simple geometry like cube, it does not happen.
Now I try to get more detail...
Should've actually added that detail when writing the issue, the object that is being raycasted in my project is indeed a simple geometry (a plane). An obj model only pops up on the plane when a button is clicked, and for its positioning I use the plane coordinates that the cursor is raycasting in that moment (and even then, the obj model is set to invisible, thus not "crawlable" by the cursor).
Anyway thanks for the quick reply & feedback! Looking forward to any other insights : ]
I'm having the same issue, even with simple geometry. I'll try doing some more trial and error to find the cause.
Try removing primitive "a-cursor" from your crawling cursor target (make it a plain 'fake' geometry-only cursor) as it makes you have two raycasters in a scene. One belonging to the camera (which is needed for this component) and one inherently built in a-cursor primitive which doesn't seem to have any use here.
In my environment, a problem causes only within OBJ model. I found this seems to be related with following issue and now I am working to deal with it.
https://github.com/aframevr/aframe/issues/2980
In my environment, no problem occurs in primitive shapes. If someone has example, I would like to see it.
@riechi @HAZARDU5
Sorry to be late for dealing. Today I released a new version which probably fix the problem.
I guess the cause of the problem was below.
refreshObjects()
method.refreshObjects()
is automatically called when raycaster is set, but objects added after it were not registered in particular conditions.
(This problem is now recognized by a-frame core developers and will be fixed in future release.)For now, in this release, I make refreshObjects()
called in a certain interval.
Could you test new version(1.0.9)? If my guess is right, Problem is fixed.
In my environment, it is working with A-Frame 0.7.0.
I'm using the cursor with the latest release of aframe on Chrome desktop and this error pops up: What could it be? Thanks in advance.