jmc2obj / j-mc-2-obj

Java-based Minecraft-to-OBJ exporter.
http://www.jmc2obj.net
359 stars 59 forks source link

Entity Positions Wrong #170

Closed jongames closed 3 years ago

jongames commented 3 years ago

When selecting 'render entities', the model has extra entities included which are not within the boundaries selected (where all the blocks stop in the render of the model).

Here is an example: image

Switching the options around does not help it seems. I tried turning off and on various other options and nothing seems to affect this behavior.

mmdanggg2 commented 3 years ago

It was exporting all entities in a chunk if any part of the chunk was exported. Now it will check the positions of the entities before exporting them.

jongames commented 3 years ago

Amazing! Thank you for fixing it so fast! I assumed it was taking it per chunk but I had never looked at your code and school is really busy for me so did not attempt fixing it myself at all yet.

I host a server and post player's builds via both photos and 3D models on the server's website to show them off. I coded a custom 3D viewer using three.js which also displays them in stereoscopic 3D (cross eyed, parallel eyed, and anaglyph / red-blue glasses).
Here is a link if you wanted to see a cool use of this jMC2obj project: https://jongames.com/minecraft-models

Thank you @mmdanggg2 for your hard work on this project and any others who have submitted code.

mmdanggg2 commented 3 years ago

Much appreciated. It's always great to see people using it creatively!