Nitro engine Demo

Discussion in 'NDS - Emulation and Homebrew' started by Mills32, Nov 8, 2014.

  1. Mills32
    OP

    Mills32 Newbie

    Newcomer
    6
    2
    Oct 6, 2014
    Hi.
    Some time ago i found Nitro Engine. a c 3d Engine for DS.

    I'm trying to make a platform-ball-puzzle game with this. It is really possible. But the engine has limited physics.
    I'd need some kind of simple ball physics engine for this to complete the game.

    I'm also making this game for PSP (with ONElua, a new lua interpreter with really good physics)

    If somebody knows how to add ball-physics for NDS, it would help a lot.

    This is the intro scene, a rotating planet:


    [​IMG]


    I'd also like the 3d obj to be rendered with integer calculations. i mean like the psx did.. and a lot of NDS games do, this engine makes very precise calculations and the objects look smooh. But i'd like to do it faster.
     
    gothic4 and YoshiInAVoid like this.
  2. YoshiInAVoid

    YoshiInAVoid GBAtemp Advanced Fan

    Banned
    560
    337
    Jan 10, 2011
    For working in 3D on the DS, everything should be done to the 12'th fractal part rather than floats where possible.

    For example instead of this:

    Code:
    float half = 0.5f;
    float x = 20.0f;
    float result = x * half;
    You should use the libnds fixed point operations:

    Code:
    int half = (1 << 12) / 2;
    int x = 20 << 12;
    int result = mulf32(x, half);
    Untested, but you get the idea. Most libnds 3D functionality uses this system, for example in matrix multiplication.

    For models I'd recommend using smealum's code from Portal DS, it supports animated Quake 2 models (.MD2) with interpolation.

    I haven't tried using the physics code from Portal DS, but he talks about it here.

    From that screenshot your game looks really cool! I made a Super Mario Galaxy DS demo a few weeks ago, but other than that I don't really have much 3D experience. Best of luck!