Author Topic: FOV and perspective camera  (Read 2868 times)

Burdock

  • Guest
FOV and perspective camera
« on: September 04, 2013, 05:47:02 PM »
Hey guys! New to the forums here~ Just had a few question...

I just got NGUI and am having some issues using a perspective camera...
Basically I need a HUD that stays the same size and in the same location based on FOV... Is there any easy way to do that?

Thanks for the help!

-Daniel

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: FOV and perspective camera
« Reply #1 on: September 04, 2013, 06:13:18 PM »
If it needs to be the same size, why not just do it fully 2d in an orthographic secondary camera?

Burdock

  • Guest
Re: FOV and perspective camera
« Reply #2 on: September 04, 2013, 10:26:31 PM »
That would work.... But then I cant use a lot of features like NGUI's OC, refracting and such :/

Is there any better way, I would much rather a more *elegant* solution?

Or does anyone have an example of this working??

Burdock

  • Guest
Re: FOV and perspective camera
« Reply #3 on: September 04, 2013, 10:46:02 PM »
Ok.... I now realize how stupid i'm being :/

Fixed by using a 2D UI~ and an Anchor with a positive Z

~Daniel

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: FOV and perspective camera
« Reply #4 on: September 05, 2013, 10:56:15 AM »
As long as you're getting smarter, it doesn't matter how stupid you were in the past.  8)