Jump to content

Laurens

Members
  • Posts

    564
  • Joined

  • Last visited

Posts posted by Laurens

  1. Hi everyone,

     

    I have been rewriting my project to apply Model-View-Controller. I like the idea of seperating game logic from rendering and input but I have hit a snag.

     

    In the engine, a TEntity is both a mesh and a physics body. The TEntity is contained within the view because it serves the rendering purpose. Now let's say a collision occurs in the game world that bounces the TEntity to a different location. There is no way to tell this to the model because the view is not allowed to change the state of the model and I do wish to keep this seperated.

     

    Now I though of a different solution and that is to contain the actual physics mesh (through LoadBody) in the Model, and the mesh (through LoadMesh) in the view, making the body the parent of the TEntity. My question is now, is it possible to set collisions callbacks and such on a Body? Is a Body also a TEntity?

     

    And will I run into any other snags I have overlooked right now using this method?

     

    Many thanks!

  2. This piece of code won't run, getting an error message from Windows saying the display driver has stopped responding, yet Editor works just fine.

     

    EDIT: the display driver crashes on both the RenderFramework call and the Flip call. UpdateFramework is fine.

     

    #include <stdlib.h>
    
    #include "engine.h"
    
    int main()
    {
    Initialize();
    Graphics(1280, 800);
    
    CreateFramework();
    
    while (!AppTerminate()
    	&& !KeyHit())
    {
    	UpdateFramework();
    	RenderFramework();
    
    	Flip();
    }
    
    Terminate();
    
    return EXIT_SUCCESS;
    }
    

  3. I have just tested the latest ATI drivers in a clean Windows 7 x64 installation and up-to-date version of Leadwerks. Same problem. Think I can safely rule out it was a problem relating to my configuration then.

     

    Edit: Editor runs just fine. I'm confused as to what it could be now ;)

  4. Hi,

     

    I have just updated the SDK and am no longer able to run my project. At the first call to RenderFramework(), Windows locks up, the screen goes black for about a second and when it's back, the LE window is unresponsive and I have to terminate the project from within Visual Studio. I have attached a screenshot of the log since it won't properly write to file.

     

    I am using the latest ATI drivers, released 8/25/2010, version 8.762.0.0.

     

    Other specs are in my profile.

     

    Any clue as to why this is happening appreciated!

     

    Thanks!

    post-62-056598000 1283437719_thumb.png

  5. Indefinatly. Although minor upgrades are free, you will have to pay for the large ones.

     

    For instance, upgrading from 2.32 to 2.4 was free, but from 2.4 to 3.0 will not be. Buying 2.4 now and then upgrading to 3.0 will be cheaper then waiting for 3.0 and buying the engine then though.

     

    Cheers!

  6. Short answer: no.

    Long answer: I'm sure there's a way to hack it in but it will be really awkward. After all, they're called character controllers for a reason. :)

     

    From the wiki:

     

    Controllers are specialized bodies used to control the movement of liviing entities in the world. They allow you to move, strafe, sprint, jump, and lunge.

     

    Why do you need to use a controller anyway? Can't you just use the body commands to achieve the behaviour you need?

     

    Cheers!

  7. @Rick: When the Loadscene command is being called it starts to load all the scene assets but in the meanwhile the program itself continues.

     

    Have you verified? I am writing my game in C++ and have not done any explicit testing for this but as far as I can tell, LoadScene blocks the entire update/render loop and continues when it is done loading. I was planning on implementing a loading screen as Lazlo suggested earlier in this thread.

  8. 1) What is

    userdata:

    binary section.

     

    I suppose this is the data that users assign to an entity using SetEntityUserData(). Not sure though. Macklebee beat me to it :)

     

    2) Where is an information about connected lua scripts? In gmf file?

     

    I believe this is not saved anywhere. Scripts are automatically attached to entities that have the same filename. Not sure though :)

  9. Being stuck with the original drivers just because it's a laptop would be lunacy! :)

     

    You can download drivers for the Mobility Radeon from http://ati.amd.com (go "Notebook Graphics", "Mobility Radeon Series"). I think that will fix most of your problems. I would not expect great performance on that card though.

     

    Cheers!

×
×
  • Create New...