All Questions
6 questions
1
vote
0
answers
1k
views
Trying use openAI gym, getting a pyglet/openGL error on running
I am trying the following code:
import gym
env = gym.make('ma_gym:Switch2-v0')
done_n = [False for _ in range(env.n_agents)]
ep_reward = 0
obs_n = env.reset()
while not all(done_n):
env.render()
...
2
votes
1
answer
596
views
How do I speed up this pyglet rendering?
Below is the code for rendering. I am only rendering around 300 blocks yet it is very slow
async def render(self):
time_start = time.time()
self.batch = pyglet.graphics.Batch()
for block ...
5
votes
1
answer
4k
views
Pyglet Image Rendering
I'm working on a sort of a 2D Minecraft clone for my first in depth Pyglet project and I've run across a problem. Whenever I have a decent number of blocks on screen, the frame rate drops dramatically....
5
votes
2
answers
707
views
Explain to me like I am 5: OpenGL 4.x Rendering Pipeline
I have spent the last couple of weeks in my off-time looking at openGL. And while I do not have a problem following some of the older NeHe examples, from everything I have read, OpenGL4 is a totally ...
0
votes
1
answer
657
views
Manual pyglet loop freezes after a few iterations
I am testing out pyglet for usage in a larger project, and apparently pyglet recommends/wants you to use it's own loop (with pyglet.app.run())
This is a something I don't want, for reasons of ...
5
votes
3
answers
4k
views
Rendering mathematical notation in Python / OpenGL?
How can I render mathematical notations / expressions in Python with OpenGL?
I'm actually using pyglet however it uses OpenGL.
Such things as this:
I can't store static images as I am generating the ...