[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Textures Additives!
At 17:24 10/02/2003 +0100, you wrote:
>Le 10/02/03 17:10, « Alexx » <earthwormjim@free.fr> a écrit :
>
> >
> >> http://www.director-online.com/accessArticle.cfm?id=1110
> >
> > cool, ça fais au moins 8 mois que j'avais trouvé comment faire ça :p
> >
> > j'avais même posté la solution ici et j'avais aussi d'iffusé le
>code source
> > dans ma démo avec les missiles à tetes chercheuses....
> >
> > comme quoi.....
>
>Ah ba désolé, ça m'avait échappé ^_^;
>Bravo à toi!
bah merci....
par contre, leur script est vachement compliqué....
mon truc est plus simple... mais moins automatique aussi
la texture "vide" est une texture en 32 bits de 16x16 avec une couche
alpha
qui la rend complètement transparente
la texture "Explosition" est une texture 32 bits, avec la couche alpha
de
l'explosion et l'explosion elle même sur fond noir
pBoomShader=member("scene").newshader("BoomShad",#standard)
pBoomShader.shininess=0
pBoomShader.usediffusewithtexture=true
pBoomShader.diffuse=rgb(0,0,0)
pBoomShader.transparent=true
pBoomShader.texturelist[1]=member("scene").texture("vide") -- 32bits
pBoomShader.texturelist[2]=member("scene").texture("Explosion") --
alpha
pBoomShader.texturemodelist[2]=#wrapplanar
pBoomShader.texturerepeatlist[2]=false
pBoomShader.blend = 0.0
pBoomShader.blendsourcelist[1] = #constant
pBoomShader.blendsourcelist[2] = #alpha
pBoomShader.blendfunctionlist[1] = #blend
pBoomShader.blendfunctionlist[2] = #add
pBoomShader.blendconstantlist[1] = 0.0
voila, c'est tout
a+
Alexx
pistes-l List Home |
Main Index |
Thread Index
Search archives
|