All Projects → LucasDower → ObjToSchematic

LucasDower / ObjToSchematic

Licence: BSD-3-Clause license
A tool to convert .obj files into Minecraft Schematics

Programming Languages

typescript
32286 projects
CSS
56736 projects
GLSL
2045 projects
HTML
75241 projects

Projects that are alternatives of or similar to ObjToSchematic

voxelizer
👾 Voxelization of 3D models
Stars: ✭ 32 (-79.49%)
Mutual labels:  voxel, 3d-models
SPHARM-PDM
Shape analysis has become of increasing interest to the medical community due to its potential to precisely locate morphological changes between healthy and pathological structures. SPHARM-PDM is a tool that computes point-based models using a parametric boundary description for the computing of Shape analysis.
Stars: ✭ 32 (-79.49%)
Mutual labels:  3d-models
Voxel
Voxel design tool built on top of css transformations
Stars: ✭ 199 (+27.56%)
Mutual labels:  voxel
Blacksmith
Blacksmith is a tool for viewing, extracting, and converting textures, 3D models, and sounds from Assassin's Creed: Odyssey/Origins/Valhalla and Steep.
Stars: ✭ 104 (-33.33%)
Mutual labels:  3d-models
Marching Cubes On The Gpu
A implementation of the marching cubes algorithm on the GPU in Unity.
Stars: ✭ 208 (+33.33%)
Mutual labels:  voxel
voxel-builder
Voxel-based 3D modeling application
Stars: ✭ 31 (-80.13%)
Mutual labels:  voxel
Filetovox
Tool for convert files into Magicavoxel file
Stars: ✭ 188 (+20.51%)
Mutual labels:  voxel
pcad2kicad
Convert Altium Designer and PCAD library to KiCad
Stars: ✭ 94 (-39.74%)
Mutual labels:  3d-models
q-pack
Open source version of the proton pack from the Ghostbusters movies
Stars: ✭ 78 (-50%)
Mutual labels:  3d-models
Spatio temporal voxel layer
A new voxel layer leveraging modern 3D graphics tools to modernize navigation environmental representations
Stars: ✭ 246 (+57.69%)
Mutual labels:  voxel
Sucle
Common Lisp Voxel Game Engine
Stars: ✭ 239 (+53.21%)
Mutual labels:  voxel
Pix2vox
Implementation of "Pix2Vox: Context-aware 3D Reconstruction from Single and Multi-view Images" (Xie et al., ICCV 2019)
Stars: ✭ 216 (+38.46%)
Mutual labels:  voxel
voxelmetaverse
playing with voxel.js
Stars: ✭ 75 (-51.92%)
Mutual labels:  voxel
Pix2vox
Sketch-Based 3D Exploration with Stacked Generative Adversarial Networks
Stars: ✭ 206 (+32.05%)
Mutual labels:  voxel
HxSTLParser
Basic STL loader for SceneKit
Stars: ✭ 23 (-85.26%)
Mutual labels:  3d-models
Chunkstories
Somewhat fancy blocky game engine written in Kotlin
Stars: ✭ 199 (+27.56%)
Mutual labels:  voxel
Proceduralterrain
Procedural voxel terrain generation in Unity
Stars: ✭ 237 (+51.92%)
Mutual labels:  voxel
Intro-Voxel-Terrain-in-Unity
A course on making the easiest to understand voxel engine (in Unity) using the C#JobSystem.
Stars: ✭ 25 (-83.97%)
Mutual labels:  voxel
NeuroMorph
The NeuroMorph analysis and visualization toolkit
Stars: ✭ 57 (-63.46%)
Mutual labels:  3d-models
3D-GuidedGradCAM-for-Medical-Imaging
This Repo containes the implemnetation of generating Guided-GradCAM for 3D medical Imaging using Nifti file in tensorflow 2.0. Different input files can be used in that case need to edit the input to the Guided-gradCAM model.
Stars: ✭ 60 (-61.54%)
Mutual labels:  3d-models

Logo
ObjToSchematic

A visual tool to convert 3D .obj models into Minecraft structures (.schematic, .litematic, .schem, .nbt)
UsageDownloadProgressDisclaimerDiscordContributingGalleryDocumentation

Logo Logo Logo

Noodles "Noodle Bowl - 3DDecember Day9" (https://skfb.ly/orI9z) by Batuhan13
is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).

Usage

You can either download the latest release or if you want the latest features you can build it yourself by following the instructions below.

  • Download and install Node.js.
  • Run git clone https://github.com/LucasDower/ObjToSchematic.git in your command line.
  • Navigate to /ObjToSchematic-main.
  • Run npm install.
  • Run npm start.

