Jump to content

Need help loading OBJ models


Phyyrus

Recommended Posts

How did you make your .obj file?

 

And what is the error?

 

Unfortunately my Magic Code Viewing Device (MCVD) is broken and I can't solve your errors.

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

Link to comment
Share on other sites

He probably mean how did you exported it? It has to be trianglulated, otherwise crash!

The error you showing is a realy simple error. Did you just copy and paste the tutorial, huh?

Sigh.....

 

You have to use ResourceLocation in order to open you .obj!

 

 

Link to comment
Share on other sites

It looks like it's expecting a resource location instance rather than a string. Try putting the string inside 'new ResourceLocation("your path string here")'

 

Edit: Ninja'd by Kriki, but yeah, the resource location class is what handles most files as far as I can tell.

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.