Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update blender_script.py #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/rendering/blender_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def _sample_spherical(
maxz: float = 1.6,
minz: float = -0.75,
) -> np.ndarray:
# 在最大半径和最小半径的球壳之间随机一个点,其中z取值在maxz和minz之间
"""Sample a random point in a spherical shell.

Args:
Expand All @@ -91,7 +92,7 @@ def _sample_spherical(
correct = True
return vec


# 可以直接固定 x,y,z的值用来固定相机的位置,可以将radius范围扩大
def randomize_camera(
radius_min: float = 1.5,
radius_max: float = 2.2,
Expand Down