Raycasting demo :D

Showcase your libraries, tools and other projects that help your fellow love users.
Death
Prole
Posts: 9
Joined: Sat Feb 01, 2014 3:37 am
Location: Hell
Contact:

Raycasting demo :D

Post 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:
Image
Image
Image

^If someone could tell me how to hide those with a button that would be helpful.
Last edited by Death on Thu Feb 06, 2014 10:22 pm, edited 1 time in total.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: 3D engine :D

Post by Davidobot »

I allowed the rotation to be controlled by the mouse.
Hope you don't mind. :monocle:
Attachments
wolf3d.love
(2.96 KiB) Downloaded 245 times
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
Death
Prole
Posts: 9
Joined: Sat Feb 01, 2014 3:37 am
Location: Hell
Contact:

Thanks!

Post 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 :P
EDIT - I also noticed it's not fullscreen. I don't know if you took that out or I forgot to revert change :D
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 :awesome:
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Thanks!

Post 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 :P
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 :D
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 :awesome:
Cool, man! :awesome:
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: 3D engine :D

Post 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 ?
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: 3D engine :D

Post 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.
Attachments
wolf3d.love
(3.24 KiB) Downloaded 176 times
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Sheepolution
Party member
Posts: 264
Joined: Mon Mar 04, 2013 9:31 am
Location: The Netherlands
Contact:

Re: 3D engine :D

Post 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.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: 3D engine :D

Post by Jasoco »

We can never have enough 3D experimenting! Next step, adding textures and "things".
Death
Prole
Posts: 9
Joined: Sat Feb 01, 2014 3:37 am
Location: Hell
Contact:

Re: Raycasting demo :D

Post 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 :D
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Raycasting demo :D

Post by josefnpat »

This is really cool!

Is there a license associated with this? This would be a cool library to have.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest