Xna 赛车游戏在多显示器设置上或通过 C# 替代
我正在开发一款汽车游戏,其中一个人使用连接到两台投影仪的电脑上的方向盘。一台投影仪应显示前视图,另一台投影仪应显示汽车后视图。游戏的目标是将汽车停在停车位。我决定使用 XNA 和赛车游戏入门套件。我不知道如何在不同的显示器上渲染两个摄像机。
请告知如何使用代码在 XNA 中分割渲染,我希望有人有使用入门套件的经验。
PS 我会接受其他解决方案,例如 wpf3d,如果它们可以管理良好的 fps。我不需要复杂的场景。几栋建筑物。精灵背景和停在它们之间的两辆车。
tnx v.
I'm developing a car game where a person uses a wheel on a pc connected to two projectors. One projector should show the front view and the other the view from the back of the car. The object of the game is to park the car in a parking place. I decided to go with XNA and Racing game starter kit. I don't know how to render two cameras on different monitors.
Please advise how to split render in XNA with code and I hope someone out there has experience with the starter kit.
ps i would accept other solutions like wpf3d if they can manage good fps. I don't need a complex scene. A couple of buildings. Sprite background and two cars to park between them.
tnx
v.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现这个链接链接到这个.zip 。它使用带有
device.Present(window2.Handle);
的第二个 Windows 表单。如果有人需要修改赛车套件,请在 GameScreen.cs 中使用手动
present() & 。存在(句柄)
I found this link that links to this .zip . It uses a Second Windows form with
device.Present(window2.Handle);
If anybody needs to modify the racing kit it's in the GameScreen.cs where i used manual
present() & present(handle)