- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 关于Maya userSetup.py的用法.
使用Maya的userSetup文件可以在Maya启动时初始化自定义的函数.创建一个userSetup.py文件放在"F:\document\<username>\maya<Version>\scripts"下就可以.以下为测试代码:[userSetup.py]:存放在"scripts"目录下.import maya.cmds as cmds'''&g...
2019-12-01 23:31:34 2737
原创 将shader渲染后的效果渲染到纹理中
直接贴代码:using UnityEngine;using System.Collections;using System.IO;public class BakeMaterial : MonoBehaviour{ public int Size = 2048; public bool DoBake = false; private RenderTe...
2019-10-29 00:00:39 687
原创 Houdini Point偏移问问题。。。。
float _size = ch("Size");int _faces[] = {0, 1};vector _ppos[];for(int i=0; i<npoints(0); i++){ vector pos = point(0, "P", i); append(_ppos, pos);}for(int i=0; i<len(_faces); i...
2019-08-14 00:35:16 756
原创 将OBJ文件材质上的文理索引后缀从dds,tif改为tga
using System;using System.Collections.Generic;using System.IO;using System.Windows.Forms;namespace Dds2Tga{ public partial class Form : System.Windows.Forms.Form { List<...
2019-07-19 09:00:25 663
翻译 Procedural Modeling of Cities
Procedural Modeling of CitiesYoav I H Parish Pascal Müller parish@imes.mavt.ethz.ch pascal@centralpictures.com ETH Zürich, Switzerland Central Pictures, SwitzerlandABSTRACT Modeling a city poses...
2019-03-22 16:03:37 1500
原创 Unity Shader 常用 Drawer
//表示分类,不可以有中文。[Header(***)]//去掉贴图的tiling和offset参数。[NoScaleOffset] _MainTex("Main Texture", 2D)= "white"{}//枚举[Enum(UnityEngine.Rendering.CullMode)] _CullMode ("Cull Mode", Float) = 0...
2018-02-23 10:58:10 313
原创 Shader -- Cg Documentation
[ Cg 3.1 Toolkit Documentation ]Cg / Profiles / fp20 : http://http.developer.nvidia.com/Cg/fp20.htmlCg / Language / Cg_language : http://http.developer.nvidia.com/Cg/Cg_language.html
2017-04-05 10:52:56 269
原创 Unity -- Event范例
[代码]using System.Collections;using System.Collections.Generic;using UnityEngine;using System;/// <summary>/// 调用 -- 示例/// </summary>public class EventExample : MonoBehaviour{ void Start ()
2017-04-03 22:36:38 398
原创 Unity -- 正交/透视相机切换(2D/3D相机切换)
[根据类型切换相机类型]//相机类型public enum CameraType{ Orthographic, Perspective}//相机切换public void ChangeCameraType(CameraType type, Camera cam){ //切换为"正交相机". if(type == CameraType.Orthographic){
2017-04-03 16:12:28 2811
原创 Unity -- Bezier曲线(创建/编辑工具)
利用unity自带的LineRenderer组件创建/编辑曲线.[Editor – BezierEditor.cs] 文件放在”Assets/Editor”目录下.using System.Collections;using System.Collections.Generic;using UnityEditor;using UnityEngine;[CustomEditor(typeof(
2017-04-03 15:57:53 2174 2
转载 Unity -- 设置物体SelectIcon
[设置GameObject Icon – ISelectIcon.cs]using System;using System.Reflection;using UnityEditor;using UnityEngine;/// <summary>/// 对象Icon管理设置/// </summary>public class ISelectIcon{ #region 数据定义
2017-04-03 15:45:54 4073
原创 Unity -- Json文件读取
JSON官网 下载”c#/LitJSON. “, 将LitJson.dll拖到unity中”Assets/Plugins”文件夹.JSON在线编辑器 编辑/校对json文件. 感觉比较好用的一个编辑器.[测试用Json文件 – Info.json][ { "id": 0, "name": "行尸走肉", "optionArray": [ {"num": 0,"str": "shi
2017-04-03 15:40:08 5537
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人