Jump to content

How To (haphazardly) Mess Around with the Vertexes of the 3D mesh of a scenery model!


Recommended Posts

arxafVo.png
This image shows a thing that most Mine-imator animators will immediately notice you can't usually do in the program (that being what is apparently polygons in places they shouldn't be) but it's in-program. What is going on here?

Mineimator 2.0 added .meshcache files, which you may have seen in your project folder after importing a scene. The .meshcache file format was created specifically to load scenery models faster, as mentioned by Nimi on the official discord, but he also notes it's actually just a 3D model format and not a construction of blocks.

au9Kwre.png
9YFrca9.png
ig4TOlK.png

In this post, I am going to demonstrate that it is an actual 3D model file and you can poke it with a stick a bunch of times to create something as mangled as the first image in this post.
 

First let's import a schematic file, such as the lamp post. You can also import scenery directly from a Minecraft world for this.
7YxzmeY.png

Then it shows up in the scene.
0VIkTBW.png

Now, to edit meshcache files, first we have to decompress them.
Mineimator automatically compresses meshcache files, so to actually manually inspect or edit them you have to decompress the file using whatever file extractor tool you use, then swap the file inside the meshcache with the meshcache itself.
yXlyBMx.png
oskbSXj.png
c26C2sM.png

(Deleting the inital schematic ("1") won't do anything. The project will still load properly because it only uses the meshcache... I'm not sure why imports the schematic as well. Once you decompress the meshcache, you won't need to recompress it again.)

Next, let's open up the meshcache file using a hex editor. The one I use is HexEdit.

vGlYbIC.png
Let's change this "A" to a "B". I don't know what I'm doing to the model, but surely nothing will go wrong, right?
sJH1K7I.png
And, now, let's save the edit we made and reload the scene!
QlgPp3O.pngyxAPs6Y.png

Boom! One of the vertexes on the lamp post is now inside out and to the side. So what happened? Well, these meshcache files really are just 3D models of Minecraft assets, and the edit done was just moving one of the vertexes of that 3D model to the side. I presume those three columns of symbols correspond to the positions of each vertex in the model, but I wouldn't know about all of the other stuff at the bottom of the file. Someone who is more better versed in knowledge in 3D file formats than I am would probably be able to figure this out!
uQrIAOc.pngNEKEvyH.png

You can actually continue to mess with the meshcache some more, and this will corrupt the the model of the lamppost even more. Don't try to erase or add more stuff though... it seems to just crash Mineimator instantly when I add or remove stuff.

Q: Could this mean 3D models that I make in Blender or 3DS Max could be loaded in Mine-imator?
A: Theoretically, yes! At the current moment there is no tool to convert 3D model files to the .meshcache format though. If a tool was made to do that, then it would be possible. I wouldn't know how easy it would be to do that though. I suppose you could import a Mine-Imator scenery model and attempt rearranging the vertices manually, but that'd take a lot of trial and error because I couldn't find any other documentation online about the meshcache format. It seems the meshcache format was made specifically for Mine-Imator. So someone would have to look into the source code to see how a meshcache is constructed too.
pV6Kbre.png
(Note, I doubt you would be able to import textures with the model too, since scenery models only use Minecraft's block textures. But there might be work-arounds for this.)

Link to post
Share on other sites

On 11/23/2023 at 11:27 PM, manicminermemer said:

arxafVo.png
This image shows a thing that most Mine-imator animators will immediately notice you can't usually do in the program (that being what is apparently polygons in places they shouldn't be) but it's in-program. What is going on here?

Mineimator 2.0 added .meshcache files, which you may have seen in your project folder after importing a scene. The .meshcache file format was created specifically to load scenery models faster, as mentioned by Nimi on the official discord, but he also notes it's actually just a 3D model format and not a construction of blocks.

au9Kwre.png
9YFrca9.png
ig4TOlK.png

In this post, I am going to demonstrate that it is an actual 3D model file and you can poke it with a stick a bunch of times to create something as mangled as the first image in this post.
 

First let's import a schematic file, such as the lamp post. You can also import scenery directly from a Minecraft world for this.
7YxzmeY.png

Then it shows up in the scene.
0VIkTBW.png

Now, to edit meshcache files, first we have to decompress them.
Mineimator automatically compresses meshcache files, so to actually manually inspect or edit them you have to decompress the file using whatever file extractor tool you use, then swap the file inside the meshcache with the meshcache itself.
yXlyBMx.png
oskbSXj.png
c26C2sM.png

(Deleting the inital schematic ("1") won't do anything. The project will still load properly because it only uses the meshcache... I'm not sure why imports the schematic as well. Once you decompress the meshcache, you won't need to recompress it again.)

Next, let's open up the meshcache file using a hex editor. The one I use is HexEdit.

vGlYbIC.png
Let's change this "A" to a "B". I don't know what I'm doing to the model, but surely nothing will go wrong, right?
sJH1K7I.png
And, now, let's save the edit we made and reload the scene!
QlgPp3O.pngyxAPs6Y.png

Boom! One of the vertexes on the lamp post is now inside out and to the side. So what happened? Well, these meshcache files really are just 3D models of Minecraft assets, and the edit done was just moving one of the vertexes of that 3D model to the side. I presume those three columns of symbols correspond to the positions of each vertex in the model, but I wouldn't know about all of the other stuff at the bottom of the file. Someone who is more better versed in knowledge in 3D file formats than I am would probably be able to figure this out!
uQrIAOc.pngNEKEvyH.png

You can actually continue to mess with the meshcache some more, and this will corrupt the the model of the lamppost even more. Don't try to erase or add more stuff though... it seems to just crash Mineimator instantly when I add or remove stuff.

Q: Could this mean 3D models that I make in Blender or 3DS Max could be loaded in Mine-imator?
A: Theoretically, yes! At the current moment there is no tool to convert 3D model files to the .meshcache format though. If a tool was made to do that, then it would be possible. I wouldn't know how easy it would be to do that though. I suppose you could import a Mine-Imator scenery model and attempt rearranging the vertices manually, but that'd take a lot of trial and error because I couldn't find any other documentation online about the meshcache format. It seems the meshcache format was made specifically for Mine-Imator. So someone would have to look into the source code to see how a meshcache is constructed too.
pV6Kbre.png
(Note, I doubt you would be able to import textures with the model too, since scenery models only use Minecraft's block textures. But there might be work-arounds for this.) During artworking, PDF Guru's Split PDF tool https://pdfguru.com/split-pdf proves invaluable. Seamlessly divide large PDF files into smaller, manageable sections, facilitating focused editing and organization. This feature streamlines the creative process, allowing artists to work with specific sections of their artwork with ease. With PDF Guru, artworking becomes more efficient and precise, enhancing productivity and creativity.

Its impressive for newbies as I am 

Edited by berlin
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...