Share your repls and programming experiences

← Back to all posts
3D Engine Demo
h
CoolqB (164)

Hello fellow programmers!

I decided to spice up the community a little and created a quick 3D engine, it's nothing fancy, however, it has been created only in Repl.it and I think it demonstrates the power of this platform.

-- Link --
https://repl.it/@CoolqB/3D-Engine

-- Features --

  • Rotating cube! How awesome is that? :D

-- Bugs --

  • Strange freezing issue when it runs for too long, I would assume this is something to do with the turtle graphics frontend?
Comments
hotnewtop
CoolqB (164)

@jimxin2595 Thanks for your comment :)

Babbel (64)

i get an error :/

https://storage.googleapis.com/replit/images/1530784306713_2f02f4bc6075f4eb69c0756974ac6979.pn

CoolqB (164)

@Babbel Oh that's strange... External error implies that it is either a problem with your browser or repl.it, I would assume. Though nothing but imports exist on ln: 12. And null doesn't exist in Python, it's called None.

This doesn't seem to be an issue with my program. Maybe try refreshing, or another browser? Thanks for showing interest nonetheless :)

CoolqB (164)

@eliena Thanks for showing interest :)
I'll be sure to post future projects here in Repl.it, currently working on a programming language implementation. A programming language in a programming language inside repl.it... inception!

DemonZZ (1)

how do you move?

DemonZZ (1)

its not rotating or anything :/

NRED03 (0)

Very nice, very clean. Good job!

amasad (3353)

This is pretty cool! How do you reproduce the freezing issue? It's running pretty smoothly for me.

CoolqB (164)

@amasad I had to reduce the frame rate in order to reduce the issue (though if you leave it for long enough, eventually it will freeze. To reproduce, change the line self.pointer.tracer(0, 20) to self.pointer.tracer(0, 0) and comment out the time.sleep(1 / 60). I developed this using Firefox. My PC isn't bad, GTX 1060, FX8350. The canvas is cleared, and I tested this as a standalone program and it worked fine, any ideas?

Sometimes it lasts longer than others, try restarting/refreshing if it lasts long or freezes instantly.