Jump to content

DaDonik

Members
  • Posts

    376
  • Joined

  • Last visited

Posts posted by DaDonik

  1. Reply will it be possible to be as goood as this one ?

    Of course it will be as good as that one!

    The fact that newton runs on the CPU and the demo you show runs on the GPU doesn't affect speed at all!

    Get a brain...or stop trolling...

     

    @ Shadmar

    Can't try that demo, as i don't have LE3 installed, sorry.

  2. I have a hard time figuring out why you posted that.

    Apart from posting way to much, you should also get some english lessons. Sometimes it's really hard for me to understand what you try to say. I'm sorry if you are dyslexic, but if thats the case you should simply not post that much...

  3. All of these full screen post effects are working on a per pixel basis, which is why the number of pixels is the most important performance factor. In the case of DOF it is always working on all pixels, so it doesn't really matter what near and far distance you set.

    It might be that the per pixel calculation gets more or less complicated when you change near and far distance, but that would be not a huge factor.

  4. Error handling in the LE2 Editor is not really existing. I would highly suggest not to use LUA with LE2 if you are new to programming.

    Even though i'm quite proficient in C++, i still have problems using LUA scripting.

    A simple typo will cause that "EXCEPTION_ACCESS_VIOLATION", while any C++ compiler will complain about it.

     

    Everything works fine other than the fact that when I press escape, it comes up with a message saying "EXCEPTION_ACCESS_VIOLATION" and then the Editor closes.

    Normally after the main loop a program closes. At that point the engine is already unloaded.

    So why are you calling ShowMouse()? =)

  5. The solution is pretty simple, but not obvious if your are not used to C++.

    You just can't compare a char* and a string.

    if(GetEntityKey(entity1,"name")=="test_box")
    

     

    Where GetEntityKey(...) is returning a char*.

    One way to do it would be to convert the char* to a string and then compare the two strings:

    std::string strEntityName = GetEntityKey(entity1,"name");
    if (strEntityName =="test_box")
    {
    .....
    }
    

     

    if the compiler complains about the std::string, just include the string header:

    #include <string>
    

    • Upvote 2
  6. EntityDistance() works on the origin of the entity, so that wouldn't be accurate with such a huge plane.

    Since the world is just a huge box, all you need is to check if one of the coordinates is near the size of the world in that direction.

    You could also make a physics box and scale it so it is more or less a plane. Then use the collision callback to free any entity that collides with it. Do that for all 6 sides and you have it. Oh and make sure the physics boxes are inside the world, otherwise it won't work.

  7. Just a small tip:

    Instead of multiple calls to KeyDown(KEY_A) you could save the result in a variable and use that.

    bool bKeyDownA = KeyDown(KEY_A);
    ....
    if (bKeyDownA)
    {
    ....
    }
    

     

    That saves some time, because it only has to Call KeyDown(KEY_A) once.

    Not that it gives you much performance, but things like that add up easily, as your program evolves.

     

    Oh and there is no judgement involved, just a simple tip wink.png

    • Upvote 1
  8. You can do it that way:

    if (KeyDown(KEY_W))
    {
    sequence = 2;
    }
    else if (KeyDown(KEY_A))
    {
    sequence = 2;
    }
    else if (KeyDown(KEY_S))
    {
    sequence = 2;
    }
    else if (KeyDown(KEY_D))
    {
    sequence = 2;
    }
    else
    {
    sequence = 1;
    }
    

     

    Or even that way (if W, A, S, D all should do the same)

     

    if ((KeyDown(KEY_W) || KeyDown(KEY_A) || KeyDown(KEY_S) || KeyDown(KEY_D))
    {
    Sequence = 2;
    }
    else
    {
    Sequence = 1;
    }
    

    • Upvote 1
  9. Also, is it possible or a big job to ignore the build in NGD and somehow integrate the latest version of NGD?

    Most ppl asking things like that will probably not manage to do it...biggrin.png

    You would have to throw away all LE2 physics commands and replace them with your own implementation.

    Since you have no LE2 source code (i think) you can't change the commands and rebuild the engine.

    That means for every LE2 mesh you load you would have to create and maintain a physics body with NGD all by yourself. blink.png

     

    Dunno about the NGD version that is used with LE2.5

×
×
  • Create New...