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

Sphere created using primitives_3d.py cannot be viewed #9

Open
CWallbridge opened this issue Jun 9, 2017 · 0 comments
Open

Sphere created using primitives_3d.py cannot be viewed #9

CWallbridge opened this issue Jun 9, 2017 · 0 comments

Comments

@CWallbridge
Copy link
Collaborator

I am creating a sphere using the primitives_3d.py. Creation appears to work fine. When I try to view the world with the sphere I get the following error:

python uwds-view l2tor
INFO:underworlds.client:Connecting to the underworlds server on localhost:50051...
INFO:underworlds.client:<3D viewer> connected to the underworlds server.
INFO:underworlds.client:Accessing world (initially created on Fri Jun 09 11:42:56 2017)
INFO:underworlds.core:Preparing world for 3D rendering...
INFO:underworlds.core:Loading node
INFO:underworlds.core:Loading node
INFO:underworlds.core:Fetching mesh <2061698958>
INFO:underworlds.core:Serialized mesh in 0.01sec
INFO:underworlds.client:Closing context [3D viewer]...
INFO:underworlds.client:The context [3D viewer] is now closed.
Traceback (most recent call last):
File "uwds-view", line 1267, in
main(args.world, args.host, args.port)
File "uwds-view", line 1219, in main
app = Underworlds3DViewer(ctx, world=world)
File "uwds-view", line 291, in init
self.load_world()
File "uwds-view", line 483, in load_world
self.glize(node)
File "uwds-view", line 469, in glize
self.prepare_gl_buffers(mesh)
File "uwds-view", line 409, in prepare_gl_buffers
meshes[id]["vbo"] = vbo.VBO(numpy.hstack((v,n)))
File "C:\Python27\lib\site-packages\numpy\core\shape_base.py", line 288, in hstack
return _nx.concatenate(arrs, 1)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

I am guessing there is something wrong with the sphere mesh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant