登录
首页 » C# » Unity mesh网格编程 —— 正二十面体

Unity mesh网格编程 —— 正二十面体

于 2023-01-07 发布 文件大小:1.22 kB
0 185
下载积分: 2 下载次数: 1

代码说明:

资源描述 Mesh网格编程步骤: 一:确定数量      确定该几何图形应有多少个三角形面,顶点坐标、顶点序列、UV贴图、法线向量皆为三角形面数的三倍。 二:根据三角形面确定顶点坐标      这里我习惯把一个面的顶点确定好之后再去找下一个面,这样做可以是法线和顶点序列确定起来很容易。但是要注意的是在确定顶点时要按照顺时针顺序确定,否则会导致三角形面相反。 三:确定法线      法线大致分为两种:      其一是棱角分明的几何体,这种几何体的法线可以用确定好的顶点坐标两两相减,得到的向量做叉乘并赋值给三个顶点上的法线。      其二是圆滑的几何体,这种几何体需要求出该点在曲面上的切线,从而确定垂直于切线的法线。如果是圆形。可以使用顶点减圆心所得的向量。      此外,求得的法线尽量单位化,否则可能出现一个面上的颜色不同。 四:确定顶点序列      若三角形顶点按照面数去确定,顶点序列就会变得非常简单,按顺序赋值即可。 五:确定UV贴图      根据所做几何体的不同,贴图左边也会有所改变,并不固定。 六:创建网格

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • beep
    用beep蜂鸣器写的婚礼进行曲,循环播放》。(music from beep )
    2009-02-12 11:58:14下载
    积分:1
  • EasySizeHD2
    可缩放的界面编程 通过方便的宏来进行 并且内部控件也能自动调整大小(Scalable programming through a user-friendly interface to the macro and internal controls can also automatically adjust the size of)
    2009-04-15 17:53:41下载
    积分:1
  • 1-5V转4-20mA
    标准接口1-5V转换成4-20mA程序,应用于标准传感器接入(Standard Interface 1-5V Converting 4-20mA Program for Standard Sensor Access)
    2020-06-22 13:40:02下载
    积分:1
  • MidWay
    是用于java文件安装手机用到的希望大家能用到 (installing phones use the hope that everyone can be.)
    2006-07-24 18:26:53下载
    积分:1
  • 实现智能家居基本控制
    可实现智能家居基本控制,灯、热水器、语音识别(It can realize basic control of smart home, lamp, water heater and speech recognition.)
    2020-06-20 02:40:02下载
    积分:1
  • atm-C_
    ATM界面和基本功能!自带界面和说明,简单易懂。(ATM interface and basic functions!it has a good windows screen.easy to understand!)
    2011-06-10 13:54:08下载
    积分:1
  • homework
    利用栈求表达式的值,可供小学生作业,并能给出分数。(要求:建立试题库文件,随机产生n个题目;题目涉及加减乘除,带括弧的混合运算;随时可以退出;保留历史分数,能回顾历史,给出与历史分数比较后的评价。)(Use of the stack to evaluate the expression, for primary operations, and can give the scores. (Requirements: Create test database files, randomly generating n topics topics involving addition, subtraction, mixed with the parentheses operator ready to quit retain historical scores, can look back at history, given scores compared with the historical evaluation.))
    2020-12-29 20:09:00下载
    积分:1
  • armtest
    说明:  本次测评为素质类测评,是简历评估时重要参考维度之一,请亲务必在失效前按照个人真实情况完成作答(which make it possible to edit as vi/vim in notepad++. ViSimulator simulates/emulates most frequently-used vi/vim commands to provide more powerful editing capability for)
    2020-06-16 14:00:01下载
    积分:1
  • world
    openGL做的仓库漫游,内有3Dmax的模型,灯光,透明等效果。是当时的openGL课程设计。(OpenGL do warehouse roaming, there are 3Dmax model, lighting, transparency and effect. It was the openGL course design. )
    2020-08-31 16:58:09下载
    积分:1
  • OSLab-
    操作系统课程设计。visual studio 2010,2008上的模拟UNIX文件系统的c++源码,附加实验报告和readmefile(1.Simulate a Unix file system on your Windows Platform 2.Understand the file system on Unix system, and the usage of i-nodes 3.Implement the function of sub-directory 4.The task needs to be completed using C++ or C 5.Allocate 16MB space in memory as the storage for your file system, the space is divided as blocks with block size 1KB 6.The i-node should support up to 10 direct block addresses, and should support at least one indirect block address )
    2020-10-12 22:37:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载