Search found 21 matches

by siberian
Sun Mar 17, 2024 4:48 pm
Forum: Games and Creations
Topic: 3D Physics Engine
Replies: 10
Views: 2334

Re: 3D Physics Engine

It looks great!
by siberian
Mon Jan 02, 2023 3:23 pm
Forum: Support and Development
Topic: [Closed] Change stencil when depth test fails
Replies: 5
Views: 1460

Re: [Closed] Change stencil when depth test fails

slime wrote: Mon Jan 02, 2023 3:17 pm I think pretty much all 3D games these days use shadow mapping (which love does expose functionality for) instead of shadow volumes.
I haven't made friends with the shadow maps yet :3 . So far I have only had problems with them.
But I think I'll learn someday.
Thank you.
by siberian
Mon Jan 02, 2023 3:02 pm
Forum: Support and Development
Topic: [Closed] Change stencil when depth test fails
Replies: 5
Views: 1460

Re: [Closed] Change stencil when depth test fails

slime wrote: Mon Jan 02, 2023 2:09 pm love doesn't support that right now. What sort of thing would you use it for?
For stencil shadows with "Carmack’s Reverse".
It's okay if it doesn't work, I'll do something else.
2023-01-02_21h58_12.png
2023-01-02_21h58_12.png (202.75 KiB) Viewed 1407 times
by siberian
Mon Jan 02, 2023 9:13 am
Forum: Support and Development
Topic: [Closed] Change stencil when depth test fails
Replies: 5
Views: 1460

[Closed] Change stencil when depth test fails

Hello.
Is it possible to increase or decrease the value in the stencil only if the pixel is not affected by the stencil function in love.graphics.stencil?
by siberian
Tue Jul 26, 2022 4:25 pm
Forum: Support and Development
Topic: [SOLVED] love.graphics.stencil problem
Replies: 4
Views: 2199

Re: love.graphics.stencil problem

Thank you so much.
I can't believe I didn't notice that option.
by siberian
Tue Jul 26, 2022 12:37 pm
Forum: Support and Development
Topic: [SOLVED] love.graphics.stencil problem
Replies: 4
Views: 2199

Re: love.graphics.stencil problem

I have seen this example.
I don't really need a circle with a hole in it. I ran into a problem when I was making shadows in 3d. And for that you need to draw the shadow volume twice in the stencil with different StencilAction.
by siberian
Tue Jul 26, 2022 8:02 am
Forum: Support and Development
Topic: [SOLVED] love.graphics.stencil problem
Replies: 4
Views: 2199

[SOLVED] love.graphics.stencil problem

Hello everyone. I used two calls love.graphics.stencil() function in my program. local function stencil_test() lg.circle('fill', cx, cy, radius) end function love.draw() local w, h = lg.getDimensions() lg.setCanvas({canvas, stencil = true}) lg.clear(0.2, 0.2, 0.2) cx, cy, radius = w/2, h/2, 200 lg.s...
by siberian
Thu Nov 25, 2021 4:33 am
Forum: Libraries and Tools
Topic: Menori - LÖVE library for simple 3D and 2D rendering
Replies: 10
Views: 29161

Re: Menori - LÖVE library for simple 3D and 2D rendering

There is a comment in file lighting.glsl

Code: Select all

// love2d use row major matrices by default, we have column major and need transpose it.
// 11.3 love has bug with matrix layout in shader:send().
vec4 position(mat4 transform_projection, vec4 vertex_position) {
      ...
}
What kind of bug?
by siberian
Tue Sep 21, 2021 7:00 am
Forum: Games and Creations
Topic: Lead Haul - Old-school space pirate FPS
Replies: 35
Views: 53620

Re: Lead Haul - Old-school space pirate FPS

Very nice!
by siberian
Thu Oct 29, 2020 5:28 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11804

Re: 2d collision with rotated pictures

so the main idea is to check if a dot from one of these polygon is inside the other one, is'nt it ? Sorry, it's hard for me to explain it in English. If you want to check if the two boxes intersect, then you need to check if the center of the first object is included in the polygon obtained as a Mi...