Jump to content

can FBX or OBJ be used for mob models ?


monkeybee

Recommended Posts

hi there ive only just gotten in to modding and coding ive only done lua scripts to this point and even after 12 years im still bad at it 
but the qustion is is there a way to use OBJ or FBX for my minecraft mod mob models ?
ive seen over and over a gen that OBJ files can be used for blocks and items but some 1 told me to use OBJ for a mob model ive got to "write code to use forge's obj models for mobs though." 
im using google blocks to make these moddels bc its a fun way to do it im able to export the models as a obj OR a FBX im not able to find anything on the interner about using FBX for minecraft modding tho 

Link to comment
Share on other sites

Yes it can be done, It's a bit complicated though. I believe it will involve custom TextureStitching, custom ModelLoading (maybe custom Model Parsing? I've never heard of FBX models before) and likely custom Model Rendering (likely directly interacting with the BufferBuilder). If you're using these models just because they're easy to create take a look at http://blockbench.net.

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

1 minute ago, Cadiboo said:

Yes it can be done, It's a bit complicated though. I believe it will involve custom TextureStitching, custom ModelLoading (maybe custom Model Parsing? I've never heard of FBX models before). If your using it just because they're easy to create take a look at http://blockbench.net.

not so much easyer as google blocks dosent have a left handed mode but its more fun then just using a mouse and keybord https://vr.google.com/blocks/

as far as me know the only way to export models from google blocks is by publishing them to google poly

(my model has no textuers bc im still lurning the program and atm me think u can only colour the side of a "cube" not give it a textuer map inside the modler this coud be wrong tho )
https://poly.google.com/view/dsLpXGLYiQY

Link to comment
Share on other sites

I don't know about FBX but OBJ is a pretty straightforward format. It is easy to write a parser and a vertex uploader for an obj model. Something kinda like I did here

6 minutes ago, Cadiboo said:

If your using it just because they're easy to create take a look at http://blockbench.net.

The OP wants to render mob models, not block/item models though.

28 minutes ago, monkeybee said:

is there a way to use OBJ or FBX for my minecraft mod mob models ?

While it is possible to use an item/block model for an entity model it is impractical. Animating it for example would be a nightmare.

 

I also have no idea what you are talking about with this

7 minutes ago, Cadiboo said:

I believe it will involve custom TextureStitching

You don't need to stitch anything for rendering an entity.

Link to comment
Share on other sites

13 minutes ago, V0idWa1k3r said:

The OP wants to render mob models

1124500302_ScreenShot2018-09-28at12_47_48am.png.fd067dea45be1c0855a6b90bfb2d4b59.png

15 minutes ago, V0idWa1k3r said:

While it is possible to use an item/block model for an entity model it is impractical. Animating it for example would be a nightmare.

I've loaded my own (JSON) models and used them for an entity (with position & motion based animation) here

15 minutes ago, V0idWa1k3r said:

You don't need to stitch anything for rendering an entity.

If your adding (JSON) models without a block or item attached to them it's my experience that you need to add their textures to the texture atlas

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

1 minute ago, Cadiboo said:

1124500302_ScreenShot2018-09-28at12_47_48am.png.fd067dea45be1c0855a6b90bfb2d4b59.png

I've loaded my own (JSON) models and used them for an entity (with position & motion based animation) here

If your adding (JSON) models without a block or item attached to them it's my experience that you need to add their textures to the texture atlas

but..... its not json ..... its obj.....(or fbx)

Link to comment
Share on other sites

4 minutes ago, Cadiboo said:

1124500302_ScreenShot2018-09-28at12_47_48am.png.fd067dea45be1c0855a6b90bfb2d4b59.png

That is for bedrock entity models. Or obj models. Not a java entity model so no go there.

6 minutes ago, Cadiboo said:

I've loaded my own (JSON) models and used them for an entity (with position & motion based animation) here

Notice how you used multiple independent models there. Not a single obj/json model but a collection of different ones.

7 minutes ago, Cadiboo said:

If your adding (JSON) models without a block or item attached to them it's my experience that you need to add their textures to the texture atlas

If you are rendering them through vanilla's renderers then yes, you do need to stitch a texture since this is where the game will look for it. You would also need to bind the default sprite atlas. However if you simply have a model that is not a IBakedModel you can just bind the texture and as long as your vertices carry the correct texture coordinates everything will just work.

Link to comment
Share on other sites

Just now, monkeybee said:

but..... its not json ..... its obj.....(or fbx)

I realise, You said that 

50 minutes ago, monkeybee said:

im using google blocks to make these moddels bc its a fun way to do it

So I said

30 minutes ago, Cadiboo said:

If you're using these models just because they're easy to create take a look at http://blockbench.net.

BlockBench is a JSON model creator that is very easy to use and can do quite a lot. If you're sticking with OBJ/FBX then do what VoidWalker said.

 

1 minute ago, V0idWa1k3r said:

That is for bedrock entity models. Or obj models. Not a java entity model so no go there.

My bad, sorry

 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

Just now, Cadiboo said:

BlockBench is a JSON model creator that is very easy to use and can do quite a lot. If you're sticking with

well me mean me coud use a diffront model maker to remake my models after ive done them in google blocks (bc im really just messing about in there for fun in till ive made something that me like XD)

but at the start of this it just seemed like a wasted step if me coud just export it form google block and use the same model file for my mod 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • It wasnt mappings issue, I was reading fabric and not forge. Fabric has PlayerEntity while forge has Player. Through a mixin I was able to change the player's velocity so that there is a sort of slow-motion type movement. Only issue is that jumping seems to be handled separately. Changing that velocity only makes the jump lower, not slower. Unsure how to increase the duration in which a jump happens.   @Mixin(LivingEntity.class) public abstract class ExampleMixin extends Entity { public ExampleMixin(EntityType<?> type, World world) { super(type, world); } @Inject(method = "tickMovement", at = @At("HEAD")) private void onTickMovement(CallbackInfo ci) { // Access the player entity LivingEntity entity = (LivingEntity)(Object)this; // Modify player's acceleration by applying a force in the opposite direction double slowdownFactor = 0.75; // Adjust as needed entity.setVelocity(entity.getVelocity().multiply(1, slowdownFactor, 1)); } }  
    • Hi so i made a modded survival, and when i go to the page 13 of my JEI,  my game instant crash and give this error "The game crashed whilst rendering item Error", I don't know what to do i give you the crash report : https://pastebin.com/EhzYdEZg
    • You need to run build at least once before running the game for the first time in a dev environment. Make sure stuff's working *before* you start making changes to the mdk template
    • Greetings, people of the forge forums: I come to you in a time of need. While creating my silly block entity that is (in theory) supposed to point to a position within world space I've started to question how to actually implement it.   How would I get a tile entity element (or bone) to change its pitch/yaw/roll? While I do have prior experience with programming, I have no actual experience with the forge API except the things listed in its docs. Please correct me if I am in any way wrong.
    • Making my own screen by extending from net.minecraft.client.gui.screens.Screen and override render method. I am trying to make green square only to be visible when intersecting with red square. This is what I got so far: @Override public void render(PoseStack poseStack, int mx, int my, float partialTick) {     RenderSystem.enableDepthTest(); // Red square     GuiComponent.fill(pPoseStack, 32, 32, 64, 64, 0xFFFF0000);     RenderSystem.depthFunc(GlConst.GL_LEQUAL); // Green square     GuiComponent.fill(pPoseStack, mx-16, my-16, mx+16, my+16, 0xFF00FF00); } Thank you in advance.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.