Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Displaying layer 0 gf graphics with Photon in layer 1?: (7 Items)
   
Displaying layer 0 gf graphics with Photon in layer 1?  
Is there any way to have Photon's background either not be drawn, or drawn as "transparent"?

I'm trying to render some graphics on layer 0 using the gf library, and have some Photon objects overlay them, with 
Photon on layer 1.

The problem is, Photon draws a background which totally obscures what's rendered on layer 0.

Thanks!
RE: Displaying layer 0 gf graphics with Photon in layer 1?  
I just answer a similar question in the Photon forum:

I have not done this approach lately, but try these suggestions.  You could set the fill colour to Pg_TRANSPARENT, 
unless you are using a PtOSContainer.

Now, I think this is the better approach here:

If you are using a PtOSContainer, set the fill colour to something not common, 
then set the chroma on the layer to that value, and no draw.

-----Original Message-----
From: Don Meyer [mailto:community-noreply@qnx.com] 
Sent: July-19-12 1:33 PM
To: advanced-graphics
Subject: Displaying layer 0 gf graphics with Photon in layer 1?

Is there any way to have Photon's background either not be drawn, or drawn as "transparent"?

I'm trying to render some graphics on layer 0 using the gf library, and have some Photon objects overlay them, with 
Photon on layer 1.

The problem is, Photon draws a background which totally obscures what's rendered on layer 0.

Thanks!



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post94343
To cancel your subscription to this discussion, please e-mail advanced-graphics-unsubscribe@community.qnx.com
Re: RE: Displaying layer 0 gf graphics with Photon in layer 1?  
Thanks for the reply.  I did post essentially the same question in the Photon forum, and then posted it here today as I 
hadn't gotten any responses there yet.  Not certian which form is most appropriate for this question - it seems to span 
both.

I've gotten a similar suggestion from tech support (although with less detail, more of a general direction).  I've been 
going this way, so good to know that I'm on the right path.

Not having much luck however.

I'm attaching to the layer that Photon is using with a  passive attach.  Then, I set the chroma:

	gf_chroma_t chroma;
	chroma.mode = GF_CHROMA_OP_SRC_MATCH | GF_CHROMA_OP_NO_DRAW;
	chroma.color0 = 0xff0000;
	chroma.color1 = 0;	// unused	
	gf_layer_set_chroma( layer, &chroma );
	gf_layer_update( layer, 0 );

After that is done, we create our window and a PtOSContainer, whose background is set to full red.
That red background is still drawing however.
RE: RE: Displaying layer 0 gf graphics with Photon in layer 1?  
You are attaching to the same layer as Photon?  What graphics chipset are you using?

-----Original Message-----
From: Don Meyer [mailto:community-noreply@qnx.com] 
Sent: July-19-12 2:53 PM
To: advanced-graphics
Subject: Re: RE: Displaying layer 0 gf graphics with Photon in layer 1?

Thanks for the reply.  I did post essentially the same question in the Photon forum, and then posted it here today as I 
hadn't gotten any responses there yet.  Not certian which form is most appropriate for this question - it seems to span 
both.

I've gotten a similar suggestion from tech support (although with less detail, more of a general direction).  I've been 
going this way, so good to know that I'm on the right path.

Not having much luck however.

I'm attaching to the layer that Photon is using with a  passive attach.  Then, I set the chroma:

	gf_chroma_t chroma;
	chroma.mode = GF_CHROMA_OP_SRC_MATCH | GF_CHROMA_OP_NO_DRAW;
	chroma.color0 = 0xff0000;
	chroma.color1 = 0;	// unused	
	gf_layer_set_chroma( layer, &chroma );
	gf_layer_update( layer, 0 );

After that is done, we create our window and a PtOSContainer, whose background is set to full red.
That red background is still drawing however.



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post94348
To cancel your subscription to this discussion, please e-mail advanced-graphics-unsubscribe@community.qnx.com
Re: RE: RE: Displaying layer 0 gf graphics with Photon in layer 1?  
This is on an iMX53 eval board, the graphics are those integrated into the Cortex chip.  It does support two layers in 
hardware, and we have Photon running on layer 1 (versus the default layer 0).
RE: RE: RE: Displaying layer 0 gf graphics with Photon in layer 1?  
Ok, it looks like the imx51/53 driver supports this, please send your test case through support.

-----Original Message-----
From: Don Meyer [mailto:community-noreply@qnx.com] 
Sent: July-19-12 6:53 PM
To: advanced-graphics
Subject: Re: RE: RE: Displaying layer 0 gf graphics with Photon in layer 1?

This is on an iMX53 eval board, the graphics are those integrated into the Cortex chip.  It does support two layers in 
hardware, and we have Photon running on layer 1 (versus the default layer 0).



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post94353
To cancel your subscription to this discussion, please e-mail advanced-graphics-unsubscribe@community.qnx.com
Re: RE: RE: RE: Displaying layer 0 gf graphics with Photon in layer 1?  
Ok, thanks Derek.  I've given the test code we're using to support, hopefully they can come up with some examples of how
 to make this work.

Thanks again,
Don