This project is read-only.

tutorial 13 iWear VR920

Aug 11, 2011 at 7:52 PM


I am new to GoblinXNA. I followed the installation steps closely and I tried to run a few of the tutorials. The one that interest me most is tutorial 13 that gives me this error:

GoblinXNA/SceneGraph/Scene.cs line 1813 

 videoTextures[id] = new Texture2D(State.Device, videoDevice.Width, videoDevice.Height,
                    1, TextureUsage.None, SurfaceFormat.Bgr32);

I get NullReferenceException was unhandled. 

videoTextures[0] = nul 


Does anyone have any idea how to fix it or what is wrong?

I am using GoblinXNA v3.6 and Microsoft Visual C#/C++ 2008 Express to compile and run the project on Windows XP sp3

Thank you.


Thank you.

Aug 16, 2011 at 2:14 AM

Do you have everything setup for your Vuzix iWear? Like the driver and so on?

It's kind of strange that it throws a null exception on that line. Can you tell me what exactly is null in that line?




Aug 17, 2011 at 8:32 PM

Hi Ohan,

Yes I do have everything set up for the Vuzix iWear:

Vuzix VR Manager that comes with them 

Vuzix SDK 3.1.1

Please take a look at this screen shoot to see the values of all the parameters involved and the actual error.

Thank you 

Aug 18, 2011 at 6:27 AM

Hmm... the error doesn't make sense since it's 'new'ing at the line. Nothing in the initialization call seems to be null from the values.


Aug 18, 2011 at 8:33 PM

ok... so what should I do next?


Aug 19, 2011 at 2:32 AM

Hmmm... Since I don't encounter the exception on my computer, I can't really do anything with it.

Does anyone else has the same problem for Tutorial 13?