Advanced Question adding dust exhaust

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,747
Reaction score
2,732
Points
203
Location
Dallas, TX
How can I add exhaust/dust to a vessel. In the SC3 eagle it has dust going off the pads as you are taking off. I figure it is exhaust matching the hover thruster. This is from the config

Code:
[PARTICLESTREAM_1]
NAME=EGContrail
SRCSIZE=7.0
SRCRATE=3
V0=150.0
SRCSPREAD=0.3
LIFETIME=3.5
GROWTHRATE=4
ATMSLOWDOWN=3.0
LTYPE=DIFFUSE
LEVELMAP=LVL_PSQRT
LMIN=0
LMAX=2
ATMSMAP=ATM_PLOG
AMIN=1e-4
AMAX=1

[PARTICLESTREAM_2]
NAME=EGMain
SRCSIZE=1.7
SRCRATE=10
V0=150.0
SRCSPREAD=0.1
LIFETIME=0.2
GROWTHRATE=16
ATMSLOWDOWN=1.0
LTYPE=EMISSIVE
LEVELMAP=LVL_SQRT
LMIN=0
LMAX=1
ATMSMAP=ATM_PLOG
AMIN=1e-5
AMAX=0.1

[PARTICLESTREAM_3]
NAME=EGHover
SRCSIZE=0.5
SRCRATE=25
V0=50.0
SRCSPREAD=0.1
LIFETIME=0.05
GROWTHRATE=7
ATMSLOWDOWN=1.0
LTYPE=EMISSIVE
LEVELMAP=LVL_SQRT
LMIN=0
LMAX=1
ATMSMAP=ATM_PLOG
AMIN=1e-5
AMAX=0.1

[PARTICLESTREAM_4]
NAME=EGHContrail
SRCSIZE=1
SRCRATE=3
V0=33.0
SRCSPREAD=0.3
LIFETIME=1
GROWTHRATE=4
ATMSLOWDOWN=3.0
LTYPE=DIFFUSE
LEVELMAP=LVL_PSQRT
LMIN=0
LMAX=2
ATMSMAP=ATM_PLOG
AMIN=1e-4
AMAX=1

MAIN_PSTREAM1=EGContrail
MAIN_PSTREAM2=EGMain
HOVER_PSTREAM1=EGHContrail
HOVER_PSTREAM2=EGHover
 

PhantomCruiser

Wanderer
Moderator
Tutorial Publisher
Joined
Jan 23, 2009
Messages
5,605
Reaction score
168
Points
153
Location
Cleveland
Over at the 'hanger someone uploaded an atmosphere for the moon, I thought it was kinda strange at first. But his intent was to mimic a dust-off during launch (or recovery). The atmo only extends a couple of meters IIRC, and the effect is pretty good.

I like what AMSO does though, that's a small duststorm as the LEM gets to short final. But I've no clue as to how it was done.

Fantastic work on your '1999 work, I've got them all.:thumbup:
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,747
Reaction score
2,732
Points
203
Location
Dallas, TX
Thanks. I just figured it was a particle stream? that followed the hover thrust.
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
I swear there was an addon called Orbiter Hover Dust, or something along those lines, but I can find no trace of it anywhere. (Am I crazy? Did I imagine this?) I believe it added the hover dust-off effect to all ships in Orbiter that have hover engines. I'll have to go through my addon collection when I get home from work this evening and see if I have it downloaded.
 
Last edited by a moderator:

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
I think it is in the coding.

For the Eagle, yes I believe it is. I think the EGHContrail (for EaGle Hover Contrail?) is the section that does it.

