Search found 107 matches

by NoreoAlles
Wed Mar 29, 2023 10:49 pm
Forum: Support and Development
Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
Replies: 14
Views: 2809

Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly

Just saw that, funnily enough i can read most of really basic french because of my latin lessons and your code explains itself so it isnt a problem.
by NoreoAlles
Wed Mar 29, 2023 10:42 pm
Forum: Support and Development
Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
Replies: 14
Views: 2809

Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly

For the moment you can recover the DDA algorithm part that I wrote and which is functional. If I manage to make the texture part work in an optimized way and you are interested in it, it will be with pleasure. Do what you want with my code, there is no problem on this side ^^ (sorry for the comment...
by NoreoAlles
Wed Mar 29, 2023 8:59 pm
Forum: Support and Development
Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
Replies: 14
Views: 2809

Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly

I recently posted about having issues with a raycaster, to which i got very helpful answers and even a fully implemented raycaster. After looking at the website (https://lodev.org/cgtutor/raycasting.html) which Bigfoot showed me i tried implementing the dda algorithm which this site covers, but now ...
by NoreoAlles
Wed Mar 29, 2023 1:43 pm
Forum: Support and Development
Topic: What does .norm() do to a Vector in C++ and how do i do it in lua?
Replies: 7
Views: 2001

Re: What does .norm() do to a Vector in C++ and how do i do it in lua?

Bigfoot71 wrote: Wed Mar 29, 2023 1:38 pm Strange as a problem, when you call normalize on a vector you do it well like this

Code: Select all

nv = vector:normalized()
And not like this:

Code: Select all

nv = vector.normalized()
...
That was the issue, i was doing v.normalized instead of v:normalized. :crazy:
Thank you :)
by NoreoAlles
Wed Mar 29, 2023 1:25 pm
Forum: Support and Development
Topic: What does .norm() do to a Vector in C++ and how do i do it in lua?
Replies: 7
Views: 2001

Re: What does .norm() do to a Vector in C++ and how do i do it in lua?

I hope this is well explained ^^ (oops too slow :3 ) You explained it very good and i couldnt get hump to work since it kept throwing "attempting to index local self" errors at me so the function you wrote is very much apprieciated. :) edit: so, you werent to slow, that was the point i tr...
by NoreoAlles
Wed Mar 29, 2023 12:40 pm
Forum: Support and Development
Topic: What does .norm() do to a Vector in C++ and how do i do it in lua?
Replies: 7
Views: 2001

What does .norm() do to a Vector in C++ and how do i do it in lua?

I apolegize if anyone has ever asked a similar question but i just cant figure it out. I was looking at C++ tutorials for the DDA algorithm in a Tile based world in 2d and cant really follow it since it uses the .norm() function on a Vector looking something like this: dir = (Vector2 - Vector 1).nor...
by NoreoAlles
Tue Mar 28, 2023 3:50 pm
Forum: Support and Development
Topic: Raycaster Issues (Horizontal Checking)
Replies: 5
Views: 597

Re: Raycaster Issues (Horizontal Checking)

I quickly made it render in 3d, thought you might want to see. I´ll later fix the fisheye and maybe make a full game out of this and post it here on the forums. I for now have copied your code exactly but i will ofc change it later on, hope you dont mind
by NoreoAlles
Tue Mar 28, 2023 3:08 pm
Forum: Support and Development
Topic: Raycaster Issues (Horizontal Checking)
Replies: 5
Views: 597

Re: Raycaster Issues (Horizontal Checking)

Thank you so much, that is so much cleaner then what i tried. I tried to skip the "extend ray by this size" part and tried to just do it super optimized without really understanding what i was doing. I´ll tell you if i have any more problems, but this just looks great. (:
by NoreoAlles
Tue Mar 28, 2023 10:07 am
Forum: Support and Development
Topic: Raycaster Issues (Horizontal Checking)
Replies: 5
Views: 597

Raycaster Issues (Horizontal Checking)

Hi, i´ve been trying to make a Raycaster in Löve and i need help because (1) my rays are kindof cluttered and (2) my rays dont care if they´ve hit a wall sometimes and (3) the rays sometimes all go right when my player is facing left and near to a wall in the right direction. I´ve tried to comment m...