Lazy 8 Studios Forum

Cogs => Cogs Modding Forum => Topic started by: flesk on June 02, 2010, 01:23:16 PM

Title: I can't load my model
Post by: flesk on June 02, 2010, 01:23:16 PM
I have made a test model to start modeling but I can't to get it work. I have uploaded the .obj file, which isn't too long because it's just a cube, to get some help. I exported it from Sketchup but it hasn't got rare tags.

What I get from console:
Unexpected data encountered while opeing file data/Flesk/modelos/Prueba-Cogs-2.o
bj
Error loading .obj file data/Flesk/modelos/Prueba-Cogs-2.obj
Title: Re: I can't load my model
Post by: admin on June 02, 2010, 10:00:26 PM
Hey, flesk -

It looks like the problem is that the texture coordinates (the lines that start with "vt") have 3 values while Cogs expects 2.  If you delete the third value on each line starting with vt, the file loads fine.

Looking forward to seeing your mods!

  - Rob
Title: Re: I can't load my model
Post by: flesk on June 04, 2010, 02:17:33 PM
Hi,
that's it, thank you. I'll get busy next days trying to change the script or I'll change of editor.
Title: Re: I can't load my model
Post by: Commundert on October 29, 2017, 11:41:00 PM

It looks like the problem is that the tex can't to get it work. I have uploadture coordinates (the lines that start with "vt") have 3 values while C