pandaninjarawr Posted March 9, 2015 Share Posted March 9, 2015 I'm currently attempting to make a furniture mod that adds in a lot of "clutter" items. I'm using blender right now because Techne doesn't really look that good. But I'm only a Java novice and I'm not sure how to use a .obj model as a block on Minecraft. I know up to how to create a brand new block in Minecraft, but using a model is completely new to me and, after researching I found a whole bunch of sources but they're all pre-1.8 as well as telling me to do various different things, from using 1 line of code to tons of code to using a 3rd party software to convert and I'm just generally confused on what to do, could someone help me? This is what my model looks like: [sketchfab]d27d666c81c24a9a93480c10cea5fcb1[/sketchfab] Daruma by pandaninjarawr on Sketchfab Thanks everyone! Quote Link to comment Share on other sites More sharing options...
TheGreyGhost Posted March 9, 2015 Share Posted March 9, 2015 Hi Currently, you can't easily convert a generic .obj to the block model format that Minecraft uses, and in fact the block model format is only capable of rendering a subset of what your obj model might consist of. Some background info here (see the various Blocks topics) http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html You might have some luck importing your model into a program like BDcraft Cubik http://bdcraft.net/cubik I haven't used it but have heard rumours it might do what you want. -TGG Quote Link to comment Share on other sites More sharing options...
ShetiPhian Posted March 9, 2015 Share Posted March 9, 2015 I've played around with this. AdvancedModelLoader is easily converted to function with 1.8, and using it with TileEntitySpecialRenderer renders blocks just like 1.7 did. But you can not render an item from an obj this way. (if you plan on using only 2d models this will do) I've toyed with a modified version of WavefrontObject (part of AdvancedModelLoader) that provides the needed info to use IBakedModel. You need to remake your .obj file - separate your faces into facing groups, so the shadows are correct. - make sure is created as quads (or you'll get noticeable lines on the faces) This is still flawed however, models that are bigger then a single block have incorrect shadows on parts that extend beyond. [in my case mine is double tall, while the base part is correct the upper half looks to be basing its shadows off the block bellow the main one] Items are also rendered too big in 3rd person but I'm sure that is fixed by using IPerspectiveAwareModel IMHO: BDcraft Cubik is a poor substitute to obj support. Quote Link to comment Share on other sites More sharing options...
pandaninjarawr Posted March 9, 2015 Author Share Posted March 9, 2015 Thank you guys! Very informative replies! I was hoping that I would be able to make some good-looking furniture like the ones Bibliocraft has, but that seems like a far fetched idea now since I always though Minecraft could import .obj files. D: Maybe there's another way? Not like another way to import .obj but use another method to make blocks that aren't completely blocky and not use blender? Would I have to like individually label each vertex or something? :< Quote Link to comment Share on other sites More sharing options...
ShetiPhian Posted March 9, 2015 Share Posted March 9, 2015 There is another option, B3D. I can't tell you anything about it as I haven't played with it yet. (I skipped it because it looks like textures are referenced in the model and I needed to be able to change them) https://github.com/RainWarrior/B3DExport Here is the link to the B3D example (you'll need the resources from the test folder as well) https://github.com/MinecraftForge/MinecraftForge/blob/master/src/test/java/net/minecraftforge/debug/ModelLoaderRegistryDebug.java When RainWarrior added it (Dec 27, 2014) he posted "OBJ loader is being written, will be included at some point in the future. For now you can convert OBJ to B3D via blender, or wait." https://github.com/MinecraftForge/MinecraftForge/commit/6eba0ebb93cafe8dd7c061d92bae0dd4c8d324e3 Quote Link to comment Share on other sites More sharing options...
00yoshi Posted March 9, 2015 Share Posted March 9, 2015 Techne is good, simply google it: [lmgtfy]Techne[/lmgtfy] Quote Link to comment Share on other sites More sharing options...
Awesome_Spider Posted March 9, 2015 Share Posted March 9, 2015 Or if you don't like the look of Techne, McAnimator is a good alternative. But please keep in mind it is still a beta version. So it might have a few glitches that they are working out. Here is the link to McAnimator: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/2187221-1-2-1-mcanimator-windows-mac-linux-better Quote Link to comment Share on other sites More sharing options...
pandaninjarawr Posted March 10, 2015 Author Share Posted March 10, 2015 Omg thanks so much! That may be exactly what I'm looking for! Hopefully there aren't too many glitches! EDIT: Oh darn D: it seems like it's just a Techne+ I just want my block model to not be blocky And semi-round-ish Quote Link to comment Share on other sites More sharing options...
larsgerrits Posted March 10, 2015 Share Posted March 10, 2015 As said before, there's currently no easy way of importing a Wavefront model in Minecraft 1.8. On a side note: why do you want a round model in a blocky world? Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/ Link to comment Share on other sites More sharing options...
Awesome_Spider Posted March 10, 2015 Share Posted March 10, 2015 Ya, he does have a point. But I don't know about not easy. MCHeli has helecopters and planes that are done in Wavefront models. And I have seen a video done by the creator of Flans saying "...it is REALLY easy." (his words not mine). But this conversation is making my brain hurt. I'm not sure I can add anything else at this point. Quote Link to comment Share on other sites More sharing options...
larsgerrits Posted March 10, 2015 Share Posted March 10, 2015 Ya, he does have a point. But I don't know about not easy. MCHeli has helecopters and planes that are done in Wavefront models. And I have seen a video done by the creator of Flans saying "...it is REALLY easy." (his words not mine). But this conversation is making my brain hurt. I'm not sure I can add anything else at this point. Well yeah, because MCHeli is still for Minecraft 1.7.10, and in that version it is easy to add a Wavefront model using Forge's build-in AdvancedModelLoader. In 1.8, no such thing exists and is it difficult to add Wavefront models to the game. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/ Link to comment Share on other sites More sharing options...
Awesome_Spider Posted March 10, 2015 Share Posted March 10, 2015 Oh, I suppose because of the new json file system. Quote Link to comment Share on other sites More sharing options...
pandaninjarawr Posted March 11, 2015 Author Share Posted March 11, 2015 Darn D: that's alright, I'll do something else for Minecraft then. I don't exactly want a round object but just not exactly a cube either, I've always liked building stuff in Minecraft but I've always been annoyed at how limited I was at aesthetics (furniture and stuff, they made a Wither boss and not a chair?? ) and even though there are very creative designs with chairs and sign posts and such, it always felt too big. I was actually thinking about making a wall that connects like how stairs/walls connects but more like a wall for a building and not for like a fence outside. But yeah anyway thanks for the input guys! x) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.