"Cut Fish" (https://skfb.ly/orWLC) by Suushimi
is licensed under Creative Commons Attribution-NonCommercial (http://creativecommons.org/licenses/by-nc/4.0/).

Advanced

Block Palettes

You can create your own block palettes to fit the build you desire. When you select this palette, the generated structure will only use the blocks defined in your palette. To create a palette, list every block you want to use in /tools/new-palette-blocks. A list of every supported block can be found in /tools/all-supported-blocks. When your list is complete, run npm run palette, (make sure you run npm run build before the first time you do this). If everything is successful, the next time you run the program you'll be able to select your new palette in the 'Block palette' dropdown.

Texture Atlases

If you play Minecraft with a resource pack, you will probably want to build your own texture atlas. This way the program will use the same resource pack for its visualisation and more accurate colour-to-block conversions can be made. To do this, run npm run atlas (make sure you run npm run build before the first time you do this) and follow the instructions. If everything is successful, the next time you run the program you'll be able to select your resource pack in the 'Texture atlas' dropdown.

Headless

If you want to use the program without using the GUI, you can edit /tools/headless-config.ts and run npm run headless (make sure to run npm run build after each time you edit the headless-config.ts).

Progress

The progress tracker and remaining to-dos are now maintained in the Discord server's #to-do channel.

Disclaimer

This is an non-commercial unofficial tool that is neither approved, endorsed, associated, nor connected to Mojang Studios. Block textures used are from Minecraft and usage complies with the Mojang Studios Brand And Assets Guidelines.

MinecraftPreview

Contributing

Any contributions are welcome, just fork and submit a PR! Just make sure the code style follows the rulings in the .eslintrc.json by running npm run lint and the tests all pass by running npm test.

Currently there's not much docs but if you're looking for where to get started, look at app_context.ts and follow _import(), _voxelise(), _assign(), and _export(). If you're looking to add elements to the UI, look at ui/layout.ts, I'm not using a UI framework because I'm a nutter. Adding more file formats to import from and export to would be nice. Adding new default block palettes would be great also.

If you have any questions or need help getting started then feel free to join the Discord or message me SinJi#4165.

Debugging

To allow for your favourite debugging tools like breakpoints and call stacks, I've included launch options for debugging in VSCode. Be sure to use npm run debug instead of npm start as this will disable the worker thread allowing you to add breakpoints anywhere in the code. Once the editor is running run "Attach to Render Process" and VSCode will hook to the Chromium debugger.

Gallery

Gallery1
"Creepy Lady Bust Statue Scan" (https://skfb.ly/6B7pK) by alex.toporowicz is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
Gallery3
"Pivot Demo: Journey" (https://skfb.ly/6WCIJ) by Sketchfab is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
Gallery4
"Handpainted Pancake" (https://skfb.ly/6T7yN) by Marvi is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).

Documentation

Below is a detailed explanation into what each configurable setting does divided into each step in the program.

Import

  • Wavefront .obj file - This is the actual 3D model you want to voxelise. Please note that the more complex your model is the longer it will take to voxelise. It is strongly recommended that you simplify your geometry in a program such as Blender to reduce the poly count. If your triangles are smaller than the size of the voxels then you will not notice the difference and the extra detail is just wasting resources.
  • Rotation - Change to rotate the mesh, requires clicking 'Load mesh' to update.

Materials

Here is where you can edit the materials that the loaded model uses. Any changes you make require you to commit the changes by clicking 'Update materials'.

  • Type - Switch between a Solid material or a Textured material. Note, only materials that're used by triangles with defined texcoords can be turned into Textured materials.
  • Solid Materials
    • Colour - The actual colour of the material.
    • Alpha - The transparency value.
  • Textured Materials
    • Diffuse map - The actual texture file the colour data is from.
    • Filtering - How pixel values are sampled.
    • Wrap - How texcoords outside the [0, 1] range are sampled.
    • Transparency - How transparency values are sampled, either 'None' for opaque, 'Alpha map' for custom alpha mask textures, 'Alpha constant' for a flat transparency value or 'Use diffuse map alpha channel'.

Voxelise

  • Constraint axis - This determines which axis is used to determine the size of the model. If you choose 'Y' and type in a size of 80 then the voxelised mesh will has a height of 80. If you choose 'X' instead then the width will be 80.
  • Size - This works in conjunction with Constraint axis as described above.
  • Algorithm - There are many ways to turn a triangle mesh into a voxel mesh and each method produces different results. Here you can choose which one you like the best.
  • Ambient occlusion - This is a purely visual setting and makes no difference to the outputted structure. Ambient occlusion displays the shadows between adjacent blocks just like Minecraft. This takes quite a hit to the time to voxelise so consider turning this setting off first.
  • Multisampling - Multisampling should only be used if your mesh uses textures. It takes multiple samples of the texture to get a more representative colour for a voxel. If your triangles and voxels are a similar size then you'll want this on. If your voxels are much smaller than the triangles then you'll probably not notice the difference this makes unless your texture is very noisey.
  • Voxel overlap - When two triangles next to each other are voxelised one after another the second triangle may place voxels in positions where the first triangle has already placed a voxel. This setting allows you to only take the First voxel colour or take an Average.

Assign

  • Texture atlas - The textures to use for each block. This also determines how colour-conversions are made.
  • Block palette - What collection of blocks are available to choose from.
  • Dithering - An image speaks a thousand words.
  • Fallable blocks - There's a chance a block is placed such as Sand which when actually placed is going to fall under gravity. You probably don't want this to happen so Replace falling with solid will substitute the falling block for a similarly coloured block. Alternatively, you can Do nothing or replace any gravity-effected block with Replace fallable with solid.
  • Colour accuracy - This bins together similar colours to speed up colour-to-block conversions. This is a logarithmic scale.
  • Smart averaging - When performing colour-to-block conversions only block faces that are visible are used in calculating the 'average' face colour. There's no reason to turn this off apart from it being slower.
  • Smoothness - A high smoothness value will prevent block with noisey textures being used. This is very sensitive to small changes. High smoothness values will decrease the colour accuracy as under-the-hood it is trading off colour error for std error.
  • Calculate lighting - Turn this on if you want don't want night-vision in the editor. Only turn this on if you really need it as it is considerably slower.
  • Light threshold - Requires Calculate lighting to be on. Will place light blocks (not the Light Block) in places where the light value is less than the threshold. Useful in automatically lighting up the dark areas of your structure.

Export

  • File format - The format to save your structure to. The Litematica format is strongly recommended and is significantly faster to export to for large structures. The Schematic exporter is useful if you still play in 1.12 as it uses the old block ID system before The Flattening, however many new blocks cannot be encoded in this format so they will be turned into Stone blocks. The NBT exporter is used for Minecraft's structure blocks. The OBJ exporter can be used to render your structres in a program such as Blender.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].