This plugin acts as API, allowing developers to import .obj files into their plugin and using a fancy effect to display those. This plugin already includes a very simple implementation of a particle renderer, however the work is still in progress. The API is designed to be as simple as possible, allowing you to focus on the rendering, not on the actual display math. Let me show you an example of displaying a skull object to the player:
- Tested Minecraft Versions:
Blocks:Code (Text):Player p = (Player)sender;
File path = new File(this.getDataFolder(), args + ".obj");
new BaseMesh(in).build(new PointBufferBuilder().scale(3f)).setBaseLocation(p.getLocation())
Code (Text):mesh.build(new PrimitiveBuilder()).setScale(new Vector(10, 10, 10)).setBaseLocation(p.getLocation())
I will add more renderers like an actual rendering api.
You are freely allowed to decompile and edit this resource to your needs.
This plugin uses this library to import objects:
I started to create a wiki for the plugin, feel free to check it:
/or [particle/block] [file]: Displays a .obj file that is saved in the data folder of the plugin. One needs the permission objectrenderer.use for this