## Search found 82 matches

Wed Mar 04, 2020 6:45 pm
Forum: Support and Development
Replies: 1
Views: 4071

I don't use Atom for love2d development myself, but have you tried looking at the information on this wiki page. It may help with your toolbar issue.
Mon Mar 02, 2020 6:41 pm
Forum: Support and Development
Topic: [SOLVED] Lua math.cos issue
Replies: 8
Views: 4185

### Re: Lua math.cos issue

Interesting! Thanks for explaining.
Mon Mar 02, 2020 5:42 pm
Forum: Support and Development
Topic: [SOLVED] Lua math.cos issue
Replies: 8
Views: 4185

### [SOLVED] Lua math.cos issue

I simply want to get cos(90 deg) using the following:

Code: Select all

math.cos(math.rad(90))
This is giving me a nasty 6.1232339957368e-17.
I thought cos(90 deg) was 0. My calculator IRL and google also gives me 0.
Wed Feb 12, 2020 6:15 pm
Forum: Support and Development
Topic: [SOLVED] Need help with my vertex shader code
Replies: 3
Views: 2252

### Re: Need help with my vertex shader code

SOLVED: I figured out a hacky way to do this with pixel shader. I didn't realize texture_coords was normalized while texSize was not. So I didn't really even need to use texSize. It's a shame the vertex shader didn't work how I thought it would though. Would be nice if there were code examples on ho...
Wed Feb 12, 2020 4:49 pm
Forum: Support and Development
Topic: [SOLVED] Need help with my vertex shader code
Replies: 3
Views: 2252

### Re: Need help with my vertex shader code

Thanks. After learning some stuff about matrix multiplication I'm now trying this: extern vec2 texSize; extern float angle; #ifdef VERTEX vec4 position(mat4 transform_projection, vec4 vertex_position) { transform_projection *= mat4( 1, 0, 0, 0, 0, cos(angle), -sin(angle), 0, 0, sin(angle), cos(angle...
Mon Feb 10, 2020 7:07 pm
Forum: Support and Development
Topic: [SOLVED] Need help with my vertex shader code
Replies: 3
Views: 2252

### [SOLVED] Need help with my vertex shader code

I'm trying to do a 2d perspective transformation using a vertex shader. Similar to the image below: https://i.stack.imgur.com/aGbzh.png I'm currently using this shader code to try and achieve this effect: extern vec2 texSize; number lerp(number a, number b, number t) { return a * (1.0 - t) + b * t; ...
Fri Aug 24, 2018 7:47 pm
Forum: Support and Development
Topic: Pausing animation in ParticleSystem
Replies: 2
Views: 1008

### Re: Changing texture and quad in ParticleSystem

BUMP: Anyone know if it's possible to pause the animation in a ParticleSystem that uses quads? I just want to draw each particle to be a different frame of a spritesheet and not change to any other part of the animation.
Tue Aug 14, 2018 7:18 pm
Forum: Support and Development
Topic: Pausing animation in ParticleSystem
Replies: 2
Views: 1008

### Pausing animation in ParticleSystem

I'm having trouble figuring out how to make a particle emit a different texture without affecting already created particles. Is this possible to do with just one ParticleSystem? For example, I have a ParticleSystem that has emitted 3 copies of ball.png. If I change the texture to box.png, I don't wa...
Thu Jun 21, 2018 4:43 pm
Forum: Support and Development
Topic: [SOLVED] Using HUMP class and HardonCollider crashes sometimes
Replies: 0
Views: 1163

### [SOLVED] Using HUMP class and HardonCollider crashes sometimes

I'm making a platformer that uses HardonCollider for collisions. Although it comes with a class library, I prefer using the HUMP class library. I tried using HC.polygon(198,330, 429,330, 429,297, 561,297, 561,198, 594,198, 594,363, 198,363) to create a hitbox, but it froze up my program when I ran i...
Wed Apr 11, 2018 7:23 pm
Forum: Support and Development
Topic: Problem using Grease library
Replies: 3
Views: 1079

### Re: Problem using Grease library

I wasn't able to figure out the grease problem. In the meantime though, I've started using Noobhub which is working very well so far.