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.
Raycasting demo :D
Raycasting demo :D
Last edited by Death on Thu Feb 06, 2014 10:22 pm, edited 1 time in total.
Re: 3D engine :D
I allowed the rotation to be controlled by the mouse.
Hope you don't mind.
Hope you don't mind.
- Attachments
-
- wolf3d.love
- (2.96 KiB) Downloaded 246 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
personal page and a raycaster
Thanks!
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
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!
I don't mindDeath 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 changed that not to be fullscreen, I don't like testing in fullscreen mode.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
Cool, man!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
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
personal page and a raycaster
- Roland_Yonaba
- Inner party member
- Posts: 1563
- Joined: Tue Jun 21, 2011 6:08 pm
- Location: Ouagadougou (Burkina Faso)
- Contact:
Re: 3D engine :D
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 ?
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
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.
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
personal page and a raycaster
- Sheepolution
- Party member
- Posts: 264
- Joined: Mon Mar 04, 2013 9:31 am
- Location: The Netherlands
- Contact:
Re: 3D engine :D
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
Or a higher number than 3.
Code: Select all
local function redraw()
for x = 1, w, 3 do ...
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: 3D engine :D
We can never have enough 3D experimenting! Next step, adding textures and "things".
Re: Raycasting demo :D
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
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
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Raycasting demo :D
This is really cool!
Is there a license associated with this? This would be a cool library to have.
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
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
Who is online
Users browsing this forum: Bing [Bot] and 5 guests