Jump to content

.Obj Loader UV Coords between 0 and 1 error


thebest108

Recommended Posts

Tried loading .obj in the blockstates .json, it gave me this

 

 

[15:03:50] [Thread-9/INFO]: OpenAL initialized.
[15:03:50] [sound Library Loader/INFO]: Sound engine started
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID22' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ka' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID22' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ks' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ke' (model: 'valkyrianwarfare:models/block/pi.obj.mtl') is not currently supported, skipping
[15:04:06] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ns' (model: 'valkyrianwarfare:models/block/pi.obj.mtl') is not currently supported, skipping
[15:04:06] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'illum' (model: 'valkyrianwarfare:models/block/pi.obj.mtl') is not currently supported, skipping
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID5' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ka' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID5' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ks' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID59' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ka' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID59' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ks' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID9' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ka' will not be applied!
[15:04:06] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'ID9' in 'valkyrianwarfare:models/block/pi.obj.mtl'. The color defined by key 'Ks' will not be applied!
[15:04:06] [Client thread/ERROR] [FML]: Exception loading model valkyrianwarfare:block/pi.obj with loader net.minecraftforge.client.model.obj.OBJLoader@eefc1bf, skipping
net.minecraftforge.client.model.obj.OBJModel$UVsOutOfBoundsException: Model 'valkyrianwarfare:models/block/pi.obj' has UVs ('vt') out of bounds 0-1! The missing model will be used instead. Support for UV processing will be added to the OBJ loader in the future.
at net.minecraftforge.client.model.obj.OBJModel$Parser.parse(OBJModel.java:254) ~[OBJModel$Parser.class:?]
at net.minecraftforge.client.model.obj.OBJLoader.loadModel(OBJLoader.java:72) ~[OBJLoader.class:?]
at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:123) [ModelLoaderRegistry.class:?]
at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:388) [ModelLoader.class:?]
at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:369) [ModelLoader.class:?]
at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:747) [ModelLoader$WeightedRandomModel.class:?]
at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:196) [ModelLoader.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:113) [ModelBakery.class:?]
at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:174) [ModelLoader.class:?]
at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:119) [ModelLoader.class:?]
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:120) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:515) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:360) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_73]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_73]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
[15:04:09] [Client thread/INFO] [FML]: Max texture size: 16384
[15:04:09] [Client thread/INFO]: Created: 16x16 textures-atlas

 

 

How do I fix this?

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Link to comment
Share on other sites

You need to fix your obj's UVs

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

And how do I do that? I already made the models using sketchup; is there a way I could import them in a different modeling program to fix it?

 

(Edit): Also, how would I fix it?

 

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Link to comment
Share on other sites

Sketchup is terrible at assigning UVs.

 

Try

http://www.geeks3d.com/20090303/lithunwrap-free-uv-mapper-for-windows/

 

(You will have to zoom out a lot in order to see the polys)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

×
×
  • Create New...

Important Information

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