Author Topic: Getting "pixel perfect" with perspective cameras?  (Read 4739 times)

sintua

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 63
    • View Profile
Getting "pixel perfect" with perspective cameras?
« on: January 08, 2014, 09:07:55 PM »
Hi! I'm trying to create an effect that involves mixing the orthographic with perspective camera (visually).

The current menu is "flat" on the screen, pixel perfect and clearly legible as you get with an orthographic camera. If selecting the OtherMenu button, that button stays "flat" and the rest of the OtherMenu contents slide out from that position, while FirstMenu "falls" into the background at a skewed angle.

Imagine it like the main GUI is a piece of paper taped to your screen, then it's cut out and 'falls' behind the screen in 3D space.

What would be the best - if at all - possible way to get this effect? I've tried using just a perspective camera with the UI set flat and it mostly works, except it isn't pixel perfect so text and pixel art sticks out like a sore thumb.

EDIT: I realize it won't be pixel perfect after it moves into perspective, but that's fine. I only need the front menu to be crisp and legible.
« Last Edit: January 08, 2014, 09:48:07 PM by sintua »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Getting "pixel perfect" with perspective cameras?
« Reply #1 on: January 08, 2014, 10:08:41 PM »
So you want your UI to transition from 3D to 2D somehow? That's tricky. Pixel perfect implies orthographic, UIRoot set to pixel perfect, meaning pixel sizes will differ between different resolutions. Perspective UIs generally have one fixed size camera instead. You would have to somehow modify its distance so that it mimics the orthographic camera's size. I can't suggest much here. It's all eyeballing and guesswork with something like this.