particles

Posted By: vertex

particles - 11/28/08 12:15

I want to attach a particle effect to an mdl vertex in Lite C. Does anyone have an example of this done in script?
Posted By: Poison

Re: particles - 11/28/08 12:58

use vec_for_vertex wink

ok here ist the "code-snipped"
Code:
...
VECTOR vecvertex;
vec_for_vertex(my,vecvertex,vertexnumber);
...
effect(particlefunc,30,vecvertex,normal);

Posted By: vertex

Re: particles - 11/28/08 21:29

Thank you. I downloaded easy particle and have learned how to use it but am having trouble integrating output into a lite c project.

I need a more detailed example... one that include say a box with a simple particle effect attached to one of it's vertices...a working script.

Any help is greatly appreciated. Thanks.
Posted By: Widi

Re: particles - 11/29/08 00:06

See the post up from "Poison". That is all you need...
Posted By: vertex

Re: particles - 11/29/08 01:41

I'm an artist; I need more help.

A Lite C particle workshop is missing from the Lite C Workshop. I've gone through those workshops.

I still need more help. I need a full example in Lite C script so that I can see how it works. Any help is appreciated, and I'm sure that would benefit others who have come to the "Getting Started" area.
Posted By: badapple

Re: particles - 11/29/08 03:50

here you go/////////////////////////


BMAP* smoke_tga = "smoke.tga";

function fire_effect_fun(PARTICLE *p)
{
p.size -= 1 *time_step;
p.alpha -= 5 *time_step;
if(p.alpha <= 0)
p.lifespan = 0;
}

function fire_effect(PARTICLE *p)
{

p.blue = 50 ;
p.green = 100 ;
p.red = 255 ;
p.bmap = smoke_tga;
p.vel_x = random( 1 ) - .500 ;
p.vel_y = random( 1 ) - .500 ;
p.vel_z = random( 5 );
p.size = 12 ;
p.alpha = 70 ;
p.gravity = 0 ;
set(p, TRANSLUCENT|BRIGHT|MOVE);
p.event = fire_effect_fun;
}


action particle_generator()
{
VECTOR temp[3];
while(1)
{

vec_for_vertex(temp,my,1);
effect(fire_effect,10,temp,nullvector);



wait(1);
}


}
Posted By: vertex

Re: particles - 11/30/08 04:38

I think a lot of folks would benefit from a particle lite c workshop to be added to the others.

New folks need a complete example that includes mdl and level file w/ particle effect attached to a vertex and not too much extra stuff to obscure it-- along with some explanation.

I think that the absence of a lite c particles editor really makes it challenging to focus on just creating.

I think the solution is to keep the scripting language stable for some time so that such a tool won't be obsolete quickly. An artist is asked to know how to paint, draw, sculpt, learn 3d tools, 2D tools, animate, create environments and acrchitecture... along with a bunch of other stuff-- like deal with version control software and IT/hardware issues. The time to really getting into scripting artistic effects is not really there...so again any more help is appreciated.

Thanks..
Posted By: yorisimo

Re: particles - 12/17/08 20:34

AUM 64 Particle workshop

The AUM search is very useful for finding beginners scripts
Posted By: sadsack

Re: particles - 12/18/08 17:00

very nice yorisimo
renny
© 2024 lite-C Forums