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

[test] Change deprecated make_camera() to Camera() #6009

Merged
merged 1 commit into from
Sep 13, 2022
Merged
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
16 changes: 8 additions & 8 deletions tests/python/test_ggui.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def test_fetching_depth_attachment():
window = ti.ui.Window("test", (512, 512), vsync=True, show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()

ball_center = ti.Vector.field(3, dtype=float, shape=(1, ))
ball_center[0] = ti.math.vec3(0, 0, 0.5)
Expand Down Expand Up @@ -437,7 +437,7 @@ def init_points_pos(points: ti.template()):
show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(0, 5, -10)
camera.lookat(3, 3, 1)

Expand Down Expand Up @@ -481,7 +481,7 @@ def init_points_pos(points: ti.template()):
window = ti.ui.Window("Test", (768, 768), show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(0, 5, -10)
camera.lookat(3, 3, 1)

Expand Down Expand Up @@ -571,7 +571,7 @@ def init_edge():
window = ti.ui.Window("test", (1024, 1024), vsync=True, show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(1.5, 1, -1)
camera.lookat(1, 0.5, 0)
camera.fov(90)
Expand Down Expand Up @@ -615,7 +615,7 @@ def init_points_pos(points: ti.template()):
window = ti.ui.Window("Test", (768, 768), show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(0, 5, -10)
camera.lookat(3, 3, 1)

Expand Down Expand Up @@ -737,7 +737,7 @@ def update_transform(t: ti.f32):
window = ti.ui.Window("test", (1024, 1024), vsync=True, show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(-1.82731234, 2.26492691, 2.27800684)
camera.lookat(-1.13230401, 2.11502124, 1.57480579)
camera.fov(90)
Expand Down Expand Up @@ -850,7 +850,7 @@ def init_edge():
window = ti.ui.Window("test", (1024, 1024), vsync=True, show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(-1.82731234, 2.26492691, 2.27800684)
camera.lookat(-1.13230401, 2.11502124, 1.57480579)
camera.fov(90)
Expand Down Expand Up @@ -946,7 +946,7 @@ def init_edge():
window = ti.ui.Window("test", (1024, 1024), vsync=True, show_window=False)
canvas = window.get_canvas()
scene = ti.ui.Scene()
camera = ti.ui.make_camera()
camera = ti.ui.Camera()
camera.position(1.5, 1, -1)
camera.lookat(1, 0.5, 0)
camera.fov(90)
Expand Down