Hello, I'm having a very strange problem with a simple app I'm trying to write.
I have gotten the GLControl to come up and draw things just fine (grid, gluSphere), camera with rotation etc...
I'm now at the point where I've written a simple Model class and an OBJ reader and am working on testing it out.
Basically, I keep a list of Vector3 objects as the list of indexed verts for the model and a list of faces that index them.
Here's the weird part.
If I attempt to grab one of the the Vector3 objects out of the list of verts, the GLControl goes POOF and gets a big red X in it.
I don't even have to use the values I get back, just as soon as I try to read from that list, I'm dead. It's making me pull my hair out.
Is there something about Vector3 that I can't use inside of a GL.Begin? Is something screwing up the context? Have I just gone insane?
The code can be found here, http://www.awesomelaser.com/3dspeeders/code/vector_list_problem_2009_04_...
Commenting out Form1.cs:159 will make it work. The obj file isn't even being used, the model class is being filled out with some sample data.
Thanks in advance for any light anyone can shed, I'm rather new to C# and it was all going fine until now :)