
VBO Texture problem. Black cube.
Posted Monday, 20 September, 2010 - 03:19 by ramblingcoder inI'm attempting to write an easy to use VBO example but I've run into a snag of my own while attempting to run the code.
I have included the source code for the project because I'm not exactly sure where the fault lies and I'm hoping someone with more experience could point out the error.
The picture shows the project running with the left cube drawn with out using the VBO commands and the right side using the VBO commands.
They both (with the exception of color) pull values from the same array for texture coordinates, locations, and normals.
Thank you for your time.
| Attachment | Size |
|---|---|
| Test1.zip | 77.55 KB |


Comments
Re: VBO Texture problem. Black cube.
Solved my issue. I replaced
with
GL.InterleavedArrays(InterleavedArrayFormat.T2fN3fV3f, 0, IntPtr.Zero);and changed the vertex class from
to
Hope this helps someone else.