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 » Mon Jun 18, 2018 10:57 pm

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 » Tue Jun 19, 2018 8:06 am

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 » Tue Jun 19, 2018 12:43 pm

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: 1143
Joined: Sun Oct 18, 2015 2:58 pm

Re: Love 11.1 Simple 3D Camera

Post by pgimeno » Tue Jun 19, 2018 2:17 pm

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.
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories
The Microsoft Github repositories I had have been closed after the acquisition and will be removed in the near future.

DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: Love 11.1 Simple 3D Camera

Post by DarkShroom » Tue Jun 19, 2018 4:41 pm

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 » Tue Jun 19, 2018 8:03 pm

Awesome thank you I'll take a look

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests