NextPreviousHomeGénérer une fumée blanche

PAT67 | 3 years ago | 6 comments | 685 views

Bonjour je cherche un créer une fumée blanche avec de particules.

Quelle que soit la couleur de l'arrière-plan ou l'image que je mets en fond d'écran, la fumée est quasiment invisible.
Pourriez-vous me suggérer une solution merci par avance.

Hello I am looking for a create a white smoke with particles.

Whatever the color of the background or the image I put as wallpaper, the smoke is almost invisible.
Could you suggest me a solution thank you in advance.


Download media files (5 KB)

Share this on FacebookShare this on X

Salut Patrick, ci-joint un exemple.
Sur le principe de mon exemple, on n'utilise pas NotLightnedAdditive.cfx (effet habituel sur les particules) qui ajoute de la lumière mais qui a une certaine transparence et c'est pour ça que tu n'obtiens pas une fumée assez opaque. A la place j'utilise NotLightened_NoDepthWrite.cfx mais comme ce n'est pas un effet additif il faut l'associer avec une texture à fond transparent (non noir) avec le format png (fond transparent).
Les effets additifs ajoutent les valeurs RGB du layer aux valeurs RGB qui se trouvent dessous, comme le noir vaut R=0,G=0,B=0 c'est comme si on ajoutait rien, du coup, le noir n'a aucune incidence et devient transparent ce qui n'est pas le cas dans un effet non-additif, donc, dans ce cas la texture de la particule doit être un png (image à fond transparent)
PS: RGB ou RGBA étant les composantes RED (rouge) GREEN (vert) BLUE (bleu) d'une couleur. Dans certains cas on ajoute la composante Alpha (A) pour définir la transparence (cas du format .png)

vv.matalot.fr...

vincent, 3 years ago


White is easy because there's nothing more white than white. Use the NotLightenedAdditive effect and your smoke will be white on all backgrounds. Except a white background because that will camouflage your smoke.

Black is also an easy colour because there's nothing more black than black. Use the NotLightenedSubtractive effect and your smoke will be black on all backgrounds. Except a black background because that will camouflage your smoke.

For more interesting colours, the AdvancedMaterials\NotLightened_NoDepthWrite effect can be useful as Vincent has demonstrated.

michiel, 3 years ago


Génial.
Vincent tu es décidément incontournable.
En prime ta fumée est plus réaliste que la mienne.
Michiel cet éclaircissement est très instructif.
Merci à vous deux

PAT67, 3 years ago


Additive blending adds the colour components (red, green, blue). So if you render a red particle (255,0,0) on a green background (0,255,0) you end up with yellow particles (255,255,0).

If you use subtractive blending, the colour components are subtracted. For example a red particle (255,0,0) on a yellow background (255,255,0) ends up as green (0,255,0).

red: 255-255=0
green: 255-0=255
blue: 0-0=0

By mixing all kinds of coloured particles, backgrounds (plasma layer) and blending effects you can create very interesting abstract backgrounds!

michiel, 3 years ago


Merci Michiel pour ces judicieux conseil.

PAT67, 3 years ago


Très instructive votre discussion, merci à vous tous. Surtout que je suis entrain de travailler sur une fontaine, pour mieux comprendre les particules... Le résultat devrait être là dans quelques jours...
Very informative your discussion, thank you all. Especially since I'm working on a fountain, to better understand the particles ... The result should be there in a few days ...

Alex-Raymond T., 3 years ago


Comment to this article

You must be logged in before you can comment to this article. Login | Register

More by PAT67

About PAT67

The best help is aid that helps you do without help

La meilleure aide c'est l'aide qui sert à se passer d'aide

72 articles 103,908 views

Contact PAT67 by using the comment form on this page or at patrick.halter@wanadoo.fr