Search found 12 matches

by flyingrub
Fri May 17, 2024 18:37
Forum: Wire Wire, Pants on Fire!
Topic: metaballs time problem
Replies: 6
Views: 11199

Re: metaballs time problem

You do not want to increase with the same fixed value each frame, because then if you run at 200 fps it will go faster than if you run at 30 fps. You want to have something time dependent. This works quite well and allow you to have a speed parameter too :
photo_2024-05-17_19-36-00.jpg
by flyingrub
Thu Feb 13, 2020 10:45
Forum: Developers Developers Developers
Topic: Getting default uniforms
Replies: 1
Views: 9115

Re: Getting default uniforms

You need to use the ffglquickstart classes so that the default params are sent, for example FFGLEffect if you are creating an effect.
by flyingrub
Thu Nov 28, 2019 18:58
Forum: Developers Developers Developers
Topic: FFGL - How to get Texture info during creation of parameters
Replies: 6
Views: 18464

Re: FFGL - How to get Texture info during creation of parameters

It has been a while that I did not touch this code since Menno started to work on this, but from what I see this part did not really change and should be the same as before. :)
by flyingrub
Mon Jul 22, 2019 14:37
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 49782

Re: FFGL 2 SDK

Passing/returning ranges

Code: Select all

result.UIntValue == FF_FAIL
is undefined behaviour if there is something in PointerValue.
We need to change FFMixed to be a struct if we want to access both at the same time.
by flyingrub
Thu Jul 18, 2019 11:30
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 49782

Re: FFGL 2 SDK

Passing/returning ranges :
The thing is that there is no way to know the final type of an union, and accessing inactive union member is undefined behaviour.

As old plugins don't support this method the check if the result is FF_FAIL is important in Resolume Arena to check the range to { 0, 1 ...
by flyingrub
Tue Jul 16, 2019 14:27
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 49782

Re: FFGL 2 SDK

Pointer recasting in FFGL.cpp :
I already had a look at your .zip and found this solution very elegant, I don't see a reason why this should not be implemented like this.

Passing/returning ranges :
I wanted to have a status return value and a data return value so I use this different pattern ...
by flyingrub
Mon Jul 15, 2019 11:43
Forum: Developers Developers Developers
Topic: FFGL - How to get Texture info during creation of parameters
Replies: 6
Views: 18464

Re: FFGL - How to get Texture info during creation of parameters

I thought you wanted to change the value of the parameter, not the range. :?

So, yeah, it is not really possible at the moment, as Arena add the parameter before calling initGL, and we don'thave a way to push parameter range change to the host right now.
by flyingrub
Thu Jul 11, 2019 09:33
Forum: Developers Developers Developers
Topic: FFGL - How to get Texture info during creation of parameters
Replies: 6
Views: 18464

Re: FFGL - How to get Texture info during creation of parameters

InitGL function : https://github.com/resolume/ffgl/blob/master/source/lib/ffgl/FFGLPluginSDK.h#L59

Every plugin should have a variable named currentViewport that contains texture info after InitGL is called by the host. Even if you create your parameter in the constructor and you still don't have ...
by flyingrub
Tue Apr 23, 2019 09:33
Forum: Developers Developers Developers
Topic: FFGL and colour picker widgets (v6)
Replies: 1
Views: 7757

Re: FFGL and colour picker widgets (v6)

The issue for the default colour is already fixed internally, but I think the fix will only be available for 7, unfortunately.