Author Topic: How to render 3d mesh at UIPanel  (Read 10829 times)

mattHu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
How to render 3d mesh at UIPanel
« on: May 16, 2016, 10:01:18 PM »
Hi!
I want render something like 3d mesh, particle system. Change mesh renderqueue only work at view depth, but it do not work at uipanel when uipanel do clip.
How can i use it like use UITexture?
thanks~


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to render 3d mesh at UIPanel
« Reply #1 on: May 18, 2016, 05:01:45 AM »
This post was right next to yours... http://www.tasharen.com/forum/index.php?topic=14196.0

mattHu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: How to render 3d mesh at UIPanel
« Reply #2 on: May 18, 2016, 05:54:52 AM »
I'm trying to render a RenderTexture with camera, but the renderTexture' alpha value always 1.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to render 3d mesh at UIPanel
« Reply #3 on: May 21, 2016, 09:34:58 PM »
The alpha value is going to be whatever you set your camera's Clear Color to be. If you set its alpha to 0, and the render target is RGBA, then it will be 0 by default. This is nothing to do with NGUI, and you should use Unity's forum for these questions.