Kit 3D 更新

Kit3D是一款专为Microsoft Silverlight设计的3D图形引擎,最初为Silverlight 1.0使用JavaScript开发,现已更新至Silverlight 2版本,并采用C#语言重写。新版本中的类模仿了WPF3D中的类型,位于System.Windows.Media.Media3D命名空间内。使用Kit3D开发的应用程序与WPF3D的内容几乎相同。此外,该版本还新增了HitTesting功能,使得与3D场景交互成为可能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Kit3D is a 3D graphics engine written for Microsoft Silverlight. Kit3D was initally released in a JavaScript format to run with Silverlight 1.0, now there is a new release which is written for the upcoming Silverlight 2 release. The new version of the engine is written in C# and the classes now model the WPF3D types which are found in the System.Windows.Media.Media3D namespace. Applications written using Kit3D will look nearly identical to code written to produce WPF3D content.

Kit3D 是一个silverlight中3D引擎.其第一个版本是用js为sl1.0开发的.现在的这个版本是为sl 2用C#开发.其中的类是用WPF3D中的类型. 其命名空间在System.Windows.Media.Media3D下. 使用Kit3D做的程序几乎和在WPF3D中做的一样. ;)

UPDATES

4/24/2008: Added HitTesting, this means it is now possible to interact with a 3D scene. There is a new class, Kit3D.Windows.Media.VisualTreeHelper object that has a HitTest method, just like in WPF. For more information on how to use this class look on MSDN. For an example see Hit Testing Example if you mouse down on the torus and move the mouse left/right the picture will rotate. The code is checked into http://www.codeplex.com/kit3d

EXAMPLES

The following demos were all written in C# and taken mainly from existing examples using WPF3D syntax, in order to run these samples you will need to install the Silverlight Beta2 install, which can be found at: http://www.microsoft.com/silverlight/resources/install.aspx?v=2.0


This sample was converted from Charles Petzold's 3D Programming for Windows book (really awesome book) www.charlespetzold.com
Sphere

This sample was converted from Charles Petzold's 3D Programming for Windows book (really awesome book) www.charlespetzold.com
Dodecahedron

An example of texture mapping
Texture Example

A tiger created with solid polygons
Solid Tiger

This sample was converted from Charles Petzold's 3D Programming for Windows book (really awesome book) www.charlespetzold.com
Solar System

This sample was based on an excellent set of WPF tutorials at http://blogs.inetium.com/blogs/mhodnick/archive/2006/03/30/34.aspx
Rotating Cubes



The following demos were written using the Javascript version of the engine and work on 1.0 versions of Silverlight and above: To see some demos, you can click on the following links (in order for the demos to work you will need to download and install Silverlight 1.0 from Microsoft [ http://www.microsoft.com/Silverlight/]):

Spinning cubes with solid faces

Spinning cubes with texture mapped faces

Spinning playing cards with texture mapped faces

3D Picture Grid
.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值