简体   繁体   English

如何使用XNA在C#中创建图像轮播?

[英]How can I create an image carousel in c# using xna?

I am looking to create a 3D image carousel using the xna game studio. 我希望使用xna游戏工作室创建3D图像轮播。 I cant find any relevant tutorials on the matter. 我找不到与此有关的任何教程。 Flash or silverlight are recommended but our entire project is being developed in c# using xna! 建议使用Flash或Silverlight,但我们的整个项目都使用xna在c#中开发! Any help is much appreciated! 任何帮助深表感谢!

You're asking how to create a very complex user control. 您在问如何创建一个非常复杂的用户控件。 We can't tell you how to do this. 我们无法告诉您如何执行此操作。

How I would go about this is I'd study the free WPF/silverlight versions out there (I'm familiar with WPF so I wouldn't bother with flash versions), then try to apply that in XNA. 我将如何解决这个问题,我将在那里研究免费的WPF / silverlight版本(我熟悉WPF,所以我不会理会Flash版本),然后尝试在XNA中应用它。 Obviously I'd have to use controls available within XNA. 显然,我必须使用XNA中可用的控件。 So I'd have to sit down and learn D3D, as I'd probably have to use that to implement the visual aspects of the control. 因此,我不得不坐下来学习D3D,因为我可能不得不使用它来实现控件的可视化方面。

The main ingredients off the top of my head: 我的头顶上的主要成分:

  • create a mesh of surfaces representing the images, textured with the actual images 创建代表图像的表面网格,并用实际图像进行纹理处理
  • add lighting to the scene 为场景添加照明
  • hook up input ( mouse, Xbox controller, whatever) in order to rotate the 3D scene 连接输入(鼠标,Xbox控制器等)以旋转3D场景

You should find good tutorials on all these topics around the net. 您应该在网上找到有关所有这些主题的优秀教程。 I can recommend Ziggyware as a starting point. 我可以推荐Ziggyware作为起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM