| Poster | : AndyB | | Posts | : 14 | | Country | : Ireland | | City | : Dublin |
| | | | Posted by AndyB on 16/04/2008 at 14:45:50
| | Hey, Firstly i would like to say.. This time i checked.. And found the solution, which people say works but doesnt for me :(
When working with XNA 2.0 it seems you need to update the lines that set the "vb" and "ib" objects.
I was getting errors and checked here.
I found you replace it with.
vb = new VertexBuffer(device, VertexPositionNormalTexture.SizeInBytes * (vertices.Length), BufferUsage.WriteOnly)
There are some other ones posted here aswel have tried them all and i still get the error:
"Object reference is not set to an instance of an object"
Now if i try to rewrite the line myself intellisense doesnt ask for any object parameters? | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 18/04/2008 at 03:21:20
| | This erros means that either your 'device' or your 'vertices' variables are not instantiated ..
When your program crashes, move your mouse over both variables and see which one of them is not instantiated.
This line works in XNA2.0:
vertBuffer = new VertexBuffer(device, VertexPositionTexture.SizeInBytes * vertices.Length, BufferUsage.WriteOnly);
|
| |
|
|
| |
| |
| Poster | : AndyB | | Posts | : 14 | | Country | : Ireland | | City | : Dublin |
| | | | Posted by AndyB on 18/04/2008 at 05:54:21
| | Thanks, Got it working :)
My SetVertices() had to be moved in the initialise method. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 27/07/2012 at 08:09:13
| | | Definitely enjoying your work Gino!! You're very taetlend and the emotions in your stories are truly amazing and capture me in a way that a story never has before. I look forward to reading everything you post. Also, your taste in music is incredible! By the way, Tori Amos, Courtney Love, Kurt Cobain, Trent Reznor, Maynard James Keenan.. hmm you're a sneaky one | |
|
|