x


Problem with creating skyboxes

Ive added skyboxes to main camera and assigned a material on it.

But when I look in the sky its going crazy, blinking, flickering, ...

Is it possible to make a fbx objekt as skybox?

Thank you

more ▼

asked Mar 21 '10 at 12:36 AM

Tobias gravatar image

Tobias
378 50 54 66

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

There are a few ways to implement a custom skybox. I'll focus on 2 of them that I have used:

If you play around in other engines, like Unreal/UDK for example you will see that their skyboxes are just a huge dome that exists so far from the playable area of the level that the user will never be able to interact with it.

Another way of implementing a custom skybox is with a 2 camera setup. You import your skybox game object and assign it to a layer of it's own ie [Skybox].

You create a camera with a depth of 0 and tell it to only render the layer skybox.

Then your camera at depth 1 will be your Main Camera, and it renders everything else but your skybox and has a Clear Flag of Depth Only.

Now if you test your level as is you will notice that if your Main Camera moves your skybox is not tracking along with your cam. You will need to attach a script to your skybox cam which copies the rotation of your Main Camera every frame. This will simulate everything being rendered with the same camera.

Hope that helps,

==

more ▼

answered Jun 28 '10 at 04:38 PM

equalsequals gravatar image

equalsequals
4.5k 16 28 64

(comments are locked)
10|3000 characters needed characters left

Is not possible to make a fbx object as a skybox, skybox are textures that are not possible to reach why would you want to have a FBX? probably I dont understand pretty well.

Can you give us more information about that "Blinking, flickering stuff?"

maybe you can record it and show us using Jing http://www.jingproject.com/

more ▼

answered Mar 22 '10 at 11:25 AM

naruse gravatar image

naruse
361 3 6 13

first, thanks for you reply.

Do you know world of warcraft? They are using m2 models (same as monsters, buildings,..) for animated skyboxes. So I was thinking that unity3d can do the same with fbx models.

I've fixed the blinking stuff, I just deleted the FPS camera (not the first person camera) from the island demo. Every time I was moving, the skybox was showing me the view of the FPS camera.

Really dont know why, but ok^^

Mar 22 '10 at 04:59 PM Tobias

Actually, you can make custom skyboxes. They won't be the out-of-the-box skybox that is bundled in Unity by default but it can be done.

Jun 28 '10 at 04:17 PM equalsequals
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x162

asked: Mar 21 '10 at 12:36 AM

Seen: 3012 times

Last Updated: Mar 21 '10 at 12:36 AM