Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Pages: [1] 2

Author Topic: sketchup texture importing  (Read 13434 times)

Ozybolairy

  • Jr. Member
  • *
  • Posts: 40
  • newbie
sketchup texture importing
« 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. 
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: sketchup texture importing
« Reply #1 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:
  • diffuse has to be DXT1 format
  • normal map has to be 3Dc/ATI2 format
  • opacity map has to be ATI1 format
  • roughness map has to be ATI1 format
  • material reflectance map has to be ATI1 format
Logged

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: sketchup texture importing
« Reply #2 on: June 01, 2013, 11:39:46 am »

can you post a link to the sketchup file? Will take a look.
« Last Edit: June 01, 2013, 12:15:23 pm by M7 »
Logged

necro

  • Sr. Member
  • ****
  • Posts: 451
    • google+ Blog
Re: sketchup texture importing
« Reply #3 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.
Logged

Ozybolairy

  • Jr. Member
  • *
  • Posts: 40
  • newbie
Re: sketchup texture importing
« Reply #4 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" : ""
   }]
Logged

Ozybolairy

  • Jr. Member
  • *
  • Posts: 40
  • newbie
Re: sketchup texture importing
« Reply #5 on: June 01, 2013, 02:04:52 pm »

Logged

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: sketchup texture importing
« Reply #6 on: June 01, 2013, 02:20:17 pm »

It sure look messed up. Can you link the sketchup file?
Logged

Ozybolairy

  • Jr. Member
  • *
  • Posts: 40
  • newbie
Re: sketchup texture importing
« Reply #7 on: June 01, 2013, 02:45:20 pm »

Logged

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: sketchup texture importing
« Reply #8 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.
Logged

Ozybolairy

  • Jr. Member
  • *
  • Posts: 40
  • newbie
Re: sketchup texture importing
« Reply #9 on: June 01, 2013, 04:20:43 pm »

brilliant, thanks for your help on this!
Logged

Ozybolairy

  • Jr. Member
  • *
  • Posts: 40
  • newbie
Re: sketchup texture importing
« Reply #10 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?
Logged

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: sketchup texture importing
« Reply #11 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
Logged

Evildropbear

  • Jr. Member
  • *
  • Posts: 27
  • newbie
Re: sketchup texture importing
« Reply #12 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), 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?
Logged

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: sketchup texture importing
« Reply #13 on: November 29, 2013, 10:03:48 am »

Dont stretch the canvas, just the image.
Logged

Evildropbear

  • Jr. Member
  • *
  • Posts: 27
  • newbie
Re: sketchup texture importing
« Reply #14 on: November 29, 2013, 10:27:07 am »

But surly if I do that it won't fit perfectly onto the model anymore?
Logged
Pages: [1] 2