Page 1 of 1

FFGL viewport bug on layers?

Posted: Mon Jul 20, 2015 00:13
by bigfug
Hi chaps,

Was just testing some reports that my fugFeedbackGL FFGL plugin wasn't working when dropped onto a layer.

It works but it chops off part of the output.

I did some debug and it looks like Resolume is passing in the wrong values (swapping width and height) for the viewport during FF_INSTANTIATEGL

When dropping onto a clip:

VP: x=0 y=0 w=640 h=480

When dropping onto a layer:

VP: x=0 y=0 w=480 h=640

Can you guys have a quick look at this?

Best wishes,

Alex

Re: FFGL viewport bug on layers?

Posted: Tue Jul 21, 2015 14:28
by Joris
I've asked Menno to take a look for you. You're in good hands with him ;)

Re: FFGL viewport bug on layers?

Posted: Tue Jul 21, 2015 15:14
by bigfug
Cheers. Thanks Joris!

Re: FFGL viewport bug on layers?

Posted: Fri Jul 24, 2015 12:28
by Menno
You're right, the width and the height values are swapped indeed. I'll have to see what kind of side-effects correcting this has, in fact, i'm quite surprised layer rendering even works and that this hasn't been noticed on other effects already.
Does swapping the width and height values in your plugin make it work as expected? If so, that's probably the best thing you can do until we release a fix.

Re: FFGL viewport bug on layers?

Posted: Wed Jul 29, 2015 17:49
by bigfug
Menno wrote:You're right, the width and the height values are swapped indeed.
OK, not me going mad, then :-)
Menno wrote:I'll have to see what kind of side-effects correcting this has, in fact, i'm quite surprised layer rendering even works and that this hasn't been noticed on other effects already.
My feedback plugin does all sorts of fun things with extra render buffers and the like, which I guess most plugins don't have to!
Menno wrote:Does swapping the width and height values in your plugin make it work as expected? If so, that's probably the best thing you can do until we release a fix.
I don't think that's going to work as people will have to upgrade again when there is a fix. I might have a look at getting the current viewport with glGetIntegerv but that's operating outside of the specification, so it might cause issues in other FFGL hosts.

Best wishes,

Alex

Re: FFGL viewport bug on layers?

Posted: Fri Aug 07, 2015 15:19
by Videoteque73
Has this been corrected??

Re: FFGL viewport bug on layers?

Posted: Thu Aug 13, 2015 10:03
by Menno
No not yet, it's holidays here and work on version four is halted until everyone is back, which should be next week.
To see if we've fixed something you can have a look at the changelog we provide when a new version is released.

Re: FFGL viewport bug on layers?

Posted: Sun Aug 16, 2015 14:10
by Videoteque73
Thanks!