Page 1 of 1

Love 11.1 Simple 3D Camera

Posted: Mon Jun 18, 2018 10:57 pm
by thomas__james
Hi there,

I've recently discovered Love2D and I think that it looks perfect for my project but I just had one question - is there a good tutorial demonstrating how to setup a simple 3D Camera using the new 11.1 3D capabilities?

Many thanks

Re: Love 11.1 Simple 3D Camera

Posted: Tue Jun 19, 2018 8:06 am
by DarkShroom
where does it say there are 3d capabilities?

or you are wanting raw 3d maths?

Re: Love 11.1 Simple 3D Camera

Posted: Tue Jun 19, 2018 12:43 pm
by thomas__james
Well for instance the set depth mode method: https://love2d.org/wiki/love.graphics.setDepthMode

I'm not looking to create a particularly advanced 3D camera, just to have a rotation on Z to look at the 2D world at an angle and follow the player then for the rest of the effects I plan to use shader tricks to create a kind of 2.5d popup effect (a bit like billboarding)

Re: Love 11.1 Simple 3D Camera

Posted: Tue Jun 19, 2018 2:17 pm
by pgimeno
Maybe this mini-demo helps? viewtopic.php?p=219345#p219345 It implements a Wolfenstein-like camera, i.e. a camera that always looks horizontally and can have any Z rotation.

Note the demo doesn't activate depth buffers or backface culling.

Re: Love 11.1 Simple 3D Camera

Posted: Tue Jun 19, 2018 4:41 pm
by DarkShroom
no thank you, i wasn't aware of this

i know it's against the design somewhat, but the api is just so beautiful

Re: Love 11.1 Simple 3D Camera

Posted: Tue Jun 19, 2018 8:03 pm
by thomas__james
Awesome thank you I'll take a look