2014年6月16日

关于Unity 获得和使用GetComponent<MeshFilter>().mesh时的心得

摘要: 原文地址:http://blog.sina.com.cn/s/blog_7d9405e50100s061.html今天在使用Unity3D的时候遇到了一个问题:_tesGameObject是在Project中的一个Prefab。 public GameObject _testGameObject;... 阅读全文

posted @ 2014-06-16 19:07 c_dragon 阅读(6743) 评论(0) 推荐(0) 编辑

2014年6月12日

u3d change terrain textrue&height

摘要: using UnityEngine;using System.Collections;public class terrainTest : MonoBehaviour{ public int terrainDeformationTextureNum = 1; private Terrai... 阅读全文

posted @ 2014-06-12 17:06 c_dragon 阅读(859) 评论(0) 推荐(0) 编辑

2014年6月8日

opengl 裁剪平面

摘要: 原帖地址:http://blog.sina.com.cn/s/blog_5ff6097b0100xqvr.htmlvoidglClipPlane(GLenumplane,constGLdouble*equation); 定义一个裁剪平面。equation参数指向平面方程Ax + By + Cz + ... 阅读全文

posted @ 2014-06-08 15:51 c_dragon 阅读(3534) 评论(0) 推荐(0) 编辑

2014年6月3日

u3d发布成全屏的方式

摘要: using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {Screen.SetResolution(1024, 768, true);//自己想要的分辨率... 阅读全文

posted @ 2014-06-03 13:51 c_dragon 阅读(1946) 评论(0) 推荐(0) 编辑

2014年5月30日

u3d读取xml txt

摘要: u3d读取xml文件和u3d 读取txt外部文件 using UnityEngine;using System.Collections;using System.Xml;using System.Xml.Serialization;using System.IO;using System.Text; 阅读全文

posted @ 2014-05-30 14:21 c_dragon 阅读(1830) 评论(1) 推荐(0) 编辑

opengl 模板测试 glStencilOp glStencilFunc

摘要: 下面来设置蒙板缓存和蒙板测试。 首先我们启用蒙板测试,这样就可以修改蒙板缓存中的值。下面我们来解释蒙板测试函数的含义: 当你使用glEnable(GL_STENCIL_TEST)启用蒙板测试之后,蒙板函数用于确定一个颜色片段是应该丢弃还是保留(被绘制)。蒙板缓存区中的值与... 阅读全文

posted @ 2014-05-30 09:16 c_dragon 阅读(7533) 评论(0) 推荐(0) 编辑

2014年5月28日

OpenGL模板缓冲区与模板测试

摘要: 原文地址:http://www.blogjava.net/qileilove/archive/2014/01/23/409269.html帧缓冲区有许多缓冲区构成,这些缓冲区大致分为: 颜色缓冲区:用于绘图的缓冲区,它包含了颜色索引或者RGBA颜色数据。 深度缓冲区:存储每个像素的深度值,当启动... 阅读全文

posted @ 2014-05-28 20:02 c_dragon 阅读(4455) 评论(0) 推荐(0) 编辑

2014年5月27日

u3d调用c++ dll的DllNotFoundExceion 问题

摘要: 原文地址:http://blog.csdn.net/boren31/article/details/8778504 问题年年有,今年特别多。 开发环境: Windows XP sp3 Visual C# 2010 Visual C++ 2008 (dll) 程序是用C#编写的; dll供应商给的... 阅读全文

posted @ 2014-05-27 09:35 c_dragon 阅读(1521) 评论(2) 推荐(0) 编辑

2014年5月26日

u3d调用自己的dll

摘要: 原文地址:http://blog.sina.com.cn/s/blog_62f7cb730100zhhf.html首先用vc建立一个dll工程然后在里面建立一个testunity.h文件。内容如下1extern "C" int_declspec(dllexport)testunity();保存,ok... 阅读全文

posted @ 2014-05-26 11:43 c_dragon 阅读(1213) 评论(0) 推荐(0) 编辑

2014年5月16日

Sqrt算法

摘要: 转自原文:http://www.cnblogs.com/pkuoliver/archive/2010/10/06/sotry-about-sqrt.html一个Sqrt函数引发的血案 2010-10-06 17:13 by 码农1946, 44943 阅读, 51 评论, 收藏, 编辑源码下载地址... 阅读全文

posted @ 2014-05-16 14:44 c_dragon 阅读(823) 评论(0) 推荐(1) 编辑

导航