Search found 107 matches
- Wed Mar 29, 2023 10:49 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3015
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.
- Wed Mar 29, 2023 10:42 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3015
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...
- Wed Mar 29, 2023 8:59 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3015
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 ...
- 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: 2206
Re: What does .norm() do to a Vector in C++ and how do i do it in lua?
That was the issue, i was doing v.normalized instead of v:normalized.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 thisAnd not like this:Code: Select all
nv = vector:normalized()
...Code: Select all
nv = vector.normalized()
![Hurr Durr :crazy:](./images/smilies/ms-crazy.png)
Thank you
![Smile :)](./images/smilies/ms-smile.png)
- 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: 2206
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...
- Wed Mar 29, 2023 1:15 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: 2206
- 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: 2206
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...
- Tue Mar 28, 2023 3:50 pm
- Forum: Support and Development
- Topic: Raycaster Issues (Horizontal Checking)
- Replies: 5
- Views: 700
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
- Tue Mar 28, 2023 3:08 pm
- Forum: Support and Development
- Topic: Raycaster Issues (Horizontal Checking)
- Replies: 5
- Views: 700
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. (:
- Tue Mar 28, 2023 10:07 am
- Forum: Support and Development
- Topic: Raycaster Issues (Horizontal Checking)
- Replies: 5
- Views: 700
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...