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

Are we able to set up multiple cameras in the 3DreamEngine? #59

Open
SugarRayLua opened this issue Dec 1, 2022 · 8 comments
Open

Are we able to set up multiple cameras in the 3DreamEngine? #59

SugarRayLua opened this issue Dec 1, 2022 · 8 comments

Comments

@SugarRayLua
Copy link

It appears from the documentation that we might be able to set up multiple cameras, but it didn't seem clear if the multiple camera feature was yet set up. If it is, it would helpful to know how to switch between cameras to render different points of view (e.g. letting the user choose between two character avatars in the scene). Thanks!

@Luke100000
Copy link
Collaborator

I added a demo which uses multiple cameras at once. This is more than you wanted but should present how cameras and target canvases can be used, including recursive rendering.

For your specific case you can either:

  • Set the default camera directly. Maybe you don't need two cameras to begin with
  • Pass the camera as the first argument in present, e.g. dream:present(yourCamera)

@SugarRayLua
Copy link
Author

Thanks, @Luke100000, that looks great and renders well in Love 11.4 on iOS on my iPad!

I'll study that example and work on some projects with different cameras.

Have a good weekend. :-)

@SugarRayLua
Copy link
Author

@Luke100000, your 3D engine is amazing!

Is there consideration to make incorporate it as Love's 3D engine? If note, is there a formal way to request that it be added to future Love releases? (Not sure how the process works as a novice to the Love community). I'd be happy to submit a request. :-)

@SugarRayLua
Copy link
Author

(P.S. added 3DreamEngine to the Love wiki page on 3D engines)

@Luke100000
Copy link
Collaborator

Thanks! Glad you like it. Since 3Dream is pure Lua and works as a otherwise independent library it does not make sense to include it in love itself.

@SugarRayLua
Copy link
Author

Makes sense :-). Still working through all your examples to understand how to build my own projects. Is there a preferred place to ask questions if not understanding other features or how to set something up using the engine?

@Luke100000
Copy link
Collaborator

I think the fastest way to reach me is on Discord, 3Dream has a server: https://discord.gg/3MCRPzTzKg

@SugarRayLua
Copy link
Author

Perfect, thanks!

@Luke100000 Luke100000 changed the title Are we able to set up multiple cameras in the 3DreamEngine? If so, how do we programmatically switch which cameras render the scene (e.g. between two different characters' on screen perspectives)? Are we able to set up multiple cameras in the 3DreamEngine? Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants