Page 1 of 3

Psuedo 3/2.5D engines in LÖVE?

Posted: Sat Mar 10, 2012 11:31 pm
by teh8bits
I've done a decent amount of work with Java2D, and definitely Java in general. I recently built a 3D dungeon crawler type engine using a pixel array, math, and then drawing the pixel array to screen with Java2D. This is possible though because all of the calculations are basic

Code: Select all

pixels[x + y * width] = //texture pixel blah blah
functions, which are a hell of a lot faster than bufferedimg.setRGB(x, y, r, g, b).
Before I go through the effort of recreating such an engine in LÖVE, do you think it would be worth my while? Or is the image.setPixel too slow to do over 28 million times per second? (60 fps * 800 width window * 600 width window = total number of pixels per second)
I'm not the best at general math to be honest, that's what code is for, I'm better at trig. It may be less than that if I've made some bozo mistake...

Has anyone here created such an engine before that can give me pointers?
I understand it's called LÖVE2D for a reason, but if the method was fast enough this would still be a fun challenge to make.

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sat Mar 10, 2012 11:43 pm
by coffee
teh8bits wrote: I understand it's called LÖVE2D
No, you understood wrong. It's only LÖVE. Only for domain reasons is love2d. Apart that you won't find anymore mentions to love2d. Also yes, this is a framework oriented to 2D. But you aren't exactly limited to that. You can do a lot of pseudo3D here. Isometric or Raycasting as Jasoco is doing. viewtopic.php?f=4&t=6834#p45667
About real 3D I'm not the right person to talk it but I already saw demos close to 3D around, like this one (viewtopic.php?f=5&t=1692)

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 12:01 am
by teh8bits
I saw his ray casting project but I wasn't entirely sure if it was 3d or not, I just skimmed over it and didn't download it ;P

Wow that dice project is impressive. Just skimming through it, it looks like he just used cleverly drawn shapes instead of direct pixel interaction. That's definitely an easier approach that I should have thought of xD

EDIT:
I should have read the title of the ray casting project more closely >.>

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 12:24 am
by coffee
teh8bits wrote: it looks like he just used cleverly drawn shapes instead of direct pixel interaction. That's definitely an easier approach that I should have thought of xD
Well, as clever as is being done since 8bit machines like Commodore64, Amstrad or Sinclair Spectrums. :)

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 12:27 am
by thelinx
Aside from the raycaster, there also a game made by Maurice (of Mari0 fame) called Ortho Robot that does some fancy 3d-looking projections.
http://stabyourself.net/orthorobot/

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 12:37 am
by teh8bits
Did those machines have built in geo drawing? (just to clarify, this is a serious question, not being sarcastic or anything lol)
thelinx wrote:Aside from the raycaster, there also a game made by Maurice (of Mari0 fame) called Ortho Robot that does some fancy 3d-looking projections.
http://stabyourself.net/orthorobot/
Thanks! That's extremely impressive I'll look into it. Thank Maurice the Almighty for releasing source.

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 12:58 am
by coffee
teh8bits wrote:Did those machines have built in geo drawing? (just to clarify, this is a serious question, not being sarcastic or anything lol)
just used cleverly drawn shapes
Well, they did. They were clever, they draw shapes and calculate 3d vector shapes. So with wireframing 3d (and this is 3d right?) gaming actually born in games like that. Find for Elite, Carrier Command, Starglider. Of course they couldn't yet really texturize but not really their fault.

Examples of 3d games in 8bit machines:
http://en.wikipedia.org/wiki/Elite_(video_game)
http://retrobrothers.hubpages.com/hub/Realtime-Software
http://en.wikipedia.org/wiki/Stunt_Car_Racer

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 1:03 am
by teh8bits
Oh, all they had was built in geo drawing. Mmm I feel like a noob, ignorance is bliss.

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 1:08 am
by coffee
teh8bits wrote:Oh, all they had was built in geo drawing. Mmm I feel like a noob, ignorance is bliss.
Don't be. No one knows it all! :)

Amaze with that. a 3D modeller/editor with solid render. I show you this one for ZX spectrum because was the weaker machine of the three 8 bit machines I cited.
http://www.retrogearuk.co.uk/images/uploads/vu-3d.jpg
http://guti.bitacoras.com/3d-en-el-spectrum-vu-3d/254
http://www.retrovisions.gr/inv/topic/62 ... -spectrum/

Re: Psuedo 3/2.5D engines in LÖVE?

Posted: Sun Mar 11, 2012 1:12 am
by teh8bits
Thank you thank you the ideas are flooding in xD
I think I'll make myself a goal to have a 3d rotating cube using quads by midnight.. or early morning xD Should be fun, I'm stocked up on soda.