Jump to content

using wavefront files (obj)


hydroflame

Recommended Posts

so i only recently started using wavefront in minecraft (not wavefront in general) and i noticed a lot of them wont go through the parser :\

 

i made it work and everything in dev mode but im not sure about release

basicly to create one i use

AdvanceModelLoader.loadModel("/assets/models/mymodel.obj");

and that translates to:

"mcp/src/minecraft/assets/models/mymodel.obj" in system path

now if i keep the same code, where am i supposer to place this model for a real release

 

".minecraft/mods/mymod.jar/assets/models/mymodel.obj" ?

 

(dont talk to me about techne, wavefront files are WAY better)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

I'm also trying to get my head around using Wavefront files.

 

Looking at ee3 it seems to use "/assets/ee3/models/modelname.obj"

 

with the .jar filestructure being "ee3.jar/mods/ee3/models/modelname.obj"

 

I've also noted that Forge is picky about .obj files, doesn't seem to like normals, whole numbers saved as "1" rather than "1.0" and scientific notation.

Link to comment
Share on other sites

yes i approve that the string you pass must be starting from the root of the jar/zip file tested and confirmed

and no minecraft doesnt like normals since its lighting system isnt a per-pixel shader

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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