Search found 16 matches

by ThatCodingGuy78
Mon Jun 28, 2021 6:32 am
Forum: General
Topic: [SOLVED] Colors rendering on top of other colors weirdness?
Replies: 2
Views: 5495

Re: Colors rendering on top of other colors weirdness?

I just got it working, but now the way I did it causes the polygon colors to always keep facing the camera. I have no clue how to fix this.. Here's the new .love file: Game Name.love The problematic functions are drawShape3D in graphics.lua and sortByDistance, also in graphics.lua. Edit: I fixed it,...
by ThatCodingGuy78
Sun Jun 27, 2021 6:03 pm
Forum: General
Topic: [SOLVED] Colors rendering on top of other colors weirdness?
Replies: 2
Views: 5495

[SOLVED] Colors rendering on top of other colors weirdness?

As was said in the title, for some reason, my colors are rendering on top of other colors no matter how I orient my 3D cube. I think it's an issue with how I actually render it, but I've no idea what. Here's my .love file (Warning, minor spaghetti code ahead!) Game Name.love The problematic function...
by ThatCodingGuy78
Sun Jun 27, 2021 2:38 pm
Forum: General
Topic: How would I rotate a polygon in 3D space?
Replies: 2
Views: 4847

Re: How would I rotate a polygon in 3D space?

I'll do that I guess, meanwhile, I figured out a much easier way of doing things. I was accidentally rotating the individual polygons instead of the main shape... I somehow applied my rotatePoints function to the individual points for the polygons so it was rotating the triangles instead of the main...
by ThatCodingGuy78
Sun Jun 27, 2021 1:29 pm
Forum: General
Topic: How would I rotate a polygon in 3D space?
Replies: 2
Views: 4847

How would I rotate a polygon in 3D space?

I have no idea how to do this, I know how to rotate points (and by extension, lines), but have no idea how to rotate a polygon. This is not just a polygon BTW, it's a face (of a box) made up of polygons. I have no clue how to rotate something around a spot that isn't the origin point, as I'm bad at ...
by ThatCodingGuy78
Sun Jun 27, 2021 6:22 am
Forum: General
Topic: What code editor do you use ?
Replies: 195
Views: 294667

Re: What code editor do you use ?

I use VIsual Studio Code with a ton of Lua/LOVE extensions
by ThatCodingGuy78
Sun Jun 27, 2021 4:46 am
Forum: General
Topic: How do I use love.filesystem.read to read a .txt file?
Replies: 0
Views: 15516

How do I use love.filesystem.read to read a .txt file?

I tried using this function: function readConfigFile() local config = love.filesystem.read("config.txt") return config end But that doesn't work, it's just nil. I have no idea what I'm doing wrong here, the file's in the game directory. Also, here's the code that accesses config.txt's data...