Jump to content
  • Advertisement
Sign in to follow this  
KKTHXBYE

silly question about vertex coords

This topic is 404 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

Trick question: coordinates are oriented the way your transform matrices interpret them.

What's wrong with testing your sloped button drawing code and then inverting a few signs in the appropriate places if needed?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!