my program run in ubuntu 11.10 try draw three non-texture triangles but only two triangles show.

Bug #912280 reported by snsxjun
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-omap4-extras-graphics
New
Undecided
Unassigned

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/

snsxjun (xjun-sns)
description: updated
snsxjun (xjun-sns)
security vulnerability: yes → no
visibility: private → public
snsxjun (xjun-sns)
description: updated
Revision history for this message
Rogelio Garcia (garcia-rogelio-i) wrote :

Hello snsxjun,

Do you have snapshots of your app running in 10.10, 11.10? can you post them?

regards,
Rogelio

Revision history for this message
snsxjun (xjun-sns) wrote : Re:[Bug 912280] Re: my program run in ubuntu 11.10 try draw three non-texture triangles but only two triangles show.

hi,Rogelio.
thank you for your replay.
this is i have snapshots of app running in 10.10 and 11.10.

best regards,
jun xiong

At 2012-01-11 02:25:45,"Rogelio Garcia" <email address hidden> wrote:
>Hello snsxjun,
>
>Do you have snapshots of your app running in 10.10, 11.10? can you post
>them?
>
>regards,
>Rogelio
>
>--
>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

Revision history for this message
Rogelio Garcia (garcia-rogelio-i) 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

Revision history for this message
snsxjun (xjun-sns) wrote :

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

Revision history for this message
Rogelio Garcia (garcia-rogelio-i) wrote :

Hello jun,

Just remember to create your VBOs for vertex, colors and whatever you need just one time at the beginning of the execution, so in the rendering cycle you just need to move your pointer to the desired vertex or color.

Regards,
Rogelio Garcia

Revision history for this message
snsxjun (xjun-sns) wrote :

hello,Rogelio.
thank you for your replay.you tell me method it is work fine.
I want to create share image data between processes in opengles
on omap3530 ti provide cmem as share memory to create EGLImageKHR
but oamp4430 can not use cmem,only can use X11's pixmap as EGLClientBuffer
what method can slove share EGLImageKHR between two process?

Regards,
Jun Xiong

At 2012-01-14 02:45:46,"Rogelio Garcia" <email address hidden> wrote:
>Hello jun,
>
>Just remember to create your VBOs for vertex, colors and whatever you
>need just one time at the beginning of the execution, so in the
>rendering cycle you just need to move your pointer to the desired vertex
>or color.
>
>Regards,
>Rogelio Garcia
>
>--
>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

Revision history for this message
Rogelio Garcia (garcia-rogelio-i) wrote :

Hello Jun,

As I mentioned before I'm not an expert on 3D apps. So I think you should look for that answer in a X11 forum or something like that.

Regards,
Rogelio

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.