Search found 42 matches

by borr
Mon Mar 04, 2024 6:29 am
Forum: Games and Creations
Topic: DEMO on STEAM: Andy Blast Vs The Forces of Evil
Replies: 3
Views: 3821

Re: DEMO on STEAM: Andy Blast Vs The Forces of Evil

https://www.youtube.com/watch?v=Ql699dISWHQ

Can you find life by jumping on the wall of the house?
by borr
Sat Apr 29, 2023 1:00 pm
Forum: Support and Development
Topic: android build from source
Replies: 3
Views: 2651

Re: android build from source

yes, i cloned github

some problem with gradl.
------------------------
C:\Projects\love-android>gradlew.bat
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

project builds successfully from android studio
by borr
Thu Apr 27, 2023 8:57 pm
Forum: Support and Development
Topic: android build from source
Replies: 3
Views: 2651

android build from source

Hello. I have a few questions about building on android. How can I change the application label? The AndroidManifest doesn't look like it does in the docks. android:label="${NAME}" what is this entry where is the name variable source? gradle.properties file has commet line #app.name=LÖVE ...
by borr
Wed Oct 19, 2022 7:31 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 7934

Re: sort order with shader

thanks for your reply.
by borr
Wed Oct 19, 2022 6:21 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 7934

Re: sort order with shader

>I'm not sure what you mean. That image looks correct red rectangle drawn with wrong alpha(other than 0.5) - love.graphics.setColor(1.0, 0.0, 0.0, 0.5) looks like the right solution for draw-drawing is https://love2d.org/wiki/Tutorial:Drawing_Order I don't like it because you need to sort the array
by borr
Wed Oct 19, 2022 5:22 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 7934

Re: sort order with shader

Is there a way to change the draw order using a shader. with full functionality (stencil, color etc)?
by borr
Wed Oct 19, 2022 5:01 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 7934

Re: sort order with shader

it works thanks. except for the layer with the greatest depth love.graphics.clear(0.4, 0.4, 1.0, 0.0) love.graphics.setShader(shader) shader:send("depth", 1.0) love.graphics.setDepthMode("less", true) shader:send("depth", -0.5) love.graphics.setColor(1.0, 0.0, 0.0, 0.5)...
by borr
Tue Oct 18, 2022 8:14 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 7934

Re: sort order with shader

thanks for your reply. both rectangles with alpha less than one. if i change the alpha of the color of the second rectangle to one - it doesn't help function love.draw() love.graphics.clear() love.graphics.setCanvas({ renderTarget1, depthstencil = depthBuffer }) love.graphics.clear(0.4, 0.4, 1.0, 0....
by borr
Tue Oct 18, 2022 6:26 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 7934

sort order with shader

extern float depth; varying vec4 vpos; #ifdef VERTEX vec4 position(mat4 transform_projection, vec4 vertex_position) { vpos = transform_projection * vertex_position; vpos.z = depth; return vpos; } #endif #ifdef PIXEL vec4 effect( vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords ) { // ...
by borr
Sun Oct 09, 2022 7:43 pm
Forum: Support and Development
Topic: how to draw text in a limited area of the screen
Replies: 8
Views: 4399

Re: how to draw text in a limited area of the screen

love.graphics.setScissor( s_width/2 - text_obj:getWidth()/2, s_height / 2 - text_obj:getHeight() / 2, 95, 30 )
love.graphics.clear(0, 0, 0, 0)

clear with alpha 0, does not work without canvas?