I fixed the problem! Apparantly I shouldn't have used index = int(pixel.x), but index = int(pc.x) instead (screen coordinates). Now it makes stripey colorful stripes.
The fire is extinguished, nothing to see here people, move on. <:)
@slime, The voxel_table format is: { {0.93456,0.235466,0.112356}, {0.767734,0.342211,0.324235}, ... }. They're all numbers between 0 and 1 so an invalid number range can't be the problem. Btw, the alpha values I forgot to show in this example, but in the script they're there and have a value of 1. H...
I've been attempting the whole day to get some simple shader glsl code to work. The shader is supposed to make some stripey colored lines from a one dimensional Lua color containing table. The random colors are set up in Lua in the 'voxel_table', which is sent to the shader with shader:send("vo...
Hey there, sorry for bumping this thread. I haven't been an active löve developer in the past years, I know, but I was in the past. Kind of. A bit. :3 I just wanted to say, I do app/game/plugin developing and I live in Utrecht! So if there's any programmer meetings in Holland some place anytime agai...
Thanks for the suggestion raidho36, but think I'll go for an easier solution.. if there is any. I thought of something like: I store the value I want over the 4 channels, in that way I will get a number limit of 255^4=4228250625, which I think is a reasonable limit for my purpose. Kindof like: (r=20...
Is it possible in löve to add more channels than the only r,g,b,a one's? Like a 5th channel that can accept any number, decimal, negative etc. which isn't contrained to a range of 0-255.
From what I've noticed recently, is that when I run a love file on my laptop which uses 100% of the processor with intense calculations, does only use up 10% of the processor of a very fast pc I ran the same love file with without any difference in FPS. The fast pc even had an fps limit of 60 for so...
Ohai Gijs!! :3 It's very coincidential that I'm viewing your post right now, cuz I'm almost never on these forums. Those polygons look like church windows. What potential use could this have? Maybe like shape cutting and such. Still, neat demo. Btw, it errors at line 47 when pressing the wasd keys s...
Hundreds of polygons are indeed fine. Around 150 gives 150-200 FPS, but when making a scene you'll always be worried about polygon count limits. Like Jasoco said, converting 3D to 2D is quite easily done, but when you have thousands of triangles you'll seriously have to start worrying about the fram...