Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nafffen

Pages: 1 [2]
16
Graphics / Re: Blur WITHOUT shader
« on: May 16, 2023, 04:05:30 pm »
Oh yes I didn't think about that !
Thank you for the little example I am going to try this  :D

17
Graphics / Re: Blur WITHOUT shader
« on: May 14, 2023, 08:14:00 pm »
Yes gaussian blur is the kind of result I would like, box blur could give also good result
Sorry to re-open the topic on the handle of shader with android, but can I wait for it or I really need to find another slotution with that ?

18
Graphics / Blur WITHOUT shader
« on: May 14, 2023, 04:11:54 pm »
Hello,
What is the best and efficient way to apply gaussian blur without shaders ? (because I want to play on android later)
Is drawing on RenderTexture and CPU compute blur the best way ? It seems too expensive to me
Thank you

19
Graphics / Re: Alternative of shaders on Android
« on: September 08, 2022, 05:54:48 pm »
Thank you for mentioning that, if others have a similar question I did that that way (first use of blendmode, could be better I suppose):

Mask are full alpha by defaut and color where I want to put material (see attachement)

(click to show/hide)

20
Window / Re: MouseWheelEvent with Trackpad, delta = 0 ?
« on: August 22, 2022, 01:06:31 pm »
My bad I didn't see
solved thank you very much c:

21
Window / Re: MouseWheelEvent with Trackpad, delta = 0 ?
« on: August 22, 2022, 09:49:46 am »
1. Well spotted, I didnt try horizontal scrolling, with my trackpad it doesnt trigger the MouseWheelEvent event

2. I simply printed out the delta attribute of sf::Event::MouseWheelEvent Struct (https://www.sfml-dev.org/documentation/2.5.1-fr/structsf_1_1Event_1_1MouseWheelEvent.php), indeed it's a int. Where did you get from the float value ?

22
Window / MouseWheelEvent with Trackpad, delta = 0 ?
« on: August 20, 2022, 11:59:01 pm »
Hello everyone,

I'm using SFML on Windows 10 with my laptop and I use a trackpad to move my mouse.

When it comes to MouseWheelEvent (sliding two fingers on the trackpad), the delta member is most of the time 0 which is quite disturbing for me.
Btw if I slide quickly, the delta is about +-5 and there is an inertie towards 0 (I assume it's device/system dependent) and I'm ok with that.

Edit: I noticed when you zoom with trackpad (two fingers get closer) it triggers MouseWheelEvent with a decent delta as expected. The issue is really focused on sliding two fingers (up/down) on the trackpad

Why the delta stays at 0 if the user inputs natural movement ? How can I handle it ?

Thank you

23
Graphics / Alternative of shaders on Android
« on: July 24, 2022, 10:36:59 am »
Hello everyone,

I want to bring my sfml app on Android and I'm using a little shader to blend textures from multiple mask images (black and white, ex img: maskStone512x.png) into a VertexArray on my tilemap object (can see result with img: result.PNG).
I don't want to have a texture per tile but I want a smooth background. That's why I did it this way.

If I'm right, on Android, I can't use my personal shader because of gl es 2.0 which is not supported by sfml currently.  :'(

I need to find an alternative to this utilisation.

Actually, the tilemap texture is not changing afterwards so I thought a simple sprite/texture could be ok after the generation and transmission of the texture by the server. If I do this way, is there a maximum size of sprite/texture I should not exceed to keep a good performance on android ? Should I split the tilemap in different zone to control their draw matching the size and pos of the view ? If so what size each part ?

If you have another idea to workaround :D

Thank you very much for your help

Pages: 1 [2]
anything