DEV Community

larcefox
larcefox

Posted on

I've made game engine (I think)

Hi!
With Python and ThreeJS (https://threejs.org/) I have made app to make easy 3d visualisation, which you can test in browser.
Like this:

Image description

All you need to draw red qube is to type somethig like this:

box = ef.create('box', 10, 10, 10, position={'x': 0, 'y': 10, 'z': 0}, color='red')
Enter fullscreen mode Exit fullscreen mode

And blueprint on back of qube:

plane = ef.create(
    'plane',
    1093, 
    630,
    texture='textures/map.svg',
    color=0xffffff,
    position={'x':0, 'y': 0, 'z': 0},
    rotation={'x': -(math.pi/2),'y': 0, 'z': -(math.pi/2)}
    )
Enter fullscreen mode Exit fullscreen mode

And ofcorse you can use any 3D models, that can draw ThreeJS:

Image description

My dream is to make open 3D world with it, but it can be used for drawing diagrams like BI in 3D and integrate it to any web app.

Have you any ideas about how to better use it and if anyone looking for interesting project I'll be glad to speek about.

Github:
https://github.com/larcefox/pyThrJs/tree/3db

Thanks for reading!

Top comments (1)

Collapse
 
michaeltharrington profile image
Michael Tharrington

Nice! This is cool.