hi,Rogelio. Thank you for your help.You modified app it work fine. But, sometimes applications need to repeated set bufferdata , the same problem will appear. For example, rendering process is as follows: 1. painting triangle 2. Painting textures 3. Painting rectangular 4. Painting circle The same problem still happen,it will missing some picture
Best regards! junxiong At 2012-01-13 07:17:50,"Rogelio Garcia" <[email protected]> wrote: >Hello Jun, >After having a deeper look at your program I noticed a mistake in the >execution. I'm no expert in writing 3D apps but here's the issue. > >With the current implementation of your program you are creating 3 FBO >(frame buffer objects), one for each triangle for every frame. The >problem is that this is a gpu consuming operation that should be done >before the rendering and only once. > >Find attached the modified app that will create the same 3 triangles >using 1 FBO and initialized only once. > >Rogelio > >** Attachment added: "hello_triangle_rogelio.cpp" > > https://bugs.launchpad.net/ubuntu-omap4-extras-graphics/+bug/912280/+attachment/2670889/+files/hello_triangle_rogelio.cpp > >-- >You received this bug notification because you are subscribed to the bug >report. >https://bugs.launchpad.net/bugs/912280 > >Title: > my program run in ubuntu 11.10 try draw three non-texture triangles > but only two triangles show. > >Status in Ubuntu OMAP4 graphics addons: > New > >Bug description: > my pvr driver and lib come from "http://ppa.launchpad.net/tiomap-dev > /omap-trunk/ubuntu/" > > my program run in ubuntu 11.10,program try draw three non-texture > triangles, but only two triangles show. > > if the program run in ubuntu 10.10,it is normal. > > code as follows: http://paste.ubuntu.com/798047/ > >To manage notifications about this bug go to: >https://bugs.launchpad.net/ubuntu-omap4-extras-graphics/+bug/912280/+subscriptions -- You received this bug notification because you are a member of TI OMAP Developers, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/912280 Title: my program run in ubuntu 11.10 try draw three non-texture triangles but only two triangles show. Status in Ubuntu OMAP4 graphics addons: New Bug description: my pvr driver and lib come from "http://ppa.launchpad.net/tiomap-dev /omap-trunk/ubuntu/" my program run in ubuntu 11.10,program try draw three non-texture triangles, but only two triangles show. if the program run in ubuntu 10.10,it is normal. code as follows: http://paste.ubuntu.com/798047/ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-omap4-extras-graphics/+bug/912280/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~tiomap-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~tiomap-dev More help : https://help.launchpad.net/ListHelp

