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

Access active scene #38

Closed
tscgist opened this issue Mar 9, 2018 · 4 comments
Closed

Access active scene #38

tscgist opened this issue Mar 9, 2018 · 4 comments
Assignees

Comments

@tscgist
Copy link

tscgist commented Mar 9, 2018

First, it is a fantastic application.
My question: How is it possible to access the active scene?

@piaaaac piaaaac mentioned this issue Mar 9, 2018
@vasturiano
Copy link
Owner

@tscgist thanks for reaching out. If you intend to do manipulation on the scene level, I'd recommend switching to using the lower level component three-forcegraph. You'll have to maintain the Three renderer/scene scaffolding yourself but that sounds like it's exactly what you're looking for.
3d-force-graph is mainly a convenience wrapper of the above if you don't want to be bothered with the Three configuration and are looking for a smart default higher-level expression of the component.
Let me know if that works for you.

@vasturiano vasturiano self-assigned this Mar 10, 2018
@tscgist
Copy link
Author

tscgist commented Mar 10, 2018

Thank you for your fast answer. I found a way to access the scene myself. I just added a new graph method to return the scene the same way the camera position is returned.

@piaaaac
Copy link

piaaaac commented Mar 12, 2018

@tscgist could you share how you did that?

@vasturiano
Copy link
Owner

An update on this, from v1.30.0 on, there is a new method exposed: scene(). This can be used to access the ThreeJS scene and extend it with other objects.

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

3 participants