3

I want to display multiple projection of an object on the same screen. The projection should also change as the body rotates, kind of a dynamic projection of the body.

I am trying to make a character for pyramid hologram (as it has been named) which needs the projections.

Here is an example found on the Internet:

Example

(Image source)

honey
  • 43
  • 3

1 Answers1

1

One blunt way to do this in Unity is to set up 4 cameras surrounding your object with your desired size/field of view/etc.

In your Assets folder (or a suitable subfolder), create 4 RenderTextures for the 4 views. Assign each camera's Target Texture to one of the RenderTextures.

Now drag the 4 RenderTextures into your scene and arrange them into the pattern you want the displayed on the screen. Add a 5th camera to frame & capture this layout, setting this camera's depth to render after the other 4.

You can also skip the RenderTextures and simply have each camera render straight to the framebuffer, using the Viewport Rect properties to control which part of the screen each one renders in, and rotating the cameras themselves to orient each view of the object.

Here's a quick example of this method: Unity Scene with pyramid rendering setup

Here I still have one extra camera, rendering before all the others to clear the background to black.

DMGregory
  • 134,153
  • 22
  • 242
  • 357
  • I am new to the unity but after following some tutorials I was able to figure out the Viewport Rect method.

    I also have to make the projections dynamic meaning I have to change the projection on the basis of orientation of the tracking pad. For that I am using the Vuforia plugin (AR Camera plugin). Can you help me with that?

    Also, I am could not understand the RenderTextures method. Can you please elaborate? Or post some helpful links?

    – honey May 06 '16 at 17:45
  • It sounds like you have additional questions. Please feel free to create a new Question post — you'll have more room to explain your use case and include example images/video that way than in a cramped comment thread, and it makes it more searchable for those who have similar questions in future. – DMGregory May 06 '16 at 18:08