bugGNU Octave - Bugs: bug #46538, FaceAlpha in patch is not working

 
 

bug #46538: FaceAlpha in patch is not working

Submitted by:  None
Submitted on:  Thu 26 Nov 2015 09:13:25 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: DuplicateAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 26 Nov 2015 04:02:04 PM UTC, comment #1:

This is a known issue with OpenGL in Octave. See bug #39535. Marking as a duplicate and closing report.

For a temporary workaround you can try using the gnuplot toolkit.

Rik <rik5>
Project Administrator
Thu 26 Nov 2015 09:13:25 AM UTC, original submission:

Hi,
the attribute FaceAlpha is not working correctly.
Any other value than 1 leads to no color at all.

Here is a small example:

T =[
1 2 4
2 3 5
4 5 7
5 6 8
5 4 2
6 5 3
8 7 5
9 8 6];

P = [
0.00000 0.00000 0.00000 0.50000 0.50000 0.50000 1.00000 1.00000 1.00000
0.00000 0.50000 1.00000 0.00000 0.50000 1.00000 0.00000 0.50000 1.00000];

x = P(1,:); y = P(2,:);
z = 1 - (x-0.5).^2 - (y-0.5).^2;
i=1:length(T);

a1 = [ x(T(i,1)) ; y(T(i,1)) ; z(T(i,1)) ];
a2 = [ x(T(i,2)) ; y(T(i,2)) ; z(T(i,2)) ];
a3 = [ x(T(i,3)) ; y(T(i,3)) ; z(T(i,3)) ];

s = ( a1(1:2,i) + a2(1:2,i) + a3(1:2,i) )./3;

r1 = a3(:,i) - a1(:,i);
r2 = a2(:,i) - a1(:,i);
n = cross(r1,r2);

dx = n(1,:)./n(3,:);
%dy = n(2,:)./n(3,:);

patch('Faces',T,'Vertices',P','FaceVertexCData',dx','FaceColor','flat','FaceAlpha',1);

Kind regards

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  •  

    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 project members can vote.

     

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

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Nov 2015 04:02:24 PM UTCrik5StatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Thu 26 Nov 2015 04:02:04 PM UTCrik5Dependencies-=>Depends on bugs #39535

    Back to the top


    Powered by Savane 3.1-cleanup1