bugpyFormex - Bugs: bug #37731, the transparency does not work

 
 

bug #37731: the transparency does not work

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Wed 14 Nov 2012 09:04:23 AM UTC  
 
Category: RenderingSeverity: 3 - Normal
Item Group: Functionality errorStatus: Works For Me
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 25 Mar 2013 06:30:22 PM UTC, comment #4:

I found the problem in my case. From the GUI I had to uncheck the button
"Disable depth testing for transparent actors"

in Settings > Settings Dialog > Drawing

francesco <francio>
Project Member
Mon 25 Mar 2013 05:35:46 PM UTC, comment #3:

This works correctly for me. See the two images attached.

Have you updated to the latest source?
Also, try clearing the viewport before drawing.

(file #27680, file #27681)

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Mon 25 Mar 2013 05:16:47 PM UTC, comment #2:

I have again this problem, running the old example below will show the issue. Even setting alpha and bkalpha to 1 the object will still be transparent.

francesco <francio>
Project Member
Tue 04 Dec 2012 09:03:51 PM UTC, comment #1:

I think this is fixed sinve revision 2575. If not, please reopen the bug.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Wed 14 Nov 2012 09:04:23 AM UTC, original submission:

When drawing multiple objects with different transparency the transparency does not behave properly.

Check example and rotate the model:

#!/usr/bin/env python pyformex.py
from plugins.trisurface import *
transparent(state=True)
import simple
C=simple.sphere(3)

Cback = C.rotate(10., 2)
draw(Cback, color='blue', alpha=0.3)

Cfront = C.scale([1.2, 1.5, 1.0]).translate([0., 0., 2.5])
draw(Cfront, color='red', alpha=0.3)

import elements
h=Mesh(elements.Hex8()).translate([-0.5, -0.5, 4.])
draw(h, alpha=0.99, bkalpha=0.99)
zoomAll()
exit()

gianluca de santis <gianlucadesi>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #27680:  transparency_0.99.png added by bverheg (36KiB - image/png - Effect of alpha=1 or not.)
file #27681:  transparency_1.00.png added by bverheg (29KiB - image/png - Effect of alpha=1 or not.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by francio (Posted a comment)
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by gianlucadesi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 25 Mar 2013 06:30:22 PM UTCfrancioOpen/ClosedOpen=>Closed
    Mon 25 Mar 2013 05:35:46 PM UTCbverhegAttached File-=>Added transparency_0.99.png, #27680
      Attached File-=>Added transparency_1.00.png, #27681
      StatusNone=>Works For Me
    Mon 25 Mar 2013 05:16:47 PM UTCfrancioStatusFixed=>None
      Assigned toNone=>bverheg
      Open/ClosedClosed=>Open
    Tue 04 Dec 2012 09:03:51 PM UTCbverhegStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1