4

I'm trying to create a simple Silverlight 3d application...

I have a good enough PC, but when I run the Silverlight application I get this:

RenderModeReason - TemporarilyUnavailable... WTF is that? o_O

PS: The sample 3D applications where made by MS and are compiling and working.

iCollect.it Ltd
  • 92,391
  • 25
  • 181
  • 202
obenjiro
  • 3,665
  • 7
  • 44
  • 82

1 Answers1

2

In order to be able to use 3D acceleration in your app (and all the XNA namespaces), you must enable HardwareAcceleration during plugin initialization. Fortunately, it's easy:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
      [...]
      <param name="enableGPUAcceleration" value="true" />
      [...]
</object>

To enable GPU acceleration for Out of browser apps, set the enable GPU acceleration option on the project property page.

Eilistraee
  • 8,220
  • 1
  • 27
  • 30
  • it's enabled... if you don't set EnableGPUAcceleration to True you will get "HardwareAccelerationDisabled" (or something like that).. i get TemporaryUnavalible state.. – obenjiro Jun 07 '11 at 21:02
  • `GraphicsDeviceManager.Current.RenderModeChanged += new EventHandler(Current_RenderModeChanged);` – obenjiro Jun 12 '11 at 17:38
  • But when you put a break point in the page constructor, do the Microsoft.XNA.Graphics.Silverlight.GraphicsDeviceManager.Current.RenderMode evaluates to TemporaryUnavailable? And is your Draw event handler called? (I expect it isn't...) – Eilistraee Jun 14 '11 at 18:27