Skip to content
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

Glitches won't work #5

Closed
dirkk0 opened this issue May 15, 2018 · 4 comments
Closed

Glitches won't work #5

dirkk0 opened this issue May 15, 2018 · 4 comments

Comments

@dirkk0
Copy link

dirkk0 commented May 15, 2018

Hi,

I came from this thread:
c-frame/aframe-extras#225 (comment)

and tried the examples (like https://cherry-teacher.glitch.me/); they all gave me an
Cannot read property 'groups' of undefinederror once I hit a WASD key.

Thanks,
Dirk

@donmccurdy
Copy link
Owner

Mainly, you can't walk around with constrainToNavMesh: true before creating a navmesh. Typically you would create the navmesh, export it, and then import it directly to your scene. But yeah ideally the scene shouldn't crash here and should let you test the navmesh nicely... :)

@dirkk0
Copy link
Author

dirkk0 commented May 15, 2018

Sorry - my bad, it seems I missed a lot.
From your blog post it was 'create a NavMesh in Blender', import it and you are ready to go.

Now I see that you need to enter the inspector (which I don't use much, generally), hit build, and then you are ready to go.
I guess I would prefer a (semi?-)automatic build when I load the file.

@donmccurdy
Copy link
Owner

The idea is that you can use the inspector plugin while authoring a scene — set up obstacles and models however you want — then build the navmesh and export it to a .gltf file. Once you've done that, you import the navmesh with <a-entity gltf-model="navmesh.gltf" nav-mesh/> as you'd do with a navmesh created in Blender.

For the finished scene, the plugin should not be included at all. You wouldn't want to build a navmesh every time a user visits the scene as that (1) takes a while and (2) requires uploading the entire scene to a server for processing.

This just lets the Inspector replace Blender for building the navigation mesh, as a one-time step.

@donmccurdy
Copy link
Owner

The issue about movement throwing errors until a navmesh is created should be fixed on latest aframe-extras. I'll document the rest of this when the plugin is further along.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants