Page 1 of 2
Raycasting demo :D
Posted: Thu Feb 06, 2014 5:50 am
by Death
So I was bored one day and was going to make a port of a raycasting demo / proof of concept, but someone else already did it and I'm currently taking it up and making it a bit better. Currently there aren't much changes but I will be updating it as soon as I get new versions out. If you want to test stable versions of it, my website is
http://www.deathprogramming.com, and you can find it under Downloads.
PICS:
^If someone could tell me how to hide those with a button that would be helpful.
Re: 3D engine :D
Posted: Thu Feb 06, 2014 6:33 am
by Davidobot
I allowed the rotation to be controlled by the mouse.
Hope you don't mind.

Thanks!
Posted: Thu Feb 06, 2014 6:59 am
by Death
I was already working on it and couldn't figure out how to do it properly, hope you don't mind me publishing this

EDIT - I also noticed it's not fullscreen. I don't know if you took that out or I forgot to revert change

EDIT - I saw what I messed up XD - my code was basically the same except moved a few things around and different variables but I forgot to put in dirty

Re: Thanks!
Posted: Thu Feb 06, 2014 2:47 pm
by Davidobot
Death wrote:I was already working on it and couldn't figure out how to do it properly, hope you don't mind me publishing this
I don't mind
Death wrote:
EDIT - I also noticed it's not fullscreen. I don't know if you took that out or I forgot to revert change

I changed that not to be fullscreen, I don't like testing in fullscreen mode.
Death wrote:
EDIT - I saw what I messed up XD - my code was basically the same except moved a few things around and different variables but I forgot to put in dirty

Cool, man!

Re: 3D engine :D
Posted: Thu Feb 06, 2014 3:28 pm
by Roland_Yonaba
Correct me If I am wrong, but the topic title was a bit misleading, to me.
Actually, "Raycasting" would have been a better title, not 3D Engine... As we all know, raycasting is not really 3D, just a very clever trick to fake perspective.
Nice work, it looks quite clean. Are you planning to add textures ?
Re: 3D engine :D
Posted: Thu Feb 06, 2014 3:48 pm
by Davidobot
I moved all variables into a table and added a FOV thingy?
Press Q to release mouse and left and right mouse buttons to increase/decrease screenDistance.
Re: 3D engine :D
Posted: Thu Feb 06, 2014 4:03 pm
by Sheepolution
Wow, I didn't expect it to be fully drawn out of lines, awesome how easily LÖVE handles that. It gives a cool effect when you do
Code: Select all
local function redraw()
for x = 1, w, 3 do ...
Or a higher number than 3.
Re: 3D engine :D
Posted: Thu Feb 06, 2014 7:31 pm
by Jasoco
We can never have enough 3D experimenting! Next step, adding textures and "things".
Re: Raycasting demo :D
Posted: Thu Feb 06, 2014 10:24 pm
by Death
Thanks for the feedback - and I changed topic name.
I can't accept the FoV vision because I'm running some different code I'm working on, but if you would like to, you can keep that as your own project

Re: Raycasting demo :D
Posted: Fri Feb 07, 2014 12:28 am
by josefnpat
This is really cool!
Is there a license associated with this? This would be a cool library to have.