I was just (attempting) to present another answer to the question, "How can I add exhaust\dust to a vessel?" Unfortunately it appears the addon I sought to present that answer has been removed.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,747
Reaction score
2,732
Points
203
Location
Dallas, TX
Thanks this is what I have code for it:
Code:
SURFHANDLE tex_main = oapiRegisterExhaustTexture ("1999/Exhaust_atsme");
    SURFHANDLE tex_retro = oapiRegisterExhaustTexture ("1999/Exhaust_atsme");
    SURFHANDLE tex_hover = oapiRegisterExhaustTexture ("1999/Exhaust_atsme");


    th_main = CreateThruster (_V(0,0,-4.3), _V(0,0,1), MAXRCSTH, TANK, ISP);
    CreateThrusterGroup (&th_main, 1, THGROUP_MAIN);
    AddExhaust (th_main, 12, 2, _V(2.45,0.57,-16.723), _V(0,0,-1),tex_main);    
    AddExhaust (th_main, 12, 2, _V(-2.41,0.57,-16.723), _V(0,0,-1),tex_main);    
    AddExhaust (th_main, 12, 2, _V(0,-0.76,-16.723), _V(0,0,-1),tex_main);    
    AddExhaust (th_main, 12, 2, _V(0,1.89,-16.723), _V(0,0,-1),tex_main);    


    PARTICLESTREAMSPEC contrail_main = {
        0,7, 3, 150, .3, 3.5, 4, 3,  PARTICLESTREAMSPEC::DIFFUSE,
        PARTICLESTREAMSPEC::LVL_PSQRT, 0, 2,
        PARTICLESTREAMSPEC::ATM_PLOG, 1e-4, 1
    };
    
    PARTICLESTREAMSPEC exhaust_main = {
        0,1.7, 10, 150, .1, .2, 16, 1,  PARTICLESTREAMSPEC::EMISSIVE,
        PARTICLESTREAMSPEC::LVL_SQRT, 0, 1,
        PARTICLESTREAMSPEC::ATM_PLOG, 1e-5, 0.1
    };


        th_hover = CreateThruster (_V(0,0,0), _V(0,1,0), MAXHOVERTH, TANK, ISP);
    CreateThrusterGroup (&th_hover, 1, THGROUP_HOVER);
    AddExhaust (th_hover, 6, 1, _V(0.64,-1.5,8.9), _V(0,-1,0),tex_hover);
    AddExhaust (th_hover, 6, 1, _V(-0.64,-1.5,8.9), _V(0,-1,0),tex_hover);    
    AddExhaust (th_hover, 6, 1, _V(-0.64,-1.5,-10.215), _V(0,-1,0),tex_hover);    
    AddExhaust (th_hover, 6, 1, _V(0.64,-1.5,-10.215), _V(0,-1,0),tex_hover);    
    
PARTICLESTREAMSPEC contrail_hover = {
        0,1, 3, 33, .3, 1, 4, 3,  PARTICLESTREAMSPEC::DIFFUSE,
        PARTICLESTREAMSPEC::LVL_PSQRT, 0, 2,
        PARTICLESTREAMSPEC::ATM_PLOG, 1e-4, 1
    };
    
    PARTICLESTREAMSPEC exhaust_hover = {
        0,.5, 25, 50, .1, .05, 7, 1,  PARTICLESTREAMSPEC::EMISSIVE,
        PARTICLESTREAMSPEC::LVL_SQRT, 0, 1,
        PARTICLESTREAMSPEC::ATM_PLOG, 1e-5, 0.1
    };

I get main exhaust and hover exhaust but not the dust part.
 

eveningsky339

Resident Orbiter Slave
Addon Developer
Donator
Joined
May 3, 2008
Messages
1,062
Reaction score
1
Points
0
Location
Western Maine
I searched for computerex's OH username (I believe it was mohd) and found nothing. He had all his addons, including the hover dust one mentioned, in a compilation, but evidently they are not there anymore.

If I remember correctly from the API reference, hover dust is basically created with particle streams. As for how to implement them, my knowledge more or less ends there. :)

My educated guess is that one would create a "fake" engine which spews nothing but exhaust, giving the illusion of dust. But obviously it's a little more complicated than that.

Are you trying to do this in SC3 or a .dll?
 
Top