Search found 80 matches

by IndieKid
Wed Dec 26, 2012 5:21 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

I believe that the easiest way to do floors (aside: whenever I'm referring to floors, I'm usually also referring to ceilings since the idea would be almost the same) would be to just draw them as textured quads. The problem with that is a big one, at least as far as LOVE is concerned. As of yet, th...
by IndieKid
Wed Dec 26, 2012 3:04 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

Well, skimming over that huge block of text above because it's a lot of text, I did it by using Canvases. http://i.minus.com/iv2N28U1vbkMc.PNG Which would probably bum a lot of people out if you used. Also, it's not exactly the same graphically, but it works well enough no one would really care. Bu...
by IndieKid
Tue Dec 25, 2012 4:37 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

Oh, bitwise operations. Well, there are no standard support for bitwise operations in Lua 5.1 (that is the version on Lua that comes along with Löve). So you can grab a C bitwise operations library ( they are numerous ) and call them with require. Or, you can grab a pure Lua implementation. See D. ...
by IndieKid
Tue Dec 25, 2012 4:33 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

Inny wrote:Again, doing this 76800 times per frame is slow slow slow, and you'll have some sucky framerat.e
Then any other ideas on how to add textures to floor and ceiling?
by IndieKid
Tue Dec 25, 2012 3:39 pm
Forum: Libraries and Tools
Topic: Inny's Raycaster Demo
Replies: 8
Views: 5946

Re: Inny's Raycaster Demo

Please help me with my question in this topic: viewtopic.php?f=5&t=12069&start=20 (3d page)
by IndieKid
Mon Dec 24, 2012 7:04 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

Simple question about syntax in Lua: how should I write this in Lua?

Code: Select all

--floor
buffer[x][y] = (texture[3][texWidth * floorTexY + floorTexX] >> 1) & 8355711
--ceiling (symmetrical!)
buffer[x][h - y] = texture[6][texWidth * floorTexY + floorTexX]
This draws floor and ceiling.
by IndieKid
Mon Dec 24, 2012 6:30 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

How do you create a floor based on another matrix table (like map {{1,1,1...0,1}})? That information is provided in this link: http://lodev.org/cgtutor/raycasting2.html Be mindful of the fact that Love is not at all optimized for doing individual pixel-based rendering, so you're very likely to get ...
by IndieKid
Mon Dec 24, 2012 4:21 pm
Forum: Libraries and Tools
Topic: Simple LOVE Raytracer Code (both untextured and textured)
Replies: 54
Views: 32715

Re: Simple LOVE Raytracer Code (both untextured and textured

How do you create a floor based on another matrix table (like map {{1,1,1...0,1}})?

I got the idea that I need to know how far is the bottom of the wall is, but how do I get the height of the wall on the opposite side from player?
by IndieKid
Sun Dec 23, 2012 11:40 am
Forum: Support and Development
Topic: Working Raycasting example! WolfenLöve 3D if you will...
Replies: 134
Views: 63309

Re: Working Raycasting example! WolfenLöve 3D if you will...

My project is currently not in progress. You should probably ask the other guy currently doing Raycasting. https://love2d.org/forums/viewtopic.php?f=5&t=12069 I'm currently tied up with 3D polygons. Short answer, if you've coded it correctly, and I assume you have if you have successfully repli...
by IndieKid
Sat Dec 22, 2012 8:22 pm
Forum: Support and Development
Topic: Working Raycasting example! WolfenLöve 3D if you will...
Replies: 134
Views: 63309

Re: Working Raycasting example! WolfenLöve 3D if you will...

Can you please tell me what exactly I need to do to add textures to walls. I'm some kind of newbie to LÖVE. If it is needed I can send my current state of Raycasting Game. Thanks.