How to Develop Ghost Games

by 2DG in Craft > Digital Graphics

980 Views, 19 Favorites, 0 Comments

How to Develop Ghost Games

Unity 3D: Peppers Ghost Video Game Demo

Have you ever seen a ghost?

Don't be scared! You won't be interacting with real ghost. I don't think?


What you need:

Free cop of Unity 3d.

A 2DG-Host.

Note: This instructable assumes you know the basics of Unity 3d.

Part I: the WormHole Camera Setup.

first.png

Two camera are better than One. So first, Create Two Cameras and re-name them to foregroundCamera and backgroundCamera.

3.png
2.png

Next, you should Split the game screen for each camera by adjusting their values in the Viewport Rect.

4.png

Then, you should Rotate both cameras 180 on the Z Axis. (This will flip the cameras upside down.)

5.png

Finally, change the foregroundCamera

Clear Flags to Solid Color

And Background to Black.

Part Two: the WormHole Effect.

nearfar.png

The Wormhole effect is achieved by limiting how Near or how Far a camera is allowed to see. If you give the exact value to foregroundCamera Far and backgroundCamera Near, the two cameras will create a meeting point that allows objects to travel seamlessly between cameras, thus Display Screen.

The Wormhole Secret.

8.png
9.png

Simply adjust the Clipping Plane Values inside both cameras.

(This value will depend on the location you want to create a wormhole.)

Part III: Third Eye

10.png

After pressing play you might have noticed an ugly break in the middle of the game floor.

One solution for a solid floor is to use a Third Camera. The Third Eye.

First, Duplicate the background and rename it to thirdEye. (Optional name.)

11.png

Next, Create a New Layer called Floor.

12.png

Change the Floor Game Object to have the Floor Layer.

13.png

Also, change the Culling Mask on the thirdEye Camera to only see the Floor.

14.png

Now you should adjust Clipping Planes as shown.

Remember to change Depth to -1. This will place the floor behind everything in the scene.

(This will allow you to see the entire floor instead of splitting it.)

15.png

Also, you should Remove Floor from Culling Mask in both backgroundCamera and foregroundCamera.

16.png

The final step is to change the backgroundCamera Clear Flags: Depth Only.

17.png

Your Game Tab Window should look similar to this.

That’s it for this tutorial!

Press Play!

I cant wait to see what you guys develop using my techniques!

Stay Spooky.

Additional Info: the Darkest Place in the Universe

color.gif
bw.png

Ghosts like to hide in the shadows. You need to understand a couple laws to properly summon a visible ghost in your games.

Digital Black Holes

It appears that the spirit realm has no detectable features; it is pure darkness there, making it impossible to observe Ghosts without a light source.


Color Laws

Black does not reflect light. So will not project onto the 2dg-host screens. Keep this in mind when making game art.

White should give you Solid Ghosts.

Colors will summon Translucent Ghosts.

Notice that when two translucent ghosts over lapping each other, combined they make another color. : )
The 2DG-Host a great color demonstration device if needed one.