Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ? (flipping glOrtho2D causes black line...)
- From: "Skybuck Flying" <BloodyShame@xxxxxxxxxxx>
- Date: Fri, 2 Oct 2009 07:35:34 +0200
Ok problem solved, little calculation error:
Was:
vPositionY := vVertexIndex div 500;
vPositionX := vVertexIndex mod 400;
Had to be:
vPositionY := vVertexIndex div 500;
vPositionX := vVertexIndex mod 500;
However I discovered a new problem:
When this code
// gluOrtho2D(0.0, mRenderToTextureWidth, mRenderToTextureHeight, 0.0);
Is changed to this code:
gluOrtho2D(0.0, mRenderToTextureWidth, 0.0, mRenderToTextureHeight);
Then a black line appears on the top ?! <- Wacky ?!
(This also flips the Y... hmmm)
Bye,
Skybuck.
.
- Follow-Ups:
- References:
- Seperating vertex coordinates and texture coordinates into seperate buffer objects ?
- From: Skybuck Flying
- Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ?
- From: Skybuck Flying
- Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ?
- From: Skybuck Flying
- Seperating vertex coordinates and texture coordinates into seperate buffer objects ?
- Prev by Date: Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ?
- Next by Date: Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ? (+0.5 ;))
- Previous by thread: Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ?
- Next by thread: Re: Seperating vertex coordinates and texture coordinates into seperate buffer objects ? (+0.5 ;))
- Index(es):