Outerra forum

Anteworld - Outerra Game => Modding: Importer, Tools & Utilities => Topic started by: giucam on May 28, 2013, 04:34:52 pm

Title: Texture problem
Post by: giucam on May 28, 2013, 04:34:52 pm
I'm trying to import this (http://sketchup.google.com/3dwarehouse/details?mid=5e4fe8a57130744dece0b0a75f5fc9f6&prevstart=0) bike. It worked fine but then i modified a bit the mesh hierarchy in blender, reexported as collada, and then the textures started having problems. I could not understand what caused it but i didn't touch in any way textures, materials or techniques.
Does anyone know what this could be?

(http://i.minus.com/i4yxRB0zVup5F.jpg)
Title: Re: Texture problem
Post by: Jagerbomber on May 28, 2013, 05:24:07 pm
I think it's because  8)
Title: Re: Texture problem
Post by: necro on May 29, 2013, 02:03:08 am
giucam, after adding some vertices the whole UV-map needs an update. Because the old uv-map has to handle with less vertices. So it doesnt fit to the new mesh. Or what do you mean with hierarchy?
Title: Re: Texture problem
Post by: giucam on May 29, 2013, 08:55:51 am
No, i didn't modify the meshes, i just changed the positions and the parent/child relationships:

(http://i.minus.com/iboeKfQAfKzExh.jpg)
Title: Re: Texture problem
Post by: necro on May 29, 2013, 09:14:36 am
oh, then it depends on the importer i guess. Do you have multiple texture files for within the object?
Title: Re: Texture problem
Post by: giucam on May 29, 2013, 10:44:06 am
Actually it has no textures, only solid color materials.

EDIT: I noticed that if i do "Apply location" in blender i also see that effect.
Title: Re: Texture problem
Post by: necro on May 29, 2013, 11:48:17 am
But apply location does not impact textures. Thats strange.

Could you send me the .blend file? I could check this then.
Title: Re: Texture problem
Post by: giucam on May 29, 2013, 11:57:10 am
Sure, thanks: https://www.dropbox.com/s/ehmclhqnscf5knv/untitled.blend (https://www.dropbox.com/s/ehmclhqnscf5knv/untitled.blend)
Title: Re: Texture problem
Post by: necro on May 29, 2013, 02:05:16 pm
Ok, i could figure out the problem. This model has wasted normals. Actually someone has to recreate the model completely. The problem is, that this model only has triangles - no quads. Therefor blender is confused about the normals.
I'll see, what i can rescue, but it needs time ;)


This is what i could rescue so far - but some parts need a complete recreation.
(https://lh3.googleusercontent.com/-28_yat27VoI/UaZHK-X49gI/AAAAAAAACoY/Y5zlEI_gzQk/w1479-h832-no/screen_1369851569.jpg)


https://docs.google.com/file/d/0B2opjgFY-gdiNGlGU0hhV1gyQnM/edit?usp=sharing (https://docs.google.com/file/d/0B2opjgFY-gdiNGlGU0hhV1gyQnM/edit?usp=sharing)
Title: Re: Texture problem
Post by: ZeosPantera on May 29, 2013, 03:25:56 pm
Either your grass is shorter than mine use to be or that thing is HUGE
Title: Re: Texture problem
Post by: necro on May 29, 2013, 03:34:00 pm
Lol, i didnt recognized it, but you are right. The bike has correct proportions, so i guess the grass is shorter.


but there is no parameter for that ^^ so its surely the bike, which isn correctly proportioned.


This is the tree as reference:


(https://lh6.googleusercontent.com/-fJiNkT3wMzM/UaZY6VOnkYI/AAAAAAAACos/5o7mu0PCis8/w1479-h832-no/screen_1369856160.jpg)



Title: Re: Texture problem
Post by: ZeosPantera on May 29, 2013, 03:38:47 pm
Just spawn the 8x8 behind the bike.
Title: Re: Texture problem
Post by: necro on May 29, 2013, 03:58:42 pm
I thought the tree would be evidence enough, but just for you i post a nice foto ^^


(https://lh5.googleusercontent.com/-hp1etPQK_To/UaZdu4c84aI/AAAAAAAACpM/38CZOjzbirE/w1479-h832-no/screen_1369857420.jpg)
Title: Re: Texture problem
Post by: giucam on May 29, 2013, 05:30:39 pm
LOL yeah, that bike is quite big. :D I've found 0.15 to be a quite good scale factor.

Thanks a lot necro! I've also found a way to work around it: I export the correct hierarchy from blender, then i manually edit the original and the new dae, I copy the hierarchy over the original dae, adjust some things and voila! It's quite a cumbersome work though, I'm still halfway.
Title: Re: Texture problem
Post by: PytonPago on May 30, 2013, 04:56:29 am
I thought the tree would be evidence enough, but just for you i post a nice foto ^^


(https://lh5.googleusercontent.com/-hp1etPQK_To/UaZdu4c84aI/AAAAAAAACpM/38CZOjzbirE/w1479-h832-no/screen_1369857420.jpg)


....just a little bit, a tiny, wemy wamy minuscle piece of a bit - bigger than it should. Simply said: an ogre giant could not ride that thing.  ;D
Title: Re: Texture problem
Post by: necro on May 30, 2013, 05:16:58 am
But thats a cool idea. How does it feel to ride an oversized vehicle? I will test that, when i have the time to create an ogre truck (increase of monster truck :P) Or why the wheels shouldnt be big sized like the mount everest?
Title: Re: Texture problem
Post by: giucam on May 30, 2013, 06:32:06 am
This I think is more correctly sized ;)

(http://i.minus.com/iXuhRoWgtzQH4.jpg)