Closed jasongrout closed 9 years ago
Following code shows black screen, and renders correctly only after i move the camera around, or change some property value:
# create cart and pole pole_box = Mesh(geometry=BoxGeometry(width=0.3, height=5, depth=0.3), material=LambertMaterial(color='blue'), position=[0,2.5,0]) pole = Mesh(geometry=BoxGeometry(width=0, height=0, depth=0), material=LambertMaterial(color='white'), position=[0,0,0], children=[pole_box]) cart = Mesh(geometry=BoxGeometry(width=4, height=1, depth=3), material=LambertMaterial(color='red'), position=[0,0,0], children=[pole_box]) scene = Scene(children=[cart, AmbientLight(color=0x777777)]) c = PerspectiveCamera(position=[0,0,15], up=[0,1,0], children=[DirectionalLight(color='white', position=[3,5,1], intensity=0.5)]) renderer = Renderer(camera=c, scene = scene, controls=[OrbitControls(controlling=c)]) display(renderer)
I would like to help solve it, but my Javascript skills are not up to task. Thanks for the great library!
From @ivmi, at https://github.com/jasongrout/pythreejs/issues/18#issuecomment-113442090
@ivmi, can you check to see if this is fixed for you with the most recent master?
Just checked, everything seems fine. Thanks!
Thanks again for the bug report!
Following code shows black screen, and renders correctly only after i move the camera around, or change some property value:
I would like to help solve it, but my Javascript skills are not up to task. Thanks for the great library!
From @ivmi, at https://github.com/jasongrout/pythreejs/issues/18#issuecomment-113442090