bugpyFormex - Bugs: bug #41063, gl2 engine only renders with color...

 
 

bug #41063: gl2 engine only renders with color index (AMD cards only?)

Submitter:  Benedict Verhegghe <bverheg>
Submitted:  Thu 02 Jan 2014 10:57:48 AM UTC
   
 
Category:  Rendering Severity:  4 - Important
Item Group:  Functionality error Status:  Works For Me
Privacy:  Public Assigned to:  bverheg
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Feb 2015 05:20:26 PM UTC, comment #3: 

I ended up replacing my AMD card with an NVIDIA and have no possibility anymore to test this further.

Benedict Verhegghe <bverheg>
Group administrator
Mon 03 Feb 2014 10:42:51 AM UTC, comment #2: 

The problem has been narrowed down to the not existing color buffer object (cbo) for single color.
In commit b874bc4 a workaround is added by creating a dummy, unused color buffer with a single color (red).

This seems to solve the problem on the one test machine that had the issue. The question raises whether we should
- make the creation of the dummy buffer configurable, as it is not needed for many other machines,
- or instead pass the single color via that color buffer, instead
of using a uniform.


Benedict Verhegghe <bverheg>
Group administrator
Thu 30 Jan 2014 10:06:15 AM UTC, comment #1: 

If have been looking deeper into this and it turns out that element color and vertex color modes work, while object color (single color) and no color modes are not rendered at all.

Since no color and single color are treated the same in the shader, and element and vertex color also, I think the problem can be narrowed down to the objectColor mode in the shader, in combination with an AMD graphics card (or just my graphics card?).

If anybody has an AMD card in some machine running pyFormex, please test this: run the Cube example and see if the 'None' and 'Single' color option fail, while 'Face' and 'Full' work.

Note: if you are not sure what brand of graphics card you have, run the following command:


lspci | grep VGA


If the output contains 'AMD', 'ATI', 'Radeon', or 'Intel', I am interested in a test on that card.

Benedict Verhegghe <bverheg>
Group administrator
Thu 02 Jan 2014 10:57:48 AM UTC, original submission:  

On a machine with an AMD (ATI) Radeon graphics card, rendering only works when using indexed colors, e.g. by setting property
numbers on the geometry.

Here is an example:

  from pyformex.simple import rectangle
  F = rectangle(4,4).setProp(0)
  G = F.trl(0,5.).setProp(1)
  clear()
  draw([F,G])


This renders as shown in attached gl2_amd2.png. When leaving out the setProp(0) from F, the rendering is as in gl2_amd2.png: F is not shown.

This happens on a machine with an AMD/ATI Radeon card using fglrx accelerated driver. I do not have the problem on any other machine equipped with NVDIA cards and nv driver.

Benedict Verhegghe <bverheg>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30145:  gl2_amd2.png added by bverheg (3KiB - image/png)
file #30146:  gl2_amd1.png added by bverheg (2KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-24 bverheg Open/ClosedOpen Closed
    2014-02-03 bverheg StatusNone Works For Me
        Assigned toNone bverheg
    2014-01-02 bverheg Attached File- Added gl2_amd2.png, #30145
        Attached File- Added gl2_amd1.png, #30146

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code