Page 1 of 1

Y axis inverted on Metal

Posted: 07 Aug 2020, 18:58
by acardoso
So, I'm using Noesis 2.x on my render engine for VG rendering (invoking Noesis from C++).
I noticed that on OpenGL everything seems fine, but on Metal, the Y axis is inverted.
OpenGL treats bottom-left as a screen-space origin, but Metal uses top-left, so I have a handler for that in my engine, but since the VG rendering path goes through Noesis shaders, I can't control it, resulting in flipped Y coordinates.

Is there a way for me to tell to invert the 2D Y axis on all rendering performed in Noesis?

Re: Y axis inverted on Metal

Posted: 10 Aug 2020, 11:47
by jsantos
I think this is happening when you are rendering to texture with Noesis and then using that texture in your own engine. In this case I think you should address this platform difference when reading that texture in your own engine (by flipping UV coordinates). But just in case you need it there is a render flags in the view for this purpose (RenderFlags_FlipY).