bounce=int(0), options="entity_id", ) export_to_ndds_file( f"{opt.outf}/{str(i_render).zfill(5)}.json", obj_names=names_to_export, width=opt.width, height=opt.height, camera_name='camera', # cuboids = cuboids, camera_struct=random_camera_movement, segmentation_mask=np.array(segmentation_array).reshape( opt.width, opt.height, 4)[:, :, 0], visibility_percentage=False, ) visii.render_data_to_file( width=opt.width, height=opt.height, start_frame=0, frame_count=1, bounce=int(0), options="depth", file_path=f"{opt.outf}/{str(i_render).zfill(5)}.depth.exr") # subprocess.call(['ffmpeg', '-y',\ # '-framerate', '30', "-hide_banner", "-loglevel", \ # "panic",'-pattern_type', 'glob', '-i',\ # f"{opt.outf}/*.png", f"{opt.outf}/video.mp4"]) visii.deinitialize()
# 00.helloworld.py # # This example will create a window where you # should only see a gaussian noise pattern import nvisii nvisii.initialize() while (not nvisii.should_window_close()): pass nvisii.deinitialize()
def close(self): """ Deinitializes the nvisii rendering environment """ nvisii.deinitialize()