Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] Tier 1 agk_invert is not what it says in the documentation

Author
Message
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 16th Aug 2017 16:16 Edited at: 16th Aug 2017 18:17
Beware it is a shader coding issue !

Preben and I came to the result that agk_invert can't get 1 as we/I needed it to be
I tested agk_invert == 0 and agk_invert > 0 works but not agk_invert == 1
Documentation says: float agk_invert - 1 if drawing to an image, 0 if drawing to the screen, only needed by quads
_______________________________________^ that "-" dosn't belong to the 1 it is the "enumeration" sign ...you can find it at the bottom of the shader guides docu

right now i use float(agk_invert>0.0) as workaround till i know what agk_invert is supposed to be or is fixed

Using AGKv2 Tier1
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 16th Aug 2017 16:25
janbo,

you could have precised that is a "shader coding issue" in the title ? i got 2 minutes to understand the meaning of your post lol (sorry ! lol)
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 16th Aug 2017 16:33 Edited at: 16th Aug 2017 16:38
Sorry like so ?

Using AGKv2 Tier1
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 16th Aug 2017 17:12
lol i love the added big text in bold :p thanks janbo !
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Aug 2017 20:00
Sorry, poor formatting on my part, I'll change them to equals signs. The statement is also incorrect, the value will equal -1 when drawing to an image, and 1 when drawing to the screen. I've fixed it in the online help files.
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 16th Aug 2017 20:52 Edited at: 16th Aug 2017 21:08
I'll test this again... to be sure

Well as I need a value between 0 and 1 I use (agk_invert * 0.5 + 0.5) now
This is the whole line ndc = vec2(ndc.x, mix(ndc.y,1.0-ndc.y, agk_invert * 0.5 + 0.5));
It works but if someone have a better idea how to invert the ndc in relation to agk_invert please tell me

Using AGKv2 Tier1

Login to post a reply

Server time is: 2024-11-24 09:59:03
Your offset time is: 2024-11-24 09:59:03