Menu

FireFX...

Help
azrael11
2015-10-22
2015-10-27
  • azrael11

    azrael11 - 2015-10-22

    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...

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2015-10-23

    azrael11,
    What is your attchment for? See samples on using the fire manager in demos.
    PW

     
  • arc-azrael11

    arc-azrael11 - 2015-10-23

    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...

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2015-10-23

    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
  • arc-azrael11

    arc-azrael11 - 2015-10-27

    Thank you Pavel...
    Everything is ok now...

    Thank you...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.