Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gemvertexbuffer] VBO size issue #1

Closed
avilleret opened this issue Dec 28, 2013 · 1 comment
Closed

[gemvertexbuffer] VBO size issue #1

avilleret opened this issue Dec 28, 2013 · 1 comment
Labels

Comments

@avilleret
Copy link
Contributor

when I set the VBO size to 3 and try to draw a simple triangle, only 2 points appear and the first one is wrong

I have to increase VBO size up to 8 to see the 3 points and up to 10 to see the right colors.
A point always appear at (0,0) but it is not in my tables. This lead to wrong geos.

Here is a patch that reproduces the problem.

--- START ----

N canvas 787 372 1084 672 10;

X msg 792 483 draw line;

X msg 607 287 position XYZ , color color;

X obj 580 261 t a b;

X obj 580 36 gemhead;

X obj 791 456 loadbang;

X obj 208 226 loadbang;

X obj 383 402 table XYZ 9;

X obj 382 378 table color 12;

X msg 222 292 ; color const 1;

X msg 171 348 1 , 1 , 0 , -1 , 1 , 0 , 0.2 , 0.5 , 0;

X obj 171 314 t b b;

X obj 171 381 t a b;

X obj 201 416 f;

X obj 231 415 + 1;

X obj 171 446 tabwrite XYZ;

X msg 216 377 0;

X msg 695 365 resize 3;

X msg 696 428 resize $1;

X floatatom 696 409 5 0 0 0 - - -, f 5;

X obj 579 575 gemvertexbuffer 3;

X text 728 409 increase VBO size to display all points;

X obj 394 189 gemwin;

X msg 411 139 destroy;

X msg 394 108 color 0 0 1 , create , 1;

X connect 0 0 19 0;

X connect 1 0 19 0;

X connect 2 0 19 0;

X connect 2 1 1 0;

X connect 3 0 2 0;

X connect 4 0 0 0;

X connect 5 0 8 0;

X connect 5 0 10 0;

X connect 9 0 11 0;

X connect 10 0 9 0;

X connect 10 1 15 0;

X connect 11 0 14 0;

X connect 11 1 12 0;

X connect 12 0 13 0;

X connect 12 0 14 1;

X connect 13 0 12 1;

X connect 15 0 12 1;

X connect 16 0 19 0;

X connect 17 0 19 0;

X connect 18 0 17 0;

X connect 22 0 21 0;

X connect 23 0 21 0;

--- END ---

@umlaeute
Copy link
Owner

umlaeute commented Jan 8, 2014

fixed with fd169f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants