You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
j3d_start(scene_width, scene_height); // Only needs to be called once, it starts the WebGL renderer.
j3d_scene_create_perspective(); // Sets up a perspective camera for the scene.
j3d_model_get_ind(); // Returns the next available model id
j3d_create_block(id, x, y, z, x_lenth, y_length, z_length, colour); // Creates a cube j3d_create_sphere(id, x, y, z, radius, segments, rings); // Creates a sphere
j3d_model_translation_set(id, xt, yt, zt); //Moves a model to the specified x, y, z co-ordinates j3d_model_rotation_add(id, x_rotation, y_rotation, z_rotation); //Changes the objects rotation relative to its current rotation
j3d_light_define_point(x, y, z); //Creates a point light at the specified x, y, z co-ordinates
j3d_camera_update(x, y, z, x_rotation, y_rotation, z_rotation); //Updates the camera's position and rotation
j3d_model_remove(id); //Removes the model with the specified ID
j3d_render(); //Begins a loop to render and animate the scene