Search found 287 matches
- Sun Apr 02, 2023 12:02 am
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
Glad to hear it, it was one of the things that I told myself that it was absolutely necessary to change (the number of conditions in the shader) but if it works as well so much the better! I still optimized it and added the ceiling as well as the management of several floor/ceiling textures, I can't...
- Fri Mar 31, 2023 9:35 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
The shader is done and the software rendering has been improved a bit! For the shader I was a little inspired by how Marclurr had done. It's still a bit messy, there are a lot of points to improve and also things to add, I might do a separate topic if I really go further than that. If you want to be...
- Fri Mar 31, 2023 1:51 pm
- Forum: Support and Development
- Topic: Bug found with math.rad
- Replies: 3
- Views: 776
Re: Bug found with math.rad
There is no reason, here is the response from the Lua interpreter: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print(math.rad(180), math.pi) 3.1415926535898 3.1415926535898 Put math.pi instead (it's 180° in radians), if the problem is still present wouldn't it be rather the orientation of y...
- Fri Mar 31, 2023 1:30 pm
- Forum: Support and Development
- Topic: [SOLVED] - [string "ImageData.lua"]:38: bad argument #1 to 'max' (number expected, got nil)
- Replies: 1
- Views: 1048
[SOLVED] - [string "ImageData.lua"]:38: bad argument #1 to 'max' (number expected, got nil)
Hi :) I think there is a problem with the Image:mapPixel method or I am missing something too big, I kept getting this error for no apparent reason when I wanted to generate a texture: [string "ImageData. lua"]:38: bad argument #1 to 'max' (number expected, got nil) I then reduced the prob...
- Thu Mar 30, 2023 11:38 am
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
I've actually gone down this exact rabbit hole fairly recently, I'd started with a fully software rendered version and while I'd managed to optimise it to a reasonable level I wanted to try and make it even faster. The shader version can render at 4k resolution with virtually no performance impact....
- Wed Mar 29, 2023 11:42 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
I could fix all of my code, i think the only real issue was how my planeX and planeY were calculated, as it now works flawless, without really having touched the actual raycaster. Thanks again! :awesome: Indeed I also had this problem which pulled my hair out a bit, so I did the `Raycaster:getPlane...
- Wed Mar 29, 2023 11:34 pm
- Forum: Games and Creations
- Topic: Small platform game
- Replies: 13
- Views: 4941
Re: Small platform game
As I mentioned in my first message, I do believe I can improve the issue of size, but it will be for my next project. I am aware that I have neglected certain points here, but my focus was on addressing the most important aspects related to this matter and experimenting with them. I will do my best ...
- Wed Mar 29, 2023 10:56 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
Do not base your French on me, as it is supposed to be read only by me there are surely mistakes.
Surprising otherwise, you understand thanks to Latin, I never understood anything personally
Surprising otherwise, you understand thanks to Latin, I never understood anything personally
- Wed Mar 29, 2023 10:46 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
In the .love file they are not all in English, some are in French
- Wed Mar 29, 2023 10:28 pm
- Forum: Support and Development
- Topic: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
- Replies: 14
- Views: 3439
Re: Implementation/port of Lode Vandevenne´s Raycaster behaving weirdly
Your post made me want to do one too with Löve2d ^^ So I started again like you and here is where I am with the update function, it is functional but not yet cleaned: function Raycaster:update(px, py, dir_x, dir_y, plane_x, plane_y) -- Define local self values -- local num_rays = self.num_rays local...