Just a question, Love3D?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

Just a question, Love3D?

Post by Ryne »

Hi guys. at the risk of sounding like a moron(asking about 3D, in "love2d") I'd like to ask a question.

I was talking to partymetroid yesterday and he sent me this.

http://forums.tigsource.com/index.php?topic=9701.0

I find the graphic style fascinating. I was wondering if something like this could be achieved in love? It's obvious that even if it were possible, it would be outside the scope of what I would be capable of doing. Especially while I'm in the process of developing my game. I was just curious if it could be done, and how It would perform.

Thanks.
@rynesaur
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Just a question, Love3D?

Post by nevon »

Been thinking about more or less the same thing myself. Technically, the answer is yes. 3D can be simulated in 2D. Jasoco's starfox demo comes to mind. Shading has also been done. So yeah, it's possible, just not for us mere mortals.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Just a question, Love3D?

Post by zac352 »

Hello, I am not dead.
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

Re: Just a question, Love3D?

Post by Ryne »

nevon wrote:Been thinking about more or less the same thing myself. Technically, the answer is yes. 3D can be simulated in 2D. Jasoco's starfox demo comes to mind. Shading has also been done. So yeah, it's possible, just not for us mere mortals.
I thought in theory that It should work. The person who made that game apparently created the engine from scratch, So I was assuming it would be just as difficult as that. I couldn't image it being harder.
@rynesaur
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Just a question, Love3D?

Post by zac352 »

Ryne wrote:
nevon wrote:Been thinking about more or less the same thing myself. Technically, the answer is yes. 3D can be simulated in 2D. Jasoco's starfox demo comes to mind. Shading has also been done. So yeah, it's possible, just not for us mere mortals.
I thought in theory that It should work. The person who made that game apparently created the engine from scratch, So I was assuming it would be just as difficult as that. I couldn't image it being harder.
x'=x*s/z
y'=y*s/z
(s is the viewer distance from eye to screen, apparently)

That's from wikipedia. Have fun translating and rotating your scene around your camera. :P
Hello, I am not dead.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Just a question, Love3D?

Post by vrld »

Ryne wrote:I thought in theory that It should work. The person who made that game apparently created the engine from scratch, So I was assuming it would be just as difficult as that. I couldn't image it being harder.
He is probably using a 3d framework like Direct3D or OpenGL that does all those pesky 3d-to-2d transformations for him.

To get 3D with löve, you'd have to write a software renderer, which is - as zac mentioned - far from trivial. It will be much, much slower than using OpenGL/Direct3D, since you can't use the graphics hardware.
Using textures might not be possible with löve, because you can't transform a rectangle to be a trapeze - which you would need for perspective rendering.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Just a question, Love3D?

Post by zac352 »

vrld wrote:
Ryne wrote:I thought in theory that It should work. The person who made that game apparently created the engine from scratch, So I was assuming it would be just as difficult as that. I couldn't image it being harder.
He is probably using a 3d framework like Direct3D or OpenGL that does all those pesky 3d-to-2d transformations for him.

To get 3D with löve, you'd have to write a software renderer, which is - as zac mentioned - far from trivial. It will be much, much slower than using OpenGL/Direct3D, since you can't use the graphics hardware.
Using textures might not be possible with löve, because you can't transform a rectangle to be a trapeze - which you would need for perspective rendering.
I have a PHP script for that which I don't feel like hunting down at the moment, but I could always write another one. It's not that laggy. Until you get to interpolating pixels, anyway. :P

What is hard though, is debugging the nasty logic nightmares that arise from these things. I can't tell what is wrong with my code. I *think* it *might* be in rotations. I am extremely unsure, though.
Hello, I am not dead.
User avatar
Chief
Party member
Posts: 101
Joined: Fri Mar 12, 2010 7:57 am
Location: Norway, 67° north

Re: Just a question, Love3D?

Post by Chief »

vrld wrote: Using textures might not be possible with löve, because you can't transform a rectangle to be a trapeze - which you would need for perspective rendering.
Hard, performance draining and shitty looking... but possible!

Image

I've ended up with making a oblique view thing instead.

Image
Last edited by Chief on Fri Nov 12, 2010 1:45 pm, edited 2 times in total.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Just a question, Love3D?

Post by zac352 »

Chief wrote:
vrld wrote: Using textures might not be possible with löve, because you can't transform a rectangle to be a trapeze - which you would need for perspective rendering.
Hard, performance draining and shitty looking... but possible!

Image

I've ended up with making a oblique view thing instead.

Image
I wish that imageshack wasn't blocked by my school... >_>
Hello, I am not dead.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Just a question, Love3D?

Post by vrld »

Chief wrote:but possible!
Awesome! How did you do that?
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest