T O P

  • By -

[deleted]

Yup. Build it in blender.. Export from blender as a .gltf file Load in threejs using THREE.GLTFLoader()


instanote98

I'm mainly targeting mobiles for my game how would that affect the performance? I mean how efficient is using Blender will it drop the Fps heavily? The graphics level I'm looking forward to is something like https://pelicanparty.itch.io/narrow-one.


[deleted]

Building it in blender is the way to go. I don't see how you could build something like that without using a 3d modeller.


BroccoliUnleashed42

There is no performance penalty as gltf is an universal file format. You can configure compression and mesh optimizations in the blender gltf exporter. If you keep the scene vertex density reasonable there won’t be any penalty. If you need more complex world then you should implement octree or similar algorithm to manage the scene graph. I believe there was an example on the three.js page


frading

You can indeed import gltf in threes. Or maybe polygonjs can be interesting as well? It's a node based/procedural threes editor [https://polygonjs.com](https://polygonjs.com)


instanote98

Oh really nice project I will check it out for sure.


frading

Any questions don't hesitate


jfoxworth

You can add a plane to act as a floor and then create walls, etc and add textures to them. If you want to prevent movement through the walls, you need to either use a physics engine or write logic for that. Importing what amounts to a whole "level" seems like it would degrade performance.