The Daily Click ::. Forums ::. Klik Coding Help ::. Object not effected by alpha channels?
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
29th August, 2011 at 15:31:09 -


Is it possible to make an object NOT effected by an alpha channel even though it is behind an object with an alpha channel?

For example: I have these 2 objects below.

Image (Object A)

Image (Object B)

Image
Object A is behind Object B, thus it is darkened by the Aplha Channel in object B.

Image
But I would like it to look like this. Not effected by the Alpha Channel.

This can easily be achieved by moving Object A in front of Object B, but I can't do this (long story).

Any ideas?

 
n/a

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
29th August, 2011 at 16:50:37 -

Since I can't think of anything, I reckon it's time to hear(read: read) a long story.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
29th August, 2011 at 17:25:09 -

Hahahaha! The long story is just that Object A must be behind Object B because there is another object (Object C).

Object B is the rooms shadow, which is in front of everything.
Object C is the players character which must be behind the shadow.
Object A is the 'select square thing' which I want to be behind the character, but not effected by the shadow.

So... Object B (shadow) is at the front and Object C (player) is behind it.
But... I want Object A (square) to be behind Object C (player) but in front of Object B (shadow) (or simply just NOT darkened by the alpha channel of the shadow)

Sorry if that is really confusing.

 
n/a

HaZe



Registered
  28/08/2011
Points
  11
8th September, 2011 at 14:16:21 -

You could try making a placeholder for "Object A", and then set the real object's position to overlap it, and order it to the front...

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
8th September, 2011 at 19:10:45 -

It's just not going to happen that way. It's kinda impossible to do.

UNLESS! You split the "select square thing" into 4 separate objects. One for each corner of the selector. Then just handle their Z-placement separately.

Eg. If player is overlapping "corner" make "corner" invisible.

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
8th September, 2011 at 19:24:01 -

I tried that, but because of shadows caused by various alpha channels, the 4 objects would at times be different shades and it didn't look good.

Anyhow, none of this is a problem because I have decided not to use "Select Square Things". They cluttered the screen and were ugly. I just use them for doorways now and it is very stylish. I'll post an alpha version of my project once I finish the first zombie and finish a few character animations.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click