Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 17,758 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
smoke shader #113358
02/22/07 21:04
02/22/07 21:04
Joined: Oct 2006
Posts: 24
USA
L
laohu316316 Offline OP
Newbie
laohu316316  Offline OP
Newbie
L

Joined: Oct 2006
Posts: 24
USA
Hello, I am looking for a smoke shader for a burning cigarette. I have the script below, but cannot figure out what smoke_mat does and how can I modify it?

var __smoke_init = 0;

material smoke_mat
{
skill1 = 0;
skill2 = 0;
}


//Initializes the smoke shader
function smoke_init()
{
if(__smoke_init == 0)
{
me.skill41 = 0;
me.skill42 = 0;
me.skill43 = 0;
me.skill44 = 0;



__smoke_init = 1;
}
}

action smoke_shader
{
smoke_init();

my.material = smoke_mat;
my.transparent = on;

while(1)
{
//This block scrolls the texture
if(smoke_mat.skill1 > 999)
{
smoke_mat.skill1 = 0;
}
else
{
smoke_mat.skill1 += 0.02 * time;
}

if(smoke_mat.skill2 > 999)
{
smoke_mat.skill2 = 0;
}
else
{
smoke_mat.skill2 += 0.01* time;
}

//make plane "face" camera
vec_set(temp, camera.x);
vec_sub(temp, my.x);
vec_to_angle(temp, temp);
my.pan=temp+180;
// my.tilt = 0;
// my.roll = 0;

//This block updates the position of the
//smoke's "tail," moving it closer to the
//head if it is beyond our tolerances
//TODO::



//loop on the next frame
wait(1);
}
}

Re: smoke shader [Re: laohu316316] #113359
02/22/07 21:13
02/22/07 21:13
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Uhm, nothing.


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: smoke shader [Re: ChrisB] #113360
02/22/07 21:15
02/22/07 21:15
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Lol, hes right Look in the manual for 'effect' for smoke particles.


Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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