Project smokestack

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
10,540
Reaction score
4,372
Points
203
Location
Dallas, TX
I am trying to make a smoke stack vessel. Basically a tower mesh with a flame coming out like the the one here in the Delta4 add on.
https://dl.dropboxusercontent.com/u/71242599/smokestack2.jpg
But this is what I get. When I place the tower no problem. When I fire the thruster. The tower leans down.

https://dl.dropboxusercontent.com/u/71242599/newsmokestack.jpg

Code:
SURFHANDLE     tex_main = oapiRegisterParticleTexture ("Contrail2-mod");

PROPELLANT_HANDLE TANK;
    TANK = CreatePropellantResource (FUELMASS);

    th_main = CreateThruster (_V(0,0,0), _V(0,-1,0), MAXMAINTH, TANK, ISP);
    CreateThrusterGroup (&th_main, 1, THGROUP_MAIN);

        AddExhaust (th_main,.5,.1,_V(0,24,0),_V(0,1,0));
    SURFHANDLE     fire_tex = oapiRegisterParticleTexture ("Contrail2-mod");

 PARTICLESTREAMSPEC fire1 = 
    {
        0, 5, 20, 20, 0.01, 8, -2, -1.0, PARTICLESTREAMSPEC::EMISSIVE,
        PARTICLESTREAMSPEC::LVL_PSQRT, 0, 2,
        PARTICLESTREAMSPEC::ATM_PLOG,1e-4, 1,fire_tex
    };

    PARTICLESTREAMSPEC smoke = {
        0, 2, 10, 150, 0.1, 0.2, 16, 1.0, PARTICLESTREAMSPEC::DIFFUSE,
        PARTICLESTREAMSPEC::LVL_SQRT, 0,1,
        PARTICLESTREAMSPEC::ATM_PLOG, -.5, .1
    };
    PARTICLESTREAMSPEC fire2 = {
        0, 20, 6, 30, 0.03, 1.5, 0.1, -1.0, PARTICLESTREAMSPEC::EMISSIVE,
        PARTICLESTREAMSPEC::LVL_PSQRT, 0, 2,
        PARTICLESTREAMSPEC::ATM_PLOG,1e-4, 1,fire_tex
    };
   // fire.tex = oapiRegisterParticleTexture ("Contrail2-mod");        
    


    AddExhaustStream (th_main, _V(0,24,0),&fire1);
        AddExhaustStream (th_main, _V(0,24,0),&fire2);
 
Have you tried making the tower so heavy, that the thrust from the main engine can't move it?

Another idea would be to change the engine group from main to hover.
 
Thanks. made the changes but same results.
Code:
const double FUELMASS = 100;
const double ISP = 2.5e5;
const double MAXMAINTH = .001;

Code:
	SetEmptyMass (550000000.0);
Code:
    th_hover = CreateThruster (_V(0,0,0), _V(0,-1,0), MAXMAINTH, TANK, ISP);
    CreateThrusterGroup (&th_hover, 1, THGROUP_HOVER);

        AddExhaust (th_hover,.5,.1,_V(0,24,0),_V(0,1,0));
 
Code:
    th_hover = CreateThruster (_V(0,0,0), _V(0,1,0), MAXMAINTH, TANK, ISP);
    CreateThrusterGroup (&th_hover, 1, THGROUP_HOVER);

and you can set thrust to minimum (1N) also you can set touchdown points really wide (50-100 meters apart)
 
Thanks
Code:
	SetTouchdownPoints  (_V(0,0,900), _V(-400,0,-900), _V(400,0,-900));; //28
But the same results.
Here is what my thruster looks like. Normally for hover it should be

Code:
th_hover[0] = CreateThruster (_V(0,0,0), _V(0,1,0), PB_MAXHOVERTH, hpr, PB_ISP);

But I want the exhaust to go up
https://dl.dropboxusercontent.com/u/71242599/smokethruster.jpg
 
Why do you create a thruster for a smoke stack? Just add a generic particle stream (important: Invert direction relative to the thruster direction).
 
you can also simply put main thrust to 0, so there will be no effects and no fuel consumption
 
you can also simply put main thrust to 0, so there will be no effects and no fuel consumption

Yes - but thats not needed. For the generic particle stream, you only need a double variable to set the intensity level.

For the thruster, you need this thruster, a propellant resource...
 
Back
Top