Hi. Thank you for the great and simple render engine!
I know I can rotate the camera with e.g. rotate_y(-.1f);.
The problem is, how to rotate the object itself (single object)?
I was trying with engine::render() changes:
for (int i = 0; i < scene.things.size(); i++) {
thing* t = scene.things[i];
mesh m = t->get_mesh();
t_transform * tt = m.get_t_transform(); //get transformation?
tt->set_rotation(new vector3(0, rotationValue, 0)); //set rotation?
image texture = t->get_texture();
matrix4 mt = t->t.get_projected_t_transformation();
rast->draw_mesh_textured(*frame, m, texture, mt);
}
But it had no impact on model rotation.
Hi. Thank you for the great and simple render engine!
I know I can rotate the camera with e.g.
rotate_y(-.1f);.The problem is, how to rotate the object itself (single object)?
I was trying with
engine::render()changes:But it had no impact on model rotation.