QQ聊天
上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 一切源自于一个ppt http://pan.baidu.com/s/1kT8x2V9看到这个ppt之前,其实自己也想过将Max当中的一些约束移植到游戏中,一方面是那时候能力不足,另一方面还是自己不那么想做,没有追求极限的精神。翻译这个ppt的时候,其实也萌发了操作一下的念头,也一直拖到现在。决定无论如何这个周末都要开始搞了。打算每周写一部分,引擎就用unity,第一步先在Max中使用脚本控制器粗略实现约束,然后在unity的脚本中实现一下,先是继承MonoBehaviour,写在LateUpdate方法中。第二步就是正式从Max中导出配置,然后unity里解析;此时就不能是继承monoBeha 阅读全文
posted @ 2014-03-07 16:23 SITT 阅读(587) 评论(3) 推荐(0) 编辑
摘要: 前阵子跟人聊天,聊起过去试验的车漆,不适合做到移动设备上。过去试验的车漆在此http://www.cnblogs.com/sitt/archive/2012/03/28/2420595.html于是想了一下,过去的方式就是菲涅尔来控制衰减和颜色变化,可以用litSphere的方式来简化。litSphere其实就是用模型的法线当作UV在一张图上取色,效果见下图。只使用了一张贴图,就是最下方的这种,和三个模型对应,实际制作的话还要自己去想办法配合漫反射贴图。这种图的制作方式随意,可以用photoshop直接画也可以max调个材质球输出,也可以渲染。其实这个方式也可以做简化的反射贴图之类的。运行效率 阅读全文
posted @ 2014-03-02 12:54 SITT 阅读(749) 评论(2) 推荐(0) 编辑
摘要: 自己写个随机数生成器有些好处,比如可以保证跨了语言都可以获得同样结果。于是查了一下资料,做了一个简单一些的实现,此处用的float,正常情况一般应该用double。using System;public class RandomGenerator{ int seed; int num1; int num2; public RandomGenerator() : this(DateTime.Now.Millisecond) { } public RandomGenerator(int argSeed) : this(argSeed,123456,789) { ... 阅读全文
posted @ 2014-01-01 22:24 SITT 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 出于强迫症,我查了一下文档弄明白了WPF脱离xaml应该怎么搞。当然其实本质是为了MaxScript里使用做准备。using System;using System.Windows;using System.Windows.Controls;using System.Windows.Input;namespace SimpleWPF{ public static class Program { [STAThread] public static void Main() { Window theWindow = new ... 阅读全文
posted @ 2013-12-26 08:02 SITT 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 之前的博客的文章,贴过来了。PhotoshopCS开始增加了脚本。Photoshop的脚本可以用JavaScript,AppleScript以及VbScript和visualBasic。其中AppleScript只能用于苹果操作系统,VB又只能用于Windows所以我选择用JavaScript.关于JavaScript可以参考这个网址 http://www.w3school.com.cn/js/index.aspPhotoshopCS4的脚本手册中则推荐了几本书,其中一本是 《JavaScript: The Definitive Guide》中文版为JavaScript权威指南在Windows 阅读全文
posted @ 2013-11-22 18:45 SITT 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: 也是帮网友写的。不过最后没用上。哈哈。targetPF = $startTime = AnimationRange.Start.FrameendTime = AnimationRange.End.FrameparticlesCount = targetPF.numParticlesGenerated() particleMeshs = #()particleMeshs[particlesCount] = undefinedfor timeIndex = startTime to endTime do( SliderTime = timeIndex for particID = 1 ... 阅读全文
posted @ 2013-11-08 21:45 SITT 阅读(648) 评论(0) 推荐(0) 编辑
摘要: http://files.cnblogs.com/sitt/NodeView.zip 阅读全文
posted @ 2013-09-01 13:12 SITT 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 看到有网友需要写的,其实镜像就是缩放改为负数Fn MirrorObject argObjects argAxisName =( local axisNames = #(#x,#y,#z) if FindItem axisNames argAxisName == 0 do ( throw "the second parameter error !!! -- valid values:#x,#y,#z" ) local mirrorMatrix = matrix3 1 if argAxisName == #x do mirrorMatri... 阅读全文
posted @ 2013-08-29 23:05 SITT 阅读(1201) 评论(1) 推荐(0) 编辑
摘要: C:\Windows\System32\drivers\etc\hosts74.125.237.1 dl-ssl.google.com 阅读全文
posted @ 2013-08-02 19:40 SITT 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Fn SmtpSendMail argSmtpAddress argSenderAddress argSenderPassword argTargetAddress argTitle argMessage = ( tempSmtpClient = DotNetObject "System.Net.Mail.SmtpClient" argSmtpAddress tempSmtpClient.UseDefaultCredentials = false tempSmtpClient.Credentials = DotNetObject "System.Net.Netwo 阅读全文
posted @ 2013-07-24 11:57 SITT 阅读(934) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页
QQ聊天