Jump to content

ParaToxic

Members
  • Posts

    425
  • Joined

  • Last visited

Posts posted by ParaToxic

  1. I didn't become a compiler error but when the application started(1-2 secs after it starts).

     

    The window says(in german :))

    Unbehandelte Ausnahme bei 0x77bfe754 in gui.exe: 0xC0000005: Zugriffsverletzung beim Schreiben an Position 0x00000000.

     

    Sorry it was an error in my class with the ifstream :D

    Pls delete

  2. Hey , I am very confused right now :)

     

    I make a animated texture class and want to save some coordinates from a file into TVec2 variables.

    As the loaded file contain the number of the coordinates I have to create a dynamic TVec2 Array.

     

    So I write TVec2* coords;

     

    and later (only example) coords = new TVec2[5];

     

    But I become an error.

    Why?

  3. Hey I have a question .Can I load a kind of pieces from one texture file ? Look at that:

    explosion17.png

     

    I think when I programmed in Blitz3D it was possible to call every pic in the texture to make an animated texture

  4. In the Explosion.cpp file (overwrite the other):

    else if(Trailtime < 0.1)
    {
     for(int i = 0;i < 6;i++)
     PauseEmitter(smoke[i]);
     if(EmitterPaused(smoke[5]))
      active = false;  //The emitter are ready for a new explosions
    }
    

     

     

    Now when you check the active state first it works ;D

  5. yes I know this error.Have you created some explosions in the same time?

     

    You have to wait for the active variable,because when you create a new explosion in the same time as the other isn't ready (not all emitters are created) you overwrite the old emitters,so the old emitter wouldn't stop.

     

    When you create only 1 class ,you have to wait for the "active" variable,than it would work biggrin.png

     

    Something like :

     

    Explode ex;
    
    loop:
    ex.Update();
    if(KeyHit(KEY_A) && ex.active == false)
       ex.CreateExplosions(Vec3(2,3,4),1);
    
    

  6. 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();
    

     

    Hl2 smg?

     

    Why?

    • Upvote 1
  7. And another question about the framework.For making heat haze I have to get the lightbuffer and set it to the material.I know that the Framework renderer has a lightbuffer ,so it render the lights not in the backbuffer,but I don't know how to get them.

     

    I hope somebody can help me ;D

  8. yes thanks biggrin.png

     

    An other problem is that the engine render the emitter before the postfilter and I become with the DOF shader a funny bug :

     

    post-2191-0-72145200-1332098717_thumb.jpg

     

    I render the emitter like said in the wiki ,with the framework in the first layer(-1,0,1)

×
×
  • Create New...