Jump to content

Gabriel

Members
  • Posts

    96
  • Joined

  • Last visited

Posts posted by Gabriel

  1. Here is the source of explosion class.It's very basic and I think everybody can edit it to optimize it for your application.

     

    (included materials and textures smile.png

    Explode.rar

     

    Test:

    Explode explosion0;
    explosion0.CreateExplosions(Vec3(10,10,10),1);
    and in the loop
    explosion0.Update();
    

     

     

     

    Why?

     

    Hello,

     

    I'd like to change the dimention of the explosion (smaller) without changing the position z ;-)

     

    I tried to put a scale parameter of the radius, but it change the diameter of a particle :-( but not of the explosion.

     

    anyone has a solution for me?

     

    Thank you in advance

  2. Hello,

     

    I would like to move my camera which fixes point (Target) between two points (A and B).

     

    TVec3 Target(….)
    TVec3 A(….)
    TVec3 B(….)
    Frame = 200
    TVec3 Inc = (B-A)/Frame
    
    For( int i=0;i<Frame;i++)
    {
      MoveEntity(CameraPivot,inc);
      PointEntity(Camera,TargetEntity);
      PositionEntity(Camera,EntityPosition(m_CameraPivot),1);
      Render();
    }
    

     

    My problem is that the camera does not go in the direction of point B !!!

     

    Help me please ^^

     

    Gabriel

  3. LuaToCee is not a converter, I wonder what use a "LuaToCee"? ;-)

     

    I would translate the Lua code in C

     

    function blabla (foo)
    foo = foo + 1
    return foo
    

    in

    foo_type bblabla(foo foo_type)
    {
    foo = foo + 1;
    return foo;
    }
    
    

     

    Thank ;-)

     

    Gabriel

  4. Hello,

    I would use a post-filter:

       m_postfilterBW LoadShader = ("abstract :: postfilter.vert", "abstract :: postfilter_desaturate.frag");
    

     

    In my loop I have this:

       SetBuffer (m_Gbuffer);
       UpdateFramework ();
       RenderFramework ();
       SetBuffer (backbuffer ());
       SetShader (m_postfilterBW);
       DrawImage (GetColorBuffer (m_Gbuffer), 0, GraphicsHeight (), GraphicsWidth (), GraphicsHeight-());
       SetShader (0);
       Flip();
    

     

    but it does absolutely not what I hoped :-( !!!

     

    Have you any idea?

×
×
  • Create New...