3dreamengine / 3DreamEngine

3DreamEngine is an *awesome* 3d engine for LÖVE.
MIT License
373 stars 16 forks source link

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

Open SugarRayLua opened 1 year ago

SugarRayLua commented 1 year ago

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 commented 1 year ago

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:

SugarRayLua commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

Luke100000 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

SugarRayLua commented 1 year ago

Perfect, thanks!