-
Notifications
You must be signed in to change notification settings - Fork 193
ArrowHelper not working #258
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
Comments
Hi, and thanks for the report. I can reproduce with your code (thanks!). It turns out, |
Hi, thanks for developing this awesome tool! Arrows do render now, but there seems to be a bug with the direction argument. See minimal example below. Unit directions work fine, but e.g. dir = (1,1,1) renders a dir = (1,0,0) vector. Thanks, from pythreejs import *
scene = Scene()
camera = PerspectiveCamera(position=[15, 0, -2], up=[0,0,-1])
scene.add(camera)
control = OrbitControls(controlling=camera, maxDistance=100)
renderer = Renderer(camera=camera, scene=scene,
controls=[control],
width=1000, height=800
)
axes = AxesHelper(size=1)
scene.add(axes)
arrow = ArrowHelper(
dir=[1,0,0],
origin=[1,0,0],
length=3,
color='red',
headLength=None,
headWidth=None,
)
scene.add(arrow)
arrow = ArrowHelper(
dir=[0,1,0],
origin=[1,0,0],
length=3,
color='green',
headLength=None,
headWidth=None,
)
scene.add(arrow)
arrow = ArrowHelper(
dir=[0,0,1],
origin=[1,0,0],
length=3,
color='blue',
headLength=None,
headWidth=None,
)
scene.add(arrow)
arrow = ArrowHelper(
dir=[1,1,1],
origin=[1,0,0],
length=3,
color='black',
headLength=None,
headWidth=None,
)
scene.add(arrow)
scene.add(AmbientLight(intensity=0.3))
renderer |
Hi,
I'm trying to render an arrow butnothing is rendered. Notebook example attached.
`from pythreejs import *
scene = Scene()
camera = PerspectiveCamera(position=[15, 0, -2], up=[0,0,-1])
scene.add(camera)
control = OrbitControls(controlling=camera, maxDistance=100)
renderer = Renderer(camera=camera, scene=scene,
controls=[control],
width=1000, height=800
)
axes = AxesHelper(size=1)
scene.add(axes)
scene.add(ArrowHelper())
scene.add(AmbientLight(intensity=0.3))
renderer`
The text was updated successfully, but these errors were encountered: