ソフトイマージュ2007年04月26日 01:31

SOFTIMAGE|XSI Mod Tool 4.2 - A Free Games Tool!
をインストールしてみました。
DesignはVeryGoodですね!

xna game studio 動かない2007年04月20日 20:29

今日は、とある学生君がC#ExpressとXna Game Studio
をインストールして、xnaのbmp表示サンプルを
C#で、起動したらつぎのようなメッセージがでました。

日本語
DirectX9のドライバーを持っていて
かつpixelシェーダー1.1以上をサポートしている
Direct3Dデバイスがみつからない

英語
Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater.

解決策 MSDN Xna Frame Workから
Hi.

I'm running windows on a virtual machine on a intel Mac. As of now, there's now hardware D3D support from virtual machine manufacturer (Parallels). So, I'm forced to use reference rasterizer. Now, on a "normal" D3D, I know how to setup a device as a rasterizer device. On XNA framework (beta 2), I don't know how to do it.

For one sample somewhere I got the idea of inheriting a new class ReferenceGraphicsDeviceManager from GraphicsDeviceManager, overriding RankDevices() and FindBestDevice() -methods and then basically stating the following inside FindBestDevice-block:

ここより下の関数をオーバーライドします。
デバイスタイプをHardwareでなしに、
Referenceタイプを選びます。
初期化のところで、よびだします。

protected override GraphicsDeviceInformation FindBestDevice(bool anySuitableDevice)
{
GraphicsDeviceInformation deviceInformation = new GraphicsDeviceInformation();
deviceInformation = base.FindBestDevice(anySuitableDevice);
deviceInformation.DeviceType = Microsoft.Xna.Framework.Graphics.DeviceType.Reference;
deviceInformation.CreationOptions = Microsoft.Xna.Framework.Graphics.CreateOptions.SoftwareVertexProcessing;

return deviceInformation;
}