Jump to content

Recommended Posts

Posted

Hello all,

 

I am trying to play around with .obj modelling and using them in minecraft... But it's throwing a parse error:

 

  Reveal hidden contents

 

 

And the Test.obj file:

 

  Reveal hidden contents

 

 

Any ideas why this is happening?

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Posted
  On 6/6/2014 at 2:53 AM, Kwibble said:

It doesn't seem to be the problem...

 

"net.minecraftforge.client.model.ModelFormatException: Error parsing entry ('g Mesh1 Model', line 7) in file 'basicmod:models/test.obj' - Incorrect format"

Oh yeah, you're right, I missed that, sorry  {facepalm}

 

I can't be of much help then; perhaps you could step through WaveFrontObject.loadObjModel and see why it gets upset.

It is looking for a pattern that matches this

    private static Pattern groupObjectPattern = Pattern.compile("([go]( [\\w\\d]+) *\\n)|([go]( [\\w\\d]+) *$)");

http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html

 

The wavefront files I'm familiar with just have one word after the g.  You could try deleting the word Model, or replace it with a single character, and seeing if it works.

 

-TGG

 

 

 

 

Posted

It's all good mate. I fixed it xD

 

What I had was an object file exported from Sketch Up. It wasn't in the correct format etc. etc.. So I downloaded blender, imported the .obj, then exported it again with the right check boxes checked. Model doesn't crash and now I am just having rendering issues: http://www.minecraftforge.net/forum/index.php/topic,19855.0.html

We all stuff up sometimes... But I seem to be at the bottom of that pot.

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.