Problem with VBO
"Thomas Convard" <[email protected]> Fri, 2 May 2008 15:53:48 +0200
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============2004001469== Content-Type: multipart/alternative; boundary="----=_Part_7530_5882271.1209736428206" ------=_Part_7530_5882271.1209736428206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I have an application which is using one single VBO for several objects. Its rendering loop looks like: (don't have the source of the app, got that from the print SPU) BindBufferARB( GL_ARRAY_BUFFER, 1 ) BindBufferARB( GL_ELEMENT_ARRAY_BUFFER, 2 ) VertexPointer( 3, GL_FLOAT, 32, 00000000 ) DrawElements... ... VertexPointer( 3, GL_FLOAT, 32, 00000FA0 ) DrawElements... ... VertexPointer( 3, GL_FLOAT, 32, 000113C0 ) DrawElements... but on th crserver, the print SPU gives something like: BindBufferARB( GL_ARRAY_BUFFER, 1 ) BindBufferARB( GL_ELEMENT_ARRAY_BUFFER, 2 ) VertexPointer( 3, GL_FLOAT, 32, 00000000 ) DrawElements... ... DrawElements... ... DrawElements... And the visual result is wrong. I looked a bit in chromium sources, and it came down to the crStateClientDiff function in state_client.c. The two CRClientState pointers "to" and "from" where the same, so the tests on change of size, type etc never passed. I just commented these tests and now the app works nicely, but maybe it breaks something else somewhere! Regards, Thomas ------=_Part_7530_5882271.1209736428206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,<br> <br> I have an application which is using one single VBO for several objects.<br> Its rendering loop looks like: (don't have the source of the app, got that from the print SPU)<br> <br> BindBufferARB( GL_ARRAY_BUFFER, 1 )<br> BindBufferARB( GL_ELEMENT_ARRAY_BUFFER, 2 )<br> VertexPointer( 3, GL_FLOAT, 32, 00000000 )<br> DrawElements...<br> ...<br> VertexPointer( 3, GL_FLOAT, 32, 00000FA0 )<br> DrawElements...<br> ...<br> VertexPointer( 3, GL_FLOAT, 32, 000113C0 )<br> DrawElements...<br> <br> but on th crserver, the print SPU gives something like:<br> BindBufferARB( GL_ARRAY_BUFFER, 1 )<br> BindBufferARB( GL_ELEMENT_ARRAY_BUFFER, 2 )<br> VertexPointer( 3, GL_FLOAT, 32, 00000000 )<br> DrawElements...<br> ...<br> DrawElements...<br> ...<br> DrawElements...<br> <br> And the visual result is wrong.<br> I looked a bit in chromium sources, and it came down to the crStateClientDiff function in state_client.c.<br> The two CRClientState pointers "to" and "from" where the same, so the tests on change of size, type etc never passed.<br> I just commented these tests and now the app works nicely, but maybe it breaks something else somewhere!<br> <br> Regards,<br> Thomas<br> <br> <br> ------=_Part_7530_5882271.1209736428206-- --===============2004001469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone --===============2004001469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Chromium-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chromium-dev --===============2004001469==--