Posted August 23, 201510 yr Hello, is it possible to render a 3D Object in the World which is loaded from a .b3d File which is not in the Mod's Assets, but dynamically loaded from the User's Hard Drive? The B3DLoader class takes a ResourceLocation in its loadModel Method, how can I either create a ResourceLocation which points to a File or avoid using a ResourceLocation there? Thanks in advance, CrushedPixel
August 25, 201510 yr Author Do you need any more information to help me? Basically I just need to know how to make a ResourceLocation to point to an actual File on the User's File System.
August 25, 201510 yr Youll need to create an IResourcePack and add it to minecrafts default resourcepackslist. Do this by reflection.
August 27, 201510 yr Author Thanks for the response. I'll use Access Transformers, but I got the idea. Cheers!
August 27, 201510 yr Author I'll use Access Transformers, but I got the idea. Please no! Kill it with fire! Rest assured that I have an accessTransformers.cfg file which is over 100 lines long for the Replay Mod.
August 27, 201510 yr Ah cool, i looked at it and its pretty awesome I have a question, can you show me how i can render B3D models?
August 27, 201510 yr Author I have changed my plans to support .obj and .tcn files using the old AdvancedModelLoader. No clue how to render .b3d either.
August 27, 201510 yr Damn, why don't we try finding it out together? Oh, btw - if you need the obj loader i have a ported version of it
August 27, 201510 yr I found something that could help us - the creator posted an example of the b3d loading on his git: https://github.com/MinecraftForge/MinecraftForge/commit/c4f370a7e6e5b91813f93a14c45b64a7c0b30958
August 29, 201510 yr Author Rest assured that I have an accessTransformers.cfg file which is over 100 lines long for the Replay Mod. Ugh. I can't even. Seriously - what's so bad about them? We also use Sponge Mixins instead of direct ASM transformers, are we the devil himself now?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.