dgu123 / o3d

Automatically exported from code.google.com/p/o3d
0 stars 0 forks source link

Texture Coordinates, Position Buffer vs. Index Buffer Length Check #206

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found when trying to import from a collada file (exported via sketchup).

What steps will reproduce the problem?
1. Create a position buffer (6 positions: 4 used for a square and 2 
more "extra" unused positions)
2. Create an index buffer to make a square from 4 of the above positions
3. Add a texcoord vertext stream to map an image to the square's shape.

What is the expected output? What do you see instead?
I would expect the texture to be mapped to the shape.

Instead an "ERROR: Trying to draw with XX vertices when there are only XX 
available in the buffers. Skipping primitive"
It appears to be requiring a texcoord vertex buffer element for every 
position vertext buffer element.  I would expect one texcoord vertex 
buffer element for each index buffer element.  (as a side note, I simply 
extend my texcoord vertex buffer out with dummy data, and the display is 
then as expected)

What version of the product are you using? On what operating system?
1.42

Original issue reported on code.google.com by peakey.c...@gmail.com on 25 Jan 2010 at 5:34