Jump to content

edge of screen in 3D


Rick
 Share

Recommended Posts

I don't need this now, but was thinking about it when I was doing my GUI in 3D (textures on planes/boxes always facing the camera). When these need to be centered it works great across multiple resolutions and aspect ratios, but when you need them to be on the edges of the screen, does anyone know of a way to do that? Remember this is in 3D not 2D and wide screens show more of the 3D scene on the edges than non wide screen resolutions.

Link to comment
Share on other sites

Unproject() could be useful there. Unproject(0,y) for left screen edge and Unproject(screenWidth-1,y) for right edge etc. Position your quads accordingly.

"If our brains were simple enough for us to understand them, we'd be so simple that we couldn't." - Ian Stewart 1995.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...