Questions tagged [glowscript]

GlowScript is an easy-to-use, powerful environment for creating 3D animations and publishing them on the web.

GlowScript is an easy-to-use, powerful environment for creating 3D animations and publishing them on the web.

GlowScript ("Graphics Library on Web") makes it easy to write real-time navigable 3D animations that run in a browser. It is based on the language plus the 3D graphics library, both of which are included in most modern browsers.

The design of GlowScript is based on that of VPython.

Currently supported browsers include Google chrome, Mozilla Firefox, Opera, Internet Explorer, Safari etc.

You should be using this tag if your question is related to GlowScript or its APIs.

21 questions
0
votes
1 answer

Menu in Glowscript and VPython

For a school project a friend of mine and I are currently trying to program a simulation of our solar system. The platform we use is Glowscript and we're working with VPython. We have programmed our whole solar system already with all its planets,…
Eva12345
  • 1
  • 1
0
votes
2 answers

AttributeError: 'compound' object has no attribute '_origin' in vpython.py

What needs to be done to fix this problem? At https://www.glowscript.org/#/user/murray.garth/folder/Public/program/Eyeballs I found a GlowScript example that i tried to use as a python3 script. I modified the header…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
0
votes
1 answer

Why is my VPython program running so slowly on this glowscript IDE?

so I'm currently struggling with figuring out why my VPython program runs so slowly. I worked on this with others a few months ago, and it was working perfectly fine then, but opening it now, the program became super…
bea
  • 19
  • 3
0
votes
1 answer

vphython stops to work for me in jupyter notebooks every few minutes for no reason

I am having massive trouble with using vpython in jupyter notbooks. I'm creating small animations with vpython. After a couple of minutes when I try to run a cell, it will either not show any output or will yield a error message "object could not be…
-2
votes
2 answers

Why has this piece of code to be there?

I try to understand this code and I actually understood the whole thing except these 2 line: f_grav = gravity * sun.mass * earth.mass * (sun.pos - earth.pos).norm() / (sun.pos - earth.pos).mag2 earth.vel = earth.vel + (f_grav/earth.mass) *…
CMC
  • 79
  • 1
  • 3
  • 11
1
2