Love 11.1 Simple 3D Camera

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
thomas__james
Prole
Posts: 3
Joined: Mon Jun 18, 2018 10:51 pm

Love 11.1 Simple 3D Camera

Post 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
DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: Love 11.1 Simple 3D Camera

Post by DarkShroom »

where does it say there are 3d capabilities?

or you are wanting raw 3d maths?
thomas__james
Prole
Posts: 3
Joined: Mon Jun 18, 2018 10:51 pm

Re: Love 11.1 Simple 3D Camera

Post 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)
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Love 11.1 Simple 3D Camera

Post 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.
DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: Love 11.1 Simple 3D Camera

Post 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
thomas__james
Prole
Posts: 3
Joined: Mon Jun 18, 2018 10:51 pm

Re: Love 11.1 Simple 3D Camera

Post by thomas__james »

Awesome thank you I'll take a look
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests