-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a prismarine-world web visualizer #17
Comments
(stuff generated in a world instance include https://github.com/mhsjlw/flying-squid/tree/master/src/lib/worldGenerations and https://github.com/mhsjlw/flying-squid/blob/portal/test/portal_detector.js#L26 ) |
annoying that the voxeljs api is sync https://github.com/maxogden/voxel-engine#requirevoxel-engineoptions Way to go around that:
|
about the hacking with voxeljs way, possibilities:
|
Would be interesting to take some of the code of one of these and tranform it in a prismarine-world visualizer (that will then be usable along with flying-squid and mineflayer (once mineflayer use prismarine-world), and other more simple application (for example I'd like to display a portal in a web page)) |
https://github.com/vogonistic/mineflayer-voxel/blob/master/app.js#L258 is a good way to get around voxel sync api |
this is pretty cool http://cloud.thomas-edwards.me/mc_test/backup.html see the page source for more info |
(on the browser visualization theme, this is interesting https://www.spigotmc.org/resources/thinkmap.413/, even though the java code won't be usable here ofc) |
about a "doesn't take the whole page" visualizer:
|
If by sync you mean the If there are other parts of the API that are sync and making integration difficult, would be happy to change them to async in voxel-engine-stackgl :) let me know
ThinkMap is pretty interesting, I contributed some bugfixes a while back, but development has stalled for a while. The server is written in Java, and the client also written in Java but compiles to JavaScript using GWT. I think vogonistic/mineflayer-voxel#1 is currently the most promising. @vogonistic @rom1504 what do you about moving mineflayer-voxel into the https://github.com/PrismarineJS organization like https://github.com/PrismarineJS/mineflayer to maintain and develop it there? Would be awesome to get it up and running, actively developed again (it was before my time, I've never tried it until now). The approach taken by mineflayer-voxel has some advantages over https://github.com/deathcap/voxel-clientmc - which is more ambitious in that it aims to implement an MC client as the web app itself, whereas mineflayer-voxel runs the "client" (via mineflayer) on a server and uses a simplified custom protocol for communication between the web app and client server. voxel-clientmc is further away from updating to get working again, currently blocked need to update wsmc first. |
Okay thanks, I'll try the missingChunk then showChunk() approach. I'm okay with putting mineflayer-voxel in PrismarineJS . vogonistic/mineflayer-voxel#1 only starts to fix things though. I never tested mineflayer-voxel when it was fully working, but I believe there are still things broken in vogonistic/mineflayer-voxel#1 though. My idea with having a prismarine-world voxel visualizer is that once it's done, it will be possible to use it along with a client (with mineflayer), or with a server directly (with flying-squid), or just load a world and use it without dealing with network problems. |
http://cubical.xyz/ is pretty interesting (nothing on github afaik but the source is available (view source)) |
I stumbled upon http://voxmc.com/vox-populi-web-map/# which is pretty cool too. I wonder if there are any easy to use tiling/map npm module that could be used to display a prismarine-world. |
I started some work with voxel+prismarine-world there https://github.com/rom1504/voxel-prismarine-world |
on the map theme : https://overviewer.org/ is cool but apparently coded in python and build with a static point of view : 1) read world 2) generate html/js 3) view |
would be interesting to provide a tile server for prismarine-world and then use http://leafletjs.com/reference.html#tilelayer to display these tiles. edit: maybe https://github.com/derrickpelletier/maptile |
see https://github.com/andyhall/noa https://glitch.com/edit/#!/mineweb-dev?path=build%2Flib%2Fmineweb.js%3A4%3A20 https://github.com/MinewebMC/mineweb ^ all this could be reused to implement that viewer |
https://github.com/PrismarineJS/prismarine-viewer I'd say this issue is done |
It would be cool to be able to see stuff generated in a World instance without having to start minecraft.
Maybe @creeplays or @dcbartlett already have a part of that ?
Also see https://github.com/vogonistic/mineflayer-voxel
The text was updated successfully, but these errors were encountered: