T
im using d3d_draw_ellipsoid code and i see only d3d rotation x,y or z and axis, i tryed everthing and I didnt mange to work it. can you help me with some sample :/1. Rotate the model 90 degrees in your 3d modeler, export, and reload.
or
2. Use set identity, 3d rotation, and set intentity again in the draw event. [There's a good example in the help file.]
/// draw ellipsoid
d3d_start();
d3d_set_lighting(true);
d3d_light_define_point(1, -200, -123, -50, 5000, c_white);
d3d_light_enable(1, true);
d3d_light_define_ambient(c_white)
d3d_transform_set_rotation_x(90);
d3d_draw_ellipsoid(100, 100, 100, 200, 200, 200, tex, 1, 1, 24);
d3d_transform_set_identity();
/// draw ellipsoid
d3d_start();
d3d_set_lighting(true);
d3d_light_define_point(1, -200, -123, -50, 5000, c_white);
d3d_light_enable(1, true);
d3d_light_define_ambient(c_white)
d3d_transform_set_identity();
d3d_transform_set_rotation_x(90);
d3d_transform_add_rotation_y(inc);
d3d_transform_add_translation(100,100,100)
d3d_draw_ellipsoid(-100, -100, -100, 100, 100, 100, tex, 1, 1, 24);
d3d_transform_set_identity();
d3d_start();
d3d_set_lighting(true);
d3d_light_define_direction(1, -1, 0, .5, c_white);
d3d_light_enable(1, true);
// this can have an adverse effect on other graphical elements
d3d_light_define_ambient(c_dkgray)
// huh, lights don't work without this and it overwrites their colour?
draw_set_color(c_white);
d3d_transform_set_identity();
d3d_transform_set_rotation_x(90);
d3d_transform_add_rotation_y(inc);
d3d_transform_add_translation(150,150,150)
d3d_draw_ellipsoid(-100, -100, -100, 100, 100, 100, tex, 1, 1, 120);
d3d_transform_set_identity();
// set back to full bright
d3d_light_define_ambient(c_white)
d3d_end();