x


COLLADA import with textures

It looks like collada files are supported by drag and drop import's, but although textures are converted to materials they do not show up on the mesh..

Is there a way to have collada files imported with textures intact?

The images are stored in a folder called TEXTURES in the project panel. The dae references them like this:



<image id="file-027_RUW" name="file-027_RUW">
  <init_from>TEXTURES/TERRAIN/STANDARD/DAY/BUILDINGS/027_RUW.PNG
</image>


more ▼

asked Sep 17 '11 at 02:27 AM

ina gravatar image

ina
3.3k 492 549 598

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

i find my collada imports fine IF I import the textures first.

more ▼

answered Feb 09 '12 at 09:44 PM

Jeff Kesselman gravatar image

Jeff Kesselman
53 8 10 16

then your texture files become part of the unity file system.. not sure how the file references still hold. do you have to still manually drag and drop the textures on materials in unity?

Feb 10 '12 at 11:04 PM ina

It works.

Im not 100% sure how but my guess is that the Collada importer is intelligently finding then in the resource base by name.

Feb 10 '12 at 11:38 PM Jeff Kesselman
(comments are locked)
10|3000 characters needed characters left

Are you sure all the files are in the correct place(s)? I've not had any such problems.

more ▼

answered Sep 17 '11 at 07:18 AM

DaveA gravatar image

DaveA
26.5k 151 171 256

Files are all in correct places, except there are many subfolders

Sep 17 '11 at 07:34 AM ina

Well, actually I believe the files are all in correct places, but not sure if Unity is reading the relative file paths... See update above

Sep 17 '11 at 08:06 AM ina
(comments are locked)
10|3000 characters needed characters left

I used to have this same Problem. I never found a straight way to fix it, so now I import the Collada File into Blender. You then export that as an AutoDesk(fbx) file.

When Importing it into Unity:

  1. Drag The texture folder for your Collada file into Unity.
  2. Drag the FBX file into Unity

It is imperative that you do it in this order.... It works 95% of the time for me. Every so often it assigns the wrong texture to the object but that is very rare.

more ▼

answered Sep 17 '11 at 03:31 PM

sketchers1 gravatar image

sketchers1
169 14 20 28

when's the 5% that it fails? :- are you using blender/unity on windows or mac?

Sep 17 '11 at 09:31 PM ina

I dont know.. Sometimes it just randomly fails.. and I am using mac, but i have tried it on windows and that works also

Sep 17 '11 at 11:33 PM sketchers1
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x971
x390
x274
x54
x28

asked: Sep 17 '11 at 02:27 AM

Seen: 3542 times

Last Updated: Feb 10 '12 at 11:38 PM