原创 PNG Messy Alpha Problem - White Around Edges

The reason for this is due to how the texture image was authored, combined with the filtering that most 3d engines use

原创 Static Batching Breaking Problem

Symptoms My scene contains a group of static Mesh Renderers and a dynamic/ non-static Mesh Renderer. For some reason, t

原创 Unity destructor Or OnDestory

In 99% of all cases you don't want to use a destructor (finalizer) at all: http://stackoverflow.com/questions/3649066

原创 UIToggle修改狀態無效的原因及解決辦法[NGUI]

場景:當一個UItoggle的狀態發生變化時,動態修改另外一個UItoggle的狀態無效。(NGUI版本:3.8.0) 原因:因爲NGUI的UIToggle處理機制(或者說BUG),如法在UItoggle變化的同一幀設置另外的UItogg

原创 Extension Methods - C#

Oftentimes you’ll find yourself using classes you can’t modify. Whether th

原创 Measuring Performance with the Built-in Profiler[Unity]

Unity iOS and Android contain a built in profiler. The built-in profiler emits console messages from the game runn

原创 Rectangle Bin Packing

1、From:http://www.blackpawn.com/texts/lightmaps/default.html Pop Quiz: You have 765,618 lightmaps for a scene and ve

原创 Photoshop中PNG轉TGA的方法

Photoshop中PNG轉TGA的方法(也可以用來查看單獨的RGB通道(不透明顯示)) 1、Layer->Layer Mask->From Transparency 2、Shift-click禁用Mask可以在Photoshop中預覽不

原创 Feeding a physically based shading model

Physically based rendering (PBR) require to use physical lighting setup and good spatially varying BRDF inputs (a.k.a t

原创 Albedo chart

General PBR info Physically based rendering (PBR) is a subset of computer-generated imagery that aims at production of

原创 UNITY EDITOR EXTENSIONS – MENU ITEMS[詳]

From:https://unity3d.com/cn/learn/tutorials/modules/intermediate/editor/menu-items The Unity editor allows adding cu

原创 Unity DEBUG DLL(C#)

Many people are writing reusable code components in external DLL files, and deploy them in their Unity project. Using

原创 Hide Warn Global In Unity

Sometime, The warn info are turn into error msg in unity's console, Although we can find the error msg in the end of ms

原创 Pixel gap / lines that appear at the edges of sprites[NGUI]

If you use texture compression, that will cause bleeding problems. And texture filtering mode is an another culprit. 

原创 Making AI Fun: When Good Enough is Good Enough

Making good artificial intelligence for computer opponents is difficult. Programming a game like draughts isn't terrib