上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 30 下一页
摘要: showClass <pattern_string> [ to:<stream> ]showProperties <maxwrapper_object> [ <property_pattern> ] [ to:<stream> ]getProperty <obj> <property_name>setProperty <obj> <property_name> <value>getPropertyController <value> <string_or_n 阅读全文
posted @ 2011-10-19 16:45 softimagewht 阅读(1044) 评论(0) 推荐(0)
摘要: Parallax occlusion Mapping 视差贴图 视差贴图技术我们其实应该称之为视差遮蔽贴图技术,因为在这一技术中,会对纹理的坐标做变换,一些凸出的纹理会遮蔽到其他的纹理,这样就会看起来具备更好的凹凸的感觉了。视差贴图技术的实现原理,其实和法线贴图是一样的,都是根据法线贴图进行的处理。视差贴图比法线贴图提供更好的视觉效果,而且跟法线贴图有同一个目的:在保证模型细节的情况下,大幅度降低场景的多边形数目Parallax occlusion Mapping 视差贴图 (PDF文件)http://rapidshare.com/files/2485 ... ionMapping.rar.h 阅读全文
posted @ 2011-10-10 23:04 softimagewht 阅读(176) 评论(0) 推荐(0)
摘要: b = Box lengthsegs:1 widthsegs:1 heightsegs:1 length:65.7611 width:32.0211 height:39.8261 pos:[-15.6972,-84.9615,0] isSelected:onb.pos.controller = position_list ()b.pos.controller.Available.controller = Position_XYZ ()b.pos.controller.Available.controller = tcb_position ()b.pos.controller.Available 阅读全文
posted @ 2011-10-05 14:23 softimagewht 阅读(349) 评论(0) 推荐(0)
摘要: [ in ] coordsys worldUse the world space coordinate system[ in ] coordsys localUse the object's local coordinate system[ in ] coordsys parentUse the object's parent's coordinate system[ in ] coordsys gridUse the active grid’s coordinate system[ in ] coordsys screenUse the currently activ 阅读全文
posted @ 2011-10-04 12:03 softimagewht 阅读(290) 评论(0) 推荐(0)
摘要: 使用csc命令将.cs文件编译成.dll的过程很多时候,我们需要将.cs文件单独编译成.dll文件, 操作如下:打开命令窗口->输入cmd到控制台->cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322转到vs.net安装的该目录下->执行csc命令csc /target:library File.cs->在该目录下产生一个对应名字的.dll文件(前提:把.cs文件放到C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322目录下)csc命令的方式很多,请参考以下译 File.cs 以产生 Fil 阅读全文
posted @ 2011-09-30 20:47 softimagewht 阅读(372) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnostics;namespace WindowsFormsApplication4{ public partial class Form1 : Form { public Form1() { Initialize 阅读全文
posted @ 2011-09-29 19:58 softimagewht 阅读(195) 评论(0) 推荐(0)
摘要: // Detects manually if anObject is being seen by the main cameravar anObject : GameObject;private var cam : Camera;private var planes : Plane[];function Start() {cam = Camera.main;planes = GeometryUtility.CalculateFrustumPlanes(cam);}function Update() {if(GeometryUtility.TestPlanesAABB(planes,anObje 阅读全文
posted @ 2011-09-24 20:58 softimagewht 阅读(190) 评论(0) 推荐(0)
摘要: var selectHero : GameObject;function Update () { if(selectHero){ var dist = Vector3.Distance(selectHero.transform.position, transform.position);var direction:Vector3=selectHero.transform.position - transform.position; if(dist<10){ var selectHeroLocalPosition : Vector3 = selectHero.transform.Trans 阅读全文
posted @ 2011-09-16 15:38 softimagewht 阅读(426) 评论(2) 推荐(0)
摘要: //做宽屏遮挡的代码var aTexture : Texture;//指定一张黑色贴图function OnGUI() {if(!aTexture){Debug.LogError("Assign a Texture in the inspector.");return;}GUI.DrawTexture(Rect(0,0,Screen.width,Screen.height/6), aTexture, ScaleMode.StretchToFill, true, 10.0f);GUI.DrawTexture(Rect(0,Screen.height*5/6,Screen.wi 阅读全文
posted @ 2011-09-16 11:50 softimagewht 阅读(256) 评论(0) 推荐(0)
摘要: // Per pixel bumped refraction.// Uses a normal map to distort the image behind, and// an additional texture to tint the color.Shader "HeatDistort" {Properties {_BumpAmt ("Distortion", range (0,128)) = 10_MainTex ("Tint Color (RGB)", 2D) = "white" {}_BumpMap ( 阅读全文
posted @ 2011-09-10 15:50 softimagewht 阅读(4073) 评论(1) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 30 下一页