惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - steeven

Dlink dwl-122 ver c1在windows 2003下的驱动安装 利用工作流给Windows SharePoint Service 3.0添加Skype通知功能 - steeven windows sharepoint service 3.0 wss3 URL 映射问题,差点把网站废掉 替朋友发布一下:招聘java开发人员 YY一下IT业的未来 c盘不够用了怎么办?目录连接,简单扩充 wpf中显示HTML - steeven - 博客园 编程查看对象的xaml c#语法里面应该加上对属性的reflection引用 WPF应用程序模型 wpf印象 wpf的一些小demo (links) - steeven wpf的3d遗憾 WPF写的Guess Number 比较简洁的Singleton Proces(唯一进程)程序 Windows维修 在虚拟机下体验ubuntu(有奔头) vs2005 Click Once程序在Jsp虚拟主机上发布,不能安装问题 C#版的2006新春祝福 - steeven - 博客园
wpf 3d笔记1
steeven · 2006-06-07 · via 博客园 - steeven

3d对象被映射到2d,容器:viewport3D。
3d对象通过viewport3d容器可以和普通控件共存,而普通对象不能进入viewport3d.

3d坐标y朝上, z朝用户,2dy朝下。
相机(用户视角):
1. PerspectiveCamera 正常相机 OrthographicCamera(没远近相机?)
1. 一个Position和一个LookDirection点决定方向, FieldOfView仰角
2. NearPlaneDistance/

FarPlaneDistance

决定取景范围, 太近和太远的物体被忽略

GeometryModel3D:几何模型

Positions: 顶点描述 描述模型所有的点
TriangleIndices: 三角形顶点索引。(哪些点组成一个小的三角形,索引为Positions的索引)
Normals:
TextureCoordinates:

材料:
DiffuseMaterial : 有颜色,不反光
SpecularMaterial:镜面,反光,不发光。SpecularPower反光强度
EmissiveMaterial: 发光。

灯光:(属于Model3D对象,可以动画,改变位置、颜色、方向等)
AmbientLight: 环境光线。均匀照亮每个角落
DirectionalLight: 平行面光源,只有Direction属性。
PointLight: 点光源,有位置,无方向,可定义衰减。
SpotLight: 锥光源,继承于点光源。

InnerConeAngle/OuterConeAngle

概念和directx一致,以前看过mdx,虽说是managed, api基本上是原来的照搬,很多概念看的一头雾水。coding起来也费时费力。wpf里面简化了很多。