You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
particle size in GGUI does not change when camera moves near to the particle.
To Reproduce
# sample code here"""after run this demo please press key w to move camera towards the sphere, and then you see that the ball does not change its size."""importtaichiastiti.init(arch=ti.cpu)
balls=ti.Vector.field(3,ti.f32,(1))
balls[0] =ti.math.vec3(0.0)
# visualize in gguiwindow=ti.ui.Window("visual a ball", (600, 600), vsync=True)
canvas=window.get_canvas()
scene=ti.ui.Scene()
camera=ti.ui.Camera()
cam_dis=10.0angle=0.0cam_height=4.0camera.position(cam_dis, cam_height, cam_dis)
camera.lookat(0.0, 0.5, 0.0)
whilewindow.running:
camera.track_user_inputs(window, movement_speed=0.05, hold_key=ti.ui.RMB)
scene.set_camera(camera)
scene.point_light(pos=(0, 3, 3), color=(1, 1, 1))
scene.particles(balls, radius=1.0, color=(1.0,0.0,0.0))
canvas.scene(scene)
window.show()
$ python my_sample_code.py
[Taichi] version 1.1.3, llvm 10.0.0, commit 1262a70a, win, python 3.10.0
[Taichi] Starting on arch=x64
...
The text was updated successfully, but these errors were encountered:
Describe the bug
particle size in GGUI does not change when camera moves near to the particle.
To Reproduce
The text was updated successfully, but these errors were encountered: