Search found 14 matches

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: 6
Views: 9677

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: 31
Views: 20366

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: 7438

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...
by siberian
Wed Oct 28, 2020 7:55 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 7438

Re: 2d collision with rotated pictures

May be will be usefull. The main idea is to get the sum of the 2 shapes (hull). If the center of an object is inside a hull, the objects are intersecting. In motion, check the intersection of the hull with a segment from the center of the moved object to its destination point. https://love2d.org/for...
by siberian
Thu Oct 08, 2020 5:37 am
Forum: Games and Creations
Topic: Collisions and images
Replies: 8
Views: 5496

Re: Collisions and images

Maybe this sample can help
by siberian
Tue Sep 01, 2020 4:08 pm
Forum: Support and Development
Topic: Question about Threads
Replies: 5
Views: 4007

Re: Question about Threads

I added a second option into my answer, it's simpler.
by siberian
Tue Sep 01, 2020 4:00 pm
Forum: Support and Development
Topic: Question about Threads
Replies: 5
Views: 4007

Re: Question about Threads

You can use math.random() local threadCode = [[ local count = ... count = count or 1 math.randomseed(os.time()) for i = 1, count do print(math.random(10)) end ]] local th function love.load() th = love.thread.newThread( threadCode ) th:start(10) end or add require 'love.math' into thread code. "...
by siberian
Sun Aug 23, 2020 4:45 am
Forum: Support and Development
Topic: black screen
Replies: 2
Views: 1449

Re: black screen

Where is love.draw() function?
by siberian
Tue Aug 11, 2020 2:40 am
Forum: Libraries and Tools
Topic: [Library] A simple 3D scene renderer
Replies: 11
Views: 12346

Re: [Library] A simple 3D scene renderer

Nice!
But why are you recreating the scene in every frame?
by siberian
Mon Jul 13, 2020 11:25 am
Forum: Support and Development
Topic: Error with 'The multiply blendmode'
Replies: 1
Views: 1023

Re: Error with 'The multiply blendmode'

Hello.
Try "darken", not "darker".