0

According to discussion in this, I have a new camera(Display Camera) for Display layer.

GreenCanvas is the Image with Background green color for my UI. DisplayCamera is the new camera to render 3D animation with its property Curling Mask is set to Display layer.

ModeImage is a raw image on which I like to render 3D animation and its property Texture is set with RenderTexture named ModelRenderTexture. That ModelRenderTexture is set to DisplayCamera's property Target Texture.

Model1 is the 3D animation I like to play.

enter image description here

Images for Camera's property and ModeImage's property are shown in attached images.

enter image description here

enter image description here

I can see model in the scene view of DisplayCamera.

enter image description here

But when I run the application, I don't see model and only see GreenCanvas.

enter image description here

How can I see my model? What is missing?

EDIT:

Now I put DisplayCamera as a child of Model. Now I can see my model on running the application. But now I see two, how come another one come out?

enter image description here

derHugo
  • 83,094
  • 9
  • 75
  • 115
batuman
  • 7,066
  • 26
  • 107
  • 229

1 Answers1

0

try this:

  1. move DisplayCamera out form Canvas
  2. set the RenderTexture of DisplayCamera to a RawTexture
  3. Canvas rander the RawTexture
Anderson
  • 240
  • 1
  • 2
  • 11
  • I see only Render Texture in create, where to have RawTexture? – batuman Oct 28 '17 at 02:31
  • Now I can see the model, the only problem is I see two. What could be wrong? I put DisplayCamera out of the Canvas, but still see two. – batuman Oct 28 '17 at 02:32
  • I change one of the properties of the camera ClearFlag to solid color, now I see only one, previously it was set to Depth only – batuman Oct 28 '17 at 02:36