Render a distant object

Hi,

I want to have an object which is alway visible. If you can imagine a huge tower in the distance, which sits behind the terrain, or perhaps a large planet in a space game. I'm trying to figure out how I would go about telling Unity to always render that object, even if it sits outside the clipping distance.

Any help would be appreciated, thanks.

The most economical way of doing this would be to make the tower part of your skybox, (assuming you are working on a 3D game with a Skybox.)

Skybox's are not a good solution for mobile devices however as they use up several draw calls. More on skyboxes here: http://unity3d.com/support/documentation/Components/class-Skybox.html

If you need a 3D object, you can create a duplicate camera that sits as a child of your main camera. Allow this camera to have a much longer Clipping Plane, but this camera will only render the layer your tower is sitting on. This should work depending on how your game world is setup. (In my head right now I am imagining a side-scrolling 2.5D type game.)

Oh, and to get this multi-camera setup to work, you need to have the Depth adjusted correctly. More on this layered camera work here (it's vital for a lot of typical 3D game effects.):

http://unity3d.com/support/documentation/Components/Layers.html http://unity3d.com/support/documentation/Components/class-Camera.html