Animation state Synchronization in Multiplayer
hello,everyone! I am a newbie in network programming, i have learned some basic usage of network by watching M2H tutorial,such as *NetworkView,RPC* etc. Now i can synchronize the transform, script and...
View ArticleHow to save terrain data generated at runtime permanently
Hello everyone. I generate a lot of terrain at runtime from DEM, and i wanna to save them permanently, how can i realize it? Use AssetBundle or ?
View ArticleShader Blending OneMinusSrcColor etc
Hi, I am newbie in shader, and now i am learning it.I am learning the basic syntax now, and stuck in Shader Blending, i am not clear about the official document's description:...
View Articlekeystone correction/Image Effect
Hi, I want to do some keystone correction with my whole game scene,it seems that using the Image Effect (Shader) can do this.I have learned the shader basics, and know a little about the render...
View Articlewhat's the range of position's element's range after multiply UNITY_MATRIX_MVP
Hi, What's the range of the vertex position in shader after multiplying the UNITY_MATRIX_MVP I want to do some geometry operations on each vertex.And are there any good ways in debugging shader?...
View Articleprojection matrix
Hi, I want to customize camera's projectionMatrix, but i do not familiar with its operation, i just know the matrix's basic linear operations, but confused about its geometric significance, for...
View Articlesynchronization between clusters
Hi, i have a 360 degree multi-projector system. There are 8 projectors connected with 8 computers respectively within the local area network(the speed can reach kilomega).I want to sync between 8...
View ArticleHow can i sync between computers
I have a 360 degree system which composed by 8 slaves and 1 server. I want to sync between using RPC, i tried like this: void Update() { if (Network.isServer){ networkView.RPC("SendSyncPos",...
View ArticleDo i need recalculate uv coordinate after modifying mesh vertices
Hi, Do i need recalculate uv coordinate after modifying mesh vertices, i want to adjust the image's shape by modifying the mapped mesh's vertices, do i need recalculating the mesh's uv? Thanks.
View ArticleHow to synchronize animation in Unity4.x
Hi, I want to synchronize animations with networkView, i am now synchronizing the animator state using networkView.PRC function, below is the example code: [RPC] void PlayAnimation(bool play, float tm)...
View ArticlePerformance between Assigned Transform and Transform.Find("Path/Target")...
Performance between *Assigned Transform* and *Transform.Find("Path/Target")* using absolute path? Which one of them is more efficient? Example code: public class TestA : MonoBehaviour { //Transform's...
View ArticleWhat's the difference between print() and Debug.Log()
What's the difference between print() and Debug.Log() ?
View ArticleCan i Regenerate Terrain by assign terrain Data On GUI
hello, everyone. Can i Regenerate Terrain by assign terrain Data On GUI? First, i regenerate the terrain already in the scene by changing its heights. i.e by using the function SetHeights().And the...
View Articlehow to assign texture on the terrain at runtime
I wanna to change terrain's texture when i hit a GUI button.the code below seems to doesn't work at all.how can i make it work?ps:i have loaded 2 textures on the 'Paint Texture'. and i reference the...
View ArticleHow to create a Mini Map at runtime
hi, guys. I wanna to create a mini-map at runtime, and i have some points that represent the road, and when the character moves, it is reflected to the mini map, how can i realize it? using the GL...
View ArticleWhat's the difference between Normal and OnNormal in GUIStyle
Hello, everyone! I am confused about the difference between Normal and OnNormal and others like Hover and OnHover etc in GUIStyle, especially the OnNormal state, i do not know when i works. Just take...
View ArticleWhy my GL.Color doesn't work?
Hi, I wanna to draw a mini-map using the GL class, and first, i wanna to draw a semi-transparent background which is a quad and then draw some lines to represent the road in my scene.And i wanna to use...
View ArticleGUI.Window error. InvalidOperationException: Hashtable.Enumerator: snapshot...
I wanna to draw a menu. and here is the code, but i come across a problem when i hit Play,and i find the error is caused by this line of code below:GUI.Window(GlobalGUIWindowId._WND2_YXY..... ,and the...
View ArticleVery Very Big Terrain, how to show it?
Hello, everybody, i have a very very big terrain which is 5x5 Square Kilometers to show, and i set the terrain's resolution, width & length all to 1025 to adapt to the real world's terrain.I read...
View Articlehow to draw a laneway/tunnel dynamically and simulate bombed hole
hello, everyone! I wanna to draw a laneway/tunnel dynamically and then bomb it, and i also want to simulate the bomb effect, when the bomb explode, there should be a hole and some other shatters on the...
View Article