← Back to team overview

tiomap-dev team mailing list archive

[Bug 912280] Re: my program run in ubuntu 11.10 try draw three non-texture triangles but only two triangles show.

 

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 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


Follow ups

References