hi
I have a little problem... so i need your help...
i create a fire manager with this code...
var eFireFX: TGLFireFXManager;
eFireFX:= TGLFireFXManager.Create(Self);
eFireFX.Cadencer:= GLCadencer1;
eFireFX.Disabled:= False;
eFireFX.FireDensity:= 0.6;
eFireFX.FireEvaporation:= 0.86;
eFireFX.FireRadius:= 0.8;
eFireFX.InnerColor.Color:= clrYellow;
eFireFX.MaxParticles:= 512;
eFireFX.OuterColor.Color:= clrOrange;
eFireFX.ParticleInterval:= 0.01;
eFireFX.ParticleSize:= 0.5;
eFireFX.Paused:= False;
eFireFX.InitialDir.X:= 0.85;
eFireFX.InitialDir.Y:= 0.85;
eFireFX.InitialDir.Z:= 6;
eFireFX.UseInterval:= True;
Then i add a sphere or a hudprite a camera points either a lightsource... and
i add this code to add the fire to object...
with TGLBFireFX(GLSphere1.AddNewEffect(TGLBFireFX)).Manager:= eFireFX;
Run and wait to see the fire glows in object but... no...
Something i do wrong so any help...
Pavel i see the demos... the real thing is that i want to do in run time... so
1. I can't manage to load a firefx into a sphere.. and the fire burns...
2. I can't find an simple sample program to show me how to manage the TXcollection ...
Any sample have preconfigurate the things before on design i want it to create in run time...
Thank you...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
azrael11,
1.Look at more demos in attachments
and
2. you don't need to manage TXCollection directly because you have
constructor TGLBFireFX.Create(aOwner: TXCollection);
PW
hi
I have a little problem... so i need your help...
i create a fire manager with this code...
var eFireFX: TGLFireFXManager;
eFireFX:= TGLFireFXManager.Create(Self);
eFireFX.Cadencer:= GLCadencer1;
eFireFX.Disabled:= False;
eFireFX.FireDensity:= 0.6;
eFireFX.FireEvaporation:= 0.86;
eFireFX.FireRadius:= 0.8;
eFireFX.InnerColor.Color:= clrYellow;
eFireFX.MaxParticles:= 512;
eFireFX.OuterColor.Color:= clrOrange;
eFireFX.ParticleInterval:= 0.01;
eFireFX.ParticleSize:= 0.5;
eFireFX.Paused:= False;
eFireFX.InitialDir.X:= 0.85;
eFireFX.InitialDir.Y:= 0.85;
eFireFX.InitialDir.Z:= 6;
eFireFX.UseInterval:= True;
Then i add a sphere or a hudprite a camera points either a lightsource... and
i add this code to add the fire to object...
with TGLBFireFX(GLSphere1.AddNewEffect(TGLBFireFX)).Manager:= eFireFX;
Run and wait to see the fire glows in object but... no...
Something i do wrong so any help...
Thank you...
azrael11,
What is your attchment for? See samples on using the fire manager in demos.
PW
Pavel i see the demos... the real thing is that i want to do in run time... so
1. I can't manage to load a firefx into a sphere.. and the fire burns...
2. I can't find an simple sample program to show me how to manage the TXcollection ...
Any sample have preconfigurate the things before on design i want it to create in run time...
Thank you...
azrael11,
1.Look at more demos in attachments
and
2. you don't need to manage TXCollection directly because you have
constructor TGLBFireFX.Create(aOwner: TXCollection);
PW
Last edit: Pavel Vassiliev 2015-10-23
Thank you Pavel...
Everything is ok now...
Thank you...