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

GLTFViewer import #14

Closed
christian-nils opened this issue Mar 4, 2021 · 2 comments
Closed

GLTFViewer import #14

christian-nils opened this issue Mar 4, 2021 · 2 comments

Comments

@christian-nils
Copy link

Hi!

Is it possible to use the GLTFViewer component? What is the proper way to import it in my Vue component?

Thanks for this amazing project!

/CN

@christian-nils christian-nils changed the title GLTFViewer GLTFViewer import Mar 4, 2021
@klevron
Copy link
Member

klevron commented Mar 4, 2021

Hi, it is not exported in the module, but you can import it like this :

import GLTFViewer from 'troisjs/src/components/viewers/GLTFViewer.vue'

Example here : https://github.com/troisjs/troisjs.github.io/blob/master/src/components/misc/GLTFExample.vue

Or you can simply make your own component (the code is really simple) :

https://github.com/troisjs/trois/blob/master/src/components/viewers/GLTFViewer.vue

@christian-nils
Copy link
Author

Alright! Merci pour l'aide rapide!

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