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:
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:
https://github.com/momchil-atanasov/java-data-front
I started to create a wiki for the plugin, feel free to check it:
https://www.spigotmc.org/wiki/objectrendererapi/
Commands:
/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
Spoiler: The code
Particles:
Blocks:
Code (Text):
Player p = (Player)sender;
File path = new File(this.getDataFolder(), args[0] + ".obj");
new BaseMesh(in).build(new PointBufferBuilder().scale(3f)).setBaseLocation(p.getLocation())
.setRenderer(new PointRenderer().setParticle(Particle.END_ROD).setCount(1)).render();
}
File path = new File(this.getDataFolder(), args[0] + ".obj");
new BaseMesh(in).build(new PointBufferBuilder().scale(3f)).setBaseLocation(p.getLocation())
.setRenderer(new PointRenderer().setParticle(Particle.END_ROD).setCount(1)).render();
}
Code (Text):
mesh.build(new PrimitiveBuilder()).setScale(new Vector(10, 10, 10)).setBaseLocation(p.getLocation())
.setRenderer(new BlockRenderer().setMaterial(Material.QUARTZ_BLOCK).setBlocksPerTick(60).setTickDelay(4).setFaceThickness(4f)).render();
.setRenderer(new BlockRenderer().setMaterial(Material.QUARTZ_BLOCK).setBlocksPerTick(60).setTickDelay(4).setFaceThickness(4f)).render();
Spoiler: The result
Particles:
Blocks:
Blocks:
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:
https://github.com/momchil-atanasov/java-data-front
I started to create a wiki for the plugin, feel free to check it:
https://www.spigotmc.org/wiki/objectrendererapi/
Commands:
/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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
ObjectRenderer(API) is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 485 times (via Spigot). Download it and open it directly in the game.