Wednesday, January 19, 2011

Advocating "object-oriented programming" is like advocating "pants-oriented clothing"; it elevates one architectural model to an overimportant position.
Steve Yegge

Monday, January 17, 2011

Unity3D Tip: Fixing Skybox Textures

A skybox/skydome is a method of creating backgrounds to make computer and video games level look bigger than they really are. When a skybox is used, the level is enclosed in a cube/sphere, and the sky, distant mountains, distant buildings, and other unreachable objects are projected onto the cube's/sphere's surface. Wikipedia

I was recently working on creating a skybox for a demo level in Unity3D. I had all the textures (Front,Back,Left,Right,etc...) properly cut out and everything, but every single time I ran the level, the skybox looked patched, as if there was a seam between any two texture tiles. I think that it is a pretty common problem with newbies, and the solution is pretty simple. When all the textures that are going to be on the skybox are referenced in the project, one has to manually go through each one, and change its "wrap" property to "Clamp"

The general info on how to deal with skyboxes, can be found in the Unity3D FAQ, where I found the answer.

That's it. Pretty simple, yet bugging.