Skip to content

PythreeJS Mesh is not displayed #416

Open
@gsohler

Description

@gsohler

Hi,

I have derived the 3D Viewer code from ViewSCAD and it works perfectly fine with the Python3 (ipykernel)

however, when I change to another self-compiled Python kernel, I get this txt instead:

Is there some setup/binding missing ?

What does jupyter make the graphic appear instead of the text ?
Where could i start to debug ?

VBox(children=(HTML(value=''), Renderer(background='#cccc88', background_opacity=0.0, camera=PerspectiveCamera(children=(DirectionalLight(intensity=0.5, position=(24.0, 32.0, 40.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0)),), fov=20.0, position=(32.0, 32.0, 32.0), projectionMatrix=(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 0.0, 1.0)), controls=[OrbitControls(controlling=PerspectiveCamera(children=(DirectionalLight(intensity=0.5, position=(24.0, 32.0, 40.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0)),), fov=20.0, position=(32.0, 32.0, 32.0), projectionMatrix=(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 0.0, 1.0)), target=(0.0, 0.0, 0.0)), Picker(controlling=Mesh(geometry=BufferGeometry(attributes={'position': <BufferAttribute shape=(108, 3), dtype=float32>, 'color': <BufferAttribute shape=(108, 3), dtype=float32>, 'normal': <BufferAttribute shape=(108, 3), dtype=float32>}), material=MeshLambertMaterial(alphaMap=None, aoMap=None, emissiveMap=None, envMap=None, lightMap=None, map=None, specularMap=None, vertexColors='VertexColors'), position=(0.0, 0.0, 0.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0)), event='dblclick', face=(0.0, 0.0, 0.0), faceNormal=(0.0, 0.0, 0.0), object=None, point=(0.0, 0.0, 0.0), uv=(0.0, 0.0))], scene=Scene(children=(Mesh(geometry=BufferGeometry(attributes={'position': <BufferAttribute shape=(108, 3), dtype=float32>, 'color': <BufferAttribute shape=(108, 3), dtype=float32>, 'normal': <BufferAttribute shape=(108, 3), dtype=float32>}), material=MeshLambertMaterial(alphaMap=None, aoMap=None, emissiveMap=None, envMap=None, lightMap=None, map=None, specularMap=None, vertexColors='VertexColors'), position=(0.0, 0.0, 0.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0)), PerspectiveCamera(children=(DirectionalLight(intensity=0.5, position=(24.0, 32.0, 40.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0)),), fov=20.0, position=(32.0, 32.0, 32.0), projectionMatrix=(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 0.0, 1.0)), AmbientLight(color='#888888', position=(0.0, 0.0, 0.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0))), fog=None, overrideMaterial=None, position=(0.0, 0.0, 0.0), quaternion=(0.0, 0.0, 0.0, 1.0), rotation=(0.0, 0.0, 0.0, 'XYZ'), scale=(1.0, 1.0, 1.0), up=(0.0, 1.0, 0.0)), shadowMap=WebGLShadowMap()), Output()))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions