Raydium 3D Game Engine
https://memak.raydium.org/

Is it a bug?
https://memak.raydium.org/viewtopic.php?f=8&t=915
Page 1 of 1

Author:  Farabi [ Wed Nov 26, 2008 3:28 am ]
Post subject:  Is it a bug?

I compiled this code

Code:
/*
    Raydium - CQFD Corp.
    http://raydium.org/
    Released under both BSD license and Lesser GPL library license.
    See "license.txt" file.
*/

// This file is a default skeleton. Replace all [ ... ] sections with yours.
// Have fun !

#include "raydium/index.c"

char collide(int e1, int e2, dContact *c)
{
int i1,i2;
i1=raydium_ode_element_tag_get(e1);
i2=raydium_ode_element_tag_get(e2);


return 1;
}


void display(void)
{
raydium_joy_key_emul();

if(raydium_key_last==1027)
    exit(0);

if (raydium_key_last==1000+' '){
    int a;
    char name[RAYDIUM_MAX_NAME_LEN];

    a=raydium_ode_object_find("GLOBAL");
    raydium_ode_name_auto("box",name);
    raydium_ode_object_box_add(name,a,0.1,RAYDIUM_ODE_AUTODETECT,0,0,RAYDIUM_ODE_STANDARD,0,"Cube.tri");
    raydium_ode_element_move_name_3f(name,raydium_random_neg_pos_1(),raydium_random_neg_pos_1(),2);
}
raydium_clear_frame();
/* [ place your camera here ] */ raydium_camera_look_at(10,-2,2,0,0,0);
/* [ draw here ] */ raydium_ode_draw_all(0);
raydium_rendering_finish();
}


int main(int argc, char **argv)
{
raydium_init_args(argc,argv);
raydium_window_create(640,480,RAYDIUM_RENDERING_WINDOW,"My app");

raydium_texture_filter_change(RAYDIUM_TEXTURE_FILTER_TRILINEAR);
raydium_window_view_perspective(60,0.01,2500); // fov 60 + near and far planes

raydium_fog_disable();
raydium_light_enable();
raydium_light_on(0);

raydium_light_conf_7f(0,50,150,200,1000000,1,0.9,0.7); // id, pos, intensity and color (RGB)
raydium_background_color_change(1,0.9,0.7,1);

raydium_sky_box_cache();
raydium_ode_CollideCallback=collide;

/* [ place base scene here ] */ raydium_ode_ground_set_name("Ground.tri");

raydium_callback(&display);
return(0);
}

// EOF

}


Each time I pressed space key it spawn a cube, and I can spawn as many cube as I like. And then, I left the program running for breakfast, after 20 minutes when I press the space key, the object wont fall. Is it normal?

Author:  ouille [ Wed Nov 26, 2008 10:29 am ]
Post subject:  Re: Is it a bug?

Hello,

Yes, it seem to be a timecall bug.

There is a corrected version of raydium on the svn (version 806).

Update your local copy of raydium, and rebuild the dll.
Use something like tortoise svn.

have a nice day.
Ouille

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/