Topic Author
Posts: 3
Joined: 17 Jun 2020, 20:27

Y axis inverted on Metal

07 Aug 2020, 18:58

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?

User avatar
Site Admin
Posts: 3204
Joined: 20 Jan 2012, 17:18

Re: Y axis inverted on Metal

10 Aug 2020, 11:47

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).

Who is online

Users browsing this forum: Google [Bot] and 2 guests