Author Topic: NGUI, UITexture and RenderToTexture for map of a ski hill.  (Read 1493 times)

jespionage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
NGUI, UITexture and RenderToTexture for map of a ski hill.
« on: February 24, 2014, 09:01:12 PM »
Hi All

I've got a scene I'm trying to render to a texture so I can display a map in my NGUI based menu system.  Since the map is generated in real time I'm using a UITexture to encapsulate it.  However I can't get my UITextures to appear in my camera view.

I could explain everything I'm seeing and all my details, or I could just link you to this test project...

http://snowdrift.jespionage.com/SkierUi.zip

You'll need NGUI to run this project.  Just import your own copy and everything should line up.

SnowDrift is a virtual reality skiing game for the Oculus Rift that uses NGUI and many other pre-existing packages.  This demo doesn't include the game, just the minimum required to demonstrate the lack of UiTextures.

They look fine in the editor and disappear when you press run.

Can anyone think of why this might be happening?

Cheers
Jesse "Jespionage" Joudrey
« Last Edit: February 25, 2014, 01:17:06 PM by jespionage »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI, UITexture and RenderToTexture for map of a ski hill.
« Reply #1 on: February 25, 2014, 12:51:48 PM »
You posted NGUI's source code in public.

jespionage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: NGUI, UITexture and RenderToTexture for map of a ski hill.
« Reply #2 on: February 25, 2014, 01:06:51 PM »
Aw Crap!

I'm very sorry.  The file is removed from the server. 

I'll put a new version up soon that doesn't include the source.

Jesse