Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, SBGuy, Petra, flink, 1 invisible), 699 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
particles #238578
11/28/08 12:15
11/28/08 12:15
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
I want to attach a particle effect to an mdl vertex in Lite C. Does anyone have an example of this done in script?

Re: particles [Re: vertex] #238585
11/28/08 12:58
11/28/08 12:58
Joined: Apr 2007
Posts: 582
Germany
Poison Offline
User
Poison  Offline
User

Joined: Apr 2007
Posts: 582
Germany
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);



Everything is possible, just Do it!
Re: particles [Re: Poison] #238644
11/28/08 21:29
11/28/08 21:29
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
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.

Re: particles [Re: vertex] #238655
11/29/08 00:06
11/29/08 00:06
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
See the post up from "Poison". That is all you need...

Re: particles [Re: Widi] #238658
11/29/08 01:41
11/29/08 01:41
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
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.

Re: particles [Re: vertex] #238664
11/29/08 03:50
11/29/08 03:50
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
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);
}


}

Re: particles [Re: badapple] #238780
11/30/08 04:38
11/30/08 04:38
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
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..

Re: particles [Re: vertex] #241646
12/17/08 20:34
12/17/08 20:34
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
AUM 64 Particle workshop

The AUM search is very useful for finding beginners scripts


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: particles [Re: yorisimo] #241755
12/18/08 17:00
12/18/08 17:00
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline
Senior Member
sadsack  Offline
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
very nice yorisimo
renny


I have A7 Commercial .............. Now I just need to learn how to use it


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