Problem with GL
Posted: Sun Sep 21, 2008 9:28 am
I have a problem with this http://rafb.net/p/34gzzJ89.html
The // doesn't work part should draw a box from the center (glsYc) up to the calculated size if it's positive, and down, if the size is negative. So the vertices are:
The positive part works, the negative not, i.e. no box is drawn when the vertices are:
If I start the box not in the center but at the bottom, it increases in size when the calculation gives positive values
and shrinks for negative ones
I have no idea why this happens. Can anyone enlighten me please?
The // doesn't work part should draw a box from the center (glsYc) up to the calculated size if it's positive, and down, if the size is negative. So the vertices are:
Code: Select all
4 3
1 2 - center here
Code: Select all
1 2 - center here
4 3
Code: Select all
4 3
- center here
1 2 - bottom
Code: Select all
- center here
4 3
1 2 - bottom