Outerra forum

Anteworld - Outerra Game => Modding: Importer, Tools & Utilities => Topic started by: Ozybolairy on June 01, 2013, 05:45:33 am

Title: sketchup texture importing
Post by: Ozybolairy on June 01, 2013, 05:45:33 am
I hope someone can help me here. I have created a model in sketchup and alligned the textures which are photo based jpegs. I then export as a .dae file and followed someone else's advice on converting the textures to .dds and renaming in the .dae file. When I import into outerra, the model is imported, but the textures are random colours. The same happens for any model imported from sketchup. Any idea what i'm doing wrong? I'm new to all this so any advice would be appreciated. 
Title: Re: sketchup texture importing
Post by: cameni on June 01, 2013, 08:32:03 am
Can you post the matlib file here and also what types of DDS textures you used? From the wiki:
Title: Re: sketchup texture importing
Post by: M7 on June 01, 2013, 11:39:46 am
can you post a link to the sketchup file? Will take a look.
Title: Re: sketchup texture importing
Post by: necro on June 01, 2013, 12:11:12 pm
Actually there are two possibilities:
1.) Sketchup doesnt create a valid uv-map
2.) There is something broken with the normals

I dont know what happens if the textures were exported in the false format. Maybe this also could be a reason.
Title: Re: sketchup texture importing
Post by: Ozybolairy on June 01, 2013, 01:41:57 pm
Matlib as follows:

[
   {
      "name" : "ID59",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_11.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID540",
      "diffuse" : "227,225,222,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID643",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_5.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID193",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_8.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID672",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_22.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID928",
      "diffuse" : "226,226,226,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID630",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_4.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID791",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_10.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID560",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_9_0.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID20",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_14.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID804",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_3.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID891",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID119",
      "diffuse" : "58,58,58,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID841",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_2.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID366",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_18.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID870",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_23.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID80",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_15.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID106",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_12.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID551",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_9.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID33",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_16.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID7",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_19.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID93",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_17.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID617",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_1.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID127",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_21.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID46",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_13.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   },
   {
      "name" : "ID140",
      "diffuse" : "185,185,185,255",
      "Ax" : "7",
      "Ay" : "7",
      "m" : "127",
      "tex_diffuse" : "Material_20.dds",
      "tex_normal" : "",
      "tex_env" : "",
      "tex_opacity" : "",
      "tex_reflectance" : ""
   }]
Title: Re: sketchup texture importing
Post by: Ozybolairy on June 01, 2013, 02:04:52 pm
link to materials

https://www.box.com/s/wf8gs2xt3krbj7bih9d1 (https://www.box.com/s/wf8gs2xt3krbj7bih9d1)

link to .dae
https://www.box.com/s/vhhjqv7ii28ffcau9xvp (https://www.box.com/s/vhhjqv7ii28ffcau9xvp)
Title: Re: sketchup texture importing
Post by: M7 on June 01, 2013, 02:20:17 pm
It sure look messed up. Can you link the sketchup file?
Title: Re: sketchup texture importing
Post by: Ozybolairy on June 01, 2013, 02:45:20 pm
sketchup file:

https://www.box.com/s/io23sns65am4a6p7x3rt (https://www.box.com/s/io23sns65am4a6p7x3rt)
Title: Re: sketchup texture importing
Post by: M7 on June 01, 2013, 03:34:14 pm
I checked the .skp file and couple of things

- you need to make all components unique otherwise texture and colors will be messed up
- when saving textures in dds, the size need to be in multiple of 4  ie. 292x 336  (291X 335 wont work)

Also you dont need to edit the .dae file to change jpg for dds (found this out lately) the outerra import will change these automaticly.

Will post soon a link to the imported tower. Takes a while for google drive to make files available.
Title: Re: sketchup texture importing
Post by: Ozybolairy on June 01, 2013, 04:20:43 pm
brilliant, thanks for your help on this!
Title: Re: sketchup texture importing
Post by: Ozybolairy on June 01, 2013, 06:57:03 pm
ok, i'm still lost.

multiples of 4! how am I supposed to do that? I tried with 1 texture and it didn't work. Did you have any luck with looking at the sketchup file M7?
Title: Re: sketchup texture importing
Post by: M7 on June 01, 2013, 07:53:51 pm
I use photoshop/ image /image size/ then you have to uncheck contrain proportion and edit width and height in pixels. You probably could do the same with some free software, i just never used any.

Google drive is taking forever to make it available so here's the another link.

http://www.mediafire.com/download/hbyocya1pyxzxo8/keep2.zip (http://www.mediafire.com/download/hbyocya1pyxzxo8/keep2.zip)
Title: Re: sketchup texture importing
Post by: Evildropbear on November 29, 2013, 08:43:09 am
I have a similar problem. I downloaded a sketchup model (http://sketchup.google.com/3dwarehouse/details?mid=60dd9760386d174c33b5d2ccaa5dfaec&prevstart=0 (http://sketchup.google.com/3dwarehouse/details?mid=60dd9760386d174c33b5d2ccaa5dfaec&prevstart=0)), and saved it as .dae

As a result a get a folder full of .jpg textures, most which are not divisable by 4.

In photoshop do I just want to stretch the canvas, or also the image?

If I just stretch the canvas, which side do I align the image to? Top left?
Title: Re: sketchup texture importing
Post by: M7 on November 29, 2013, 10:03:48 am
Dont stretch the canvas, just the image.
Title: Re: sketchup texture importing
Post by: Evildropbear on November 29, 2013, 10:27:07 am
But surly if I do that it won't fit perfectly onto the model anymore?
Title: Re: sketchup texture importing
Post by: M7 on November 29, 2013, 10:48:56 am
 Sketchup models usually dont have precise textures and they are tile textures, so 2 or 3 pixels streched in any direction wont be noticable ingame. 
Title: Re: sketchup texture importing
Post by: Atheros on February 03, 2014, 05:00:40 am
I like taking pictures of buildings and turning them into 3D models. Although hopefully the engine will be able to do this with black magic.