Question: I am having trouble showing the back _ plane. All the other plances work without an issue. The output shows an image and not an

I am having trouble showing the back_plane. All the other plances work without an issue. The output shows an image and not an animation. Please help
""" We will use a scene dictionary with keys as object names
Each object will have its own keys containing object-specific points and transformation matrix"""
# 3-D, unit-cube (homogenous coordinates)
cube = np.array([[0,0,0,1],[1,0,0,1],[1,1,0,1],[0,1,0,1],
[0,0,1,1],[1,0,1,1],[1,1,1,1],[0,1,1,1]])
# make length of the cube 12 meters
cube[:, :3]=12* cube[:, :3]
cube[:, :3]= cube[:, :3]-6
...#scene['back_plane']['transform']= np.array([0,0,0,-height /2,-30, Z_start + height])
scene['back_plane']['transform']= np.array([90,0,0,-height/2,-30, Z_start])
# create and transform the cube
scene['cube']['points']= cube
scene['cube']['transform']= np.array([30,30,0,0,0, Z_start])
""" Perform the dolly of the entire scene, save images as a single gif """
## TODO Create the Z values for the dolly animation
## store Z values in a numpy array object of size [steps]
Tzs = np.linspace(Z_start, Z_end, steps)
## TODO Compute the focal length to keep the cube of same size
## store the f values for each Z step in a numpy array object of size [steps]
## this f value should be adjusted to keep the cube the same size throughout the animation
#fs = f_start *(Tzs[0]/ Tzs)
... # visualize the scene
plot_img = visualize_scene(projected_scene, grid_count)
# write the current image in the gif
gif_writer.append_data(plot_img)
gif_writer.close()
I am having trouble showing the back _ plane. All

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!