Search found 60 matches
- Sat May 22, 2021 2:12 am
- Forum: Support and Development
- Topic: How do I update the positions of instances of meshes?
- Replies: 8
- Views: 9900
Re: How do I update the positions of instances of meshes?
Yeah, that makes sense. Thank you! I'm a novice with instancing of meshes, so this is super helpful.
- Sat May 22, 2021 2:02 am
- Forum: Support and Development
- Topic: How do I update the positions of instances of meshes?
- Replies: 8
- Views: 9900
Re: How do I update the positions of instances of meshes?
Thanks for that helpful hint! I don't know if this is correct or not, but I found that it works when I replace i with c: for c,self in ipairs(circles) do print(self.dir) self.x = self.x + (self.speed * dt)* self.dir--just testing self.y = self.y + (self.speed * dt) * self.dir--just testing for i=1,i...
- Sat May 22, 2021 1:27 am
- Forum: Support and Development
- Topic: How do I update the positions of instances of meshes?
- Replies: 8
- Views: 9900
Re: How do I update the positions of instances of meshes?
So, in this example, self.dir is randomly either 1 or -1. This is just to try to get the circles to move in different directions for testing. for c,self in ipairs(circles) do self.x = self.x + (self.speed * dt)* self.dir--just testing self.y = self.y + (self.speed * dt) * self.dir--just testing for ...
- Sun May 16, 2021 4:21 am
- Forum: Support and Development
- Topic: How do I update the positions of instances of meshes?
- Replies: 8
- Views: 9900
Re: How do I update the positions of instances of meshes?
Ah, I see. I was close then, I was just trying to update the wrong mesh. I got it working with this basic proof of concept: local testx = 0 function love.update(dt) testx = testx + 10 * dt for i=1,instancemesh:getVertexCount() do instancemesh:setVertexAttribute(i,1,testx,100) end instancemesh:setVer...
- Sun May 16, 2021 3:37 am
- Forum: Support and Development
- Topic: How do I update the positions of instances of meshes?
- Replies: 8
- Views: 9900
How do I update the positions of instances of meshes?
I am interested in using the drawInstanced() function, but I am struggling to understand how to update the positions of each instance of a mesh. The example here: https://love2d.org/wiki/love.graphics.drawInstanced shows the positions of the triangles being sent to the shader one time. Using the exa...
- Thu Aug 22, 2019 1:43 pm
- Forum: Games and Creations
- Topic: monad - a contemplative experience
- Replies: 0
- Views: 4892
monad - a contemplative experience
monad is a generative art and soundscape experience for Android, Windows, and MacOS. Linux and iOS versions are coming soon.
BUY IT ON THE PLAY STORE OR ITCH.IO
BUY IT ON THE PLAY STORE OR ITCH.IO
- Tue Jul 30, 2019 1:46 pm
- Forum: Games and Creations
- Topic: Three Doors
- Replies: 11
- Views: 11199
Re: Three Doors
Thanks for the info pgimeno! 1. Fixed. 2. I don't want Windows users to download the .love file thinking that it will work for them, because it won't, unless they follow instructions to replace sdl2.dll and I don't want to make them do that work. I may opt instead to just upload a .zip file of the s...
- Mon Jul 29, 2019 9:26 pm
- Forum: Games and Creations
- Topic: Three Doors
- Replies: 11
- Views: 11199
Re: Three Doors
I fixed the resolution issue, I'm pretty sure. I also added a 32-bit build. Check out the itch page!
- Mon Jul 29, 2019 7:57 pm
- Forum: Games and Creations
- Topic: Three Doors
- Replies: 11
- Views: 11199
Re: Three Doors
I didn't think there were any 32-bit people left. I can easily make a 32-bit build. I will also look into shrinking the size of the second level, THANK YOU for pointing that out!
- Mon Jul 29, 2019 11:39 am
- Forum: Games and Creations
- Topic: Three Doors
- Replies: 11
- Views: 11199
Three Doors
I made this silly puzzle game for Windows and Linux. I can't say much without spoiling it. Your objective is to walk through the doors. If it doesn't work on your system, please let me know. You can also find me on Discord @ShinyOgre https://shinyogre.itch.io/three-doors https://love2d.org/imgmirrur...