Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
particles in front of white #430392
09/27/13 14:56
09/27/13 14:56
Joined: Dec 2009
Posts: 82
D
Denn15 Offline OP
Junior Member
Denn15  Offline OP
Junior Member
D

Joined: Dec 2009
Posts: 82
particles in front of something white seems to turn invisible like in this screenshot:

http://imageshack.us/photo/my-images/43/511r.jpg/

thats a bit of a problem since most of the textures in my game are compoletely white, so i jsut wanted to know if there is a way to make the particles not turn invisible in front of white textures.

Re: particles in front of white [Re: Denn15] #430393
09/27/13 15:02
09/27/13 15:02
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
maybe you set its BRIGHT flag that results in additive blending, thus it can't be not white over white background.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: particles in front of white [Re: sivan] #430399
09/27/13 16:35
09/27/13 16:35
Joined: Dec 2009
Posts: 82
D
Denn15 Offline OP
Junior Member
Denn15  Offline OP
Junior Member
D

Joined: Dec 2009
Posts: 82
that fixed it. however now the particles are very dark in the edges and it doesnt look as good.

http://imageshack.us/photo/my-images/62/5aaj.png/

is there a way to make it look like before without the BRIGHT flag?

Re: particles in front of white [Re: Denn15] #430401
09/27/13 16:56
09/27/13 16:56
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
set their TRANSLUCENT flag and tweak their alpha to fade out.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: particles in front of white [Re: sivan] #430403
09/27/13 17:13
09/27/13 17:13
Joined: Dec 2009
Posts: 82
D
Denn15 Offline OP
Junior Member
Denn15  Offline OP
Junior Member
D

Joined: Dec 2009
Posts: 82
the TRANSLUCENT flag is already set and it is also fading out. is there anything else that can be done?

here is my code if it can help

Code:
function part3(PARTICLE* p)
{
	p.green = 0;
   p.red = 255;
   p.blue = 0;
   set(p, MOVE | LIGHT | TRANSLUCENT);
   p.alpha = 100;
   p.size = 30;
   p.gravity = 0;
   p.skill_a = 16; // fade factor
   p.event = p_fade;
}


Last edited by Denn15; 09/27/13 17:16.
Re: particles in front of white [Re: Denn15] #430405
09/27/13 17:27
09/27/13 17:27
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Then you have to create a better particle bmap, for instance as follows


(probably not free to use)

and control the transparency with the alpha channel (do not add black to the flame texture).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: particles in front of white [Re: Superku] #432545
11/07/13 21:10
11/07/13 21:10
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
I'm wondering if there is a way to set a particle's draw layer. The sample in the manual seems to appear in front of everything else on my level...

Re: particles in front of white [Re: Dooley] #432546
11/07/13 21:29
11/07/13 21:29
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
overlay might help, it takes the first pixel top left and turns all of the same color transparent.

Re: particles in front of white [Re: Nems] #432571
11/08/13 14:34
11/08/13 14:34
Joined: Jul 2013
Posts: 158
F
Feindbild Offline
Member
Feindbild  Offline
Member
F

Joined: Jul 2013
Posts: 158
Don't use overlay. Use an alpha mask.

Re: particles in front of white [Re: Feindbild] #432581
11/08/13 16:55
11/08/13 16:55

M
Malice
Unregistered
Malice
Unregistered
M




Last edited by Malice; 11/08/13 17:43.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1