Sign in to follow this  
WiredCat

silly question about vertex coords

Recommended Posts

im trying to make a sloped button but i forgot which NDC coordinate was higher than other

 

for x axis its simple higher numbers mean higher x position

 

but what about y? where is -1 located at bottom or top of the screen? :X

 

 

i could check it but i am in a middle of rewriting whole visual component library for my menu

Share this post


Link to post
Share on other sites

Trick question

The original question (although I believe without intent) is already a trick question in the OpenGL/Vulkan forum, without mentioning which of the two it refers to. :lol:

Why? Because while both place the origin in the middle of the screen, in OpenGL the Y axis per definition points up (see missionctrl's answer) whereas in Vulkan, it points down.

Share this post


Link to post
Share on other sites
Why? Because while both place the origin in the middle of the screen, in OpenGL the Y axis per definition points up (see missionctrl's answer) whereas in Vulkan, it points down.

I haven't tried anything in Vulkan yet, so this is a great bit of data.  Is the intent to make it match normal screen coordinates more closely?

Edited by missionctrl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this