Karang
Karang
Add some cubes and a skin to represent the players. Edit geometry and material here: https://github.com/PrismarineJS/prismarine-viewer/blob/master/viewer/lib/entities.js#L5 Some sources for inspiration: * https://github.com/maxogden/minecraft-skin * https://github.com/bs-community/skinview3d * https://github.com/avaer/skin-js
Like what is done in https://github.com/NVIDIA/Dataset_Synthesizer Non-exaustive list of what could be added: * Block coordinates as RGB (to identify distinct blocks) * Block types as RGB * Depth map
If used as a mineflayer plugin, the viewer should expose some basic drawing functionnalities to other plugins. For instance: * bot.viewer.drawLine(p0, p1, {color, width}) * bot.viewer.drawBox(pos, width, length, height, {color})
Generate a trace that can be used with https://github.com/brendangregg/FlameGraph to visualize which functions takes the most operations. Trace example for basic.leek: ``` runIA;count 115 runIA;debug 2300 runIA;getNearestEnemy 575 runIA;getWeapons 3450...