Minus_Alpha argument

Everything related to 3D programming
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Minus_Alpha argument

Post by Samuel »

Sorry, for the double post, but I forgot to mention that this only works with #PB_Shadow_TextureAdditive.
I don't believe it's possible to get the desired effect with Modulative or Additive shadow types.
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Minus_Alpha argument

Post by Lexicon »

Samuel wrote:Check my previous post. Should take care of his and your problem. I think.....
Thanks Samuel. I'll be experimenting with your example.
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Minus_Alpha argument

Post by Bananenfreak »

It´s working :D Thank you Samuel :D

Image
Image
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Minus_Alpha argument

Post by Lexicon »

Yes. It's working. :D Thanks Samuel!
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Minus_Alpha argument

Post by Bananenfreak »

Hmm, look at my screenshot. The shadows don´t work correctly... :)
Image
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Minus_Alpha argument

Post by Lexicon »

Bananenfreak wrote:Hmm, look at my screenshot. The shadows don´t work correctly... :)
Yes. But it is a shadow. Then we can find the settings. :wink:
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Minus_Alpha argument

Post by Samuel »

Bananenfreak wrote:Hmm, look at my screenshot. The shadows don´t work correctly... :)
I'm guessing your talking about the shadows being on both sides of the tree trunk. I've had this happen before if my mesh is below the ground.
Try raising the tree to match the ground level and see if that fixes them.

EDIT
I believe this is an issue with TextureAdditive shadows and not the material script.
Hopefully, raising them will solve your problem. I'll try to find out why it does this later on.
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Minus_Alpha argument

Post by Bananenfreak »

I do not mean the treetrunk, but the foliage. Look at the leaves, they´re overlapping itself and destroy the shadows of the others...
Image
Post Reply