![]() ![]() Rotate_and_render('/Users/myusername/Pictures/VR', 'render%d.jpg') Subject.rotation_euler = original_rotation Subject.rotation_euler = radians(step * (rotation_angle / rotation_steps))īpy. = os.path.join(output_dir, (output_file_pattern_string % step))īpy.(write_still = True) Original_rotation = subject.rotation_euler You shall end up with a number of pictures (defined by rotation_steps) around your object under /Users/myusername/Pictures/VR directory: def rotate_and_render(output_dir, output_file_pattern_string = 'render%d.jpg', rotation_steps = 32, rotation_angle = 360.0, subject = ): open interactive Python shell ( Shift+F4).set your camera view to the starting position (check it with rendering, again). ![]() create an Empty object and set its position to the center of the subject and rotation to identity ( 0, 0, 0).scale it and add some nice lighting (so that the object is visible from directions you want) you can check the lighting by rendering the scene (using the F12 key).create or load an object you are going to take pictures of (the subject).The code below creates a "VR panorama" (a series of pictures of an object, from different perspectives around it). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |