how does it visualize the preview in the browser #212
Replies: 4 comments 4 replies
-
This is super cool! I love how it uses layered glass to achieve more accurate colours. HoloPrint is pretty lenient when it comes to parsing structure files; Minecraft is generally more strict about the structure of the file (from my experience). Have you checked if creator content logs are enabled in-game? They may tell you the issue with the NBT structure. If you attach a sample structure file generated by your program or upload the code, I'll be able to test for myself. HoloPrint's preview rendering works by using this library to render the hologram geometry in a canvas. It's a very easy solution for me because I don't need to write any specialised code for it - I just give it the geometry file which is already generated in the pack. However it's pretty bad for performance because it treats each ghost block individually - regardless if it's the same block. I plan to update this in future with instanced geometry. You could theoretically use HoloPrint's code to generate the geometry only and then give it to the preview renderer, which would work on any website. However I'd have to clean the code up a bit (which I'm doing a bit of now). If you want to do this, let me know and I'll try to make a clean API for this purpose. |
Beta Was this translation helpful? Give feedback.
-
@SuperLlama88888 here this is one of the structures. i know that the blockindecies array needs to be a nested list with one list per layer and i fixed that but it dint work either. (i dont have one of the corrected files on hand cause im in school rn) (also it looks more like tha actual picture when using this texture pack that sets the opacity of glass to exactly 50% |
Beta Was this translation helpful? Give feedback.
-
Hmm, I think the only issues with the NBT are the missing second layer in block_indices, and the missing block_position_data compound list in structure.palette.default. |
Beta Was this translation helpful? Give feedback.
-
@SuperLlama88888 thank you thank you thank you. without you i probably wouldnt have figured out why it didnt work in months |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
not really an issue more a question. and idk if you can help me. ive been making a tool to generate glass art from a picture and it outputs an .mcstructure file. ive been viewing the structure file by generating a pack on the website and using the preview window so i don't have to import it into Minecraft which takes ages and isn't really feasible for debugging. now ive got the code running and it looks fine when i view it on the website but when i try to import the .mcstructure (no holoprint pack) the structure block doesn't recognise the structure and just doesn't accept the structure. now my question is why does holoprint accept the structure file while Minecraft doesn't.
these pictures are inside holoprint and when i generate the resource pack it works in Minecraft but the structure itself doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions