AnsweredSecond Layer overrides first

Author
bordlab
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2018/01/29 06:45:53
  • Location: 0
  • Status: offline
2018/02/09 07:34:47 (permalink)
0

Second Layer overrides first

Background: MPLAB X IDE v4.05, XC32 v1.44B, Harmony v2.05.01, PIC32MZ2064DAG169, PIC32MZ2064DAG169 development board with display.
 
I enabled a second layer in the Graphics Composer and it looks fine there.  When I run it on hardware the second layer overrides the first with a black background.
 
On the Layer I have Alpha Blending and Transparency enabled
 
I also I have:
Graphic Stack->Graphics Controller -> GLCD -> Driver Settings -> Max Layer Count = 3
Then in the code I set
#define LA_MAX_LAYERS     2
 
If I make the second layer half the screen I can see the first layer on the side of the screen the second layer does not cover.
 
What am I missing?
 
Thank you!
Andy
#1
bblessing
Super Member
  • Total Posts : 596
  • Reward points : 0
  • Joined: 2008/12/04 06:44:21
  • Location: Cincinnati, OH
  • Status: online
Re: Second Layer overrides first 2018/02/09 07:43:02 (permalink)
0
This begs the question: what were you expecting it to do? What are you trying to achieve?
#2
bordlab
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2018/01/29 06:45:53
  • Location: 0
  • Status: offline
Re: Second Layer overrides first 2018/02/09 08:09:34 (permalink)
0
It is my understanding that I can layer graphic on top of one another.  So I can have a base layer of images (background) that does not change.  Then I have have another layer that lays over it for an active layer that I can then switch in and out depending on user input.  Basically a way to organize and encapsulate different groups of things.
#3
bblessing
Super Member
  • Total Posts : 596
  • Reward points : 0
  • Joined: 2008/12/04 06:44:21
  • Location: Cincinnati, OH
  • Status: online
Re: Second Layer overrides first 2018/02/09 11:53:19 (permalink)
0
So you're doing what I'm doing then. My lowest layer operates as a sort of wallpaper, which sounds like what you're trying to do. Take a look at a post titled, "MPLAB Harmony 2.05 GFX". This may help you out.
#4
qɥb
Monolothic Member
  • Total Posts : 1175
  • Reward points : 0
  • Joined: 2017/09/09 05:07:30
  • Location: Jupiter
  • Status: online
Re: Second Layer overrides first 2018/02/09 15:45:40 (permalink) ☼ Best Answerby MikeinAZ 2018/02/13 12:15:28

PicForum "it just works"
#5
Jump to:
© 2018 APG vNext Commercial Version 4.5