[Plugin]Export Collada with texture names 1.2b [30/9/11]
-
@tig said:
SO depending on the app that you import into
That could be a explanation (I can't check because I don't have C4D).
It seems collada files contain several "similar" elements like
%(#000000)[<image>]
,%(#000000)[<effect>]
,%(#000000)[<material>]
and%(#000000)[<instance_material>]
. SketchUp's exporter applies generic IDs and names ("Material2") to these elements and generic names to the texture files.
I added already the capability to apply the original material's name to%(#000000)[<material name="...">]
and%(#000000)[<instance_material symbol="...">]
(although that was risky and caused lots of the errors in the posts above, but it should work now). I regret if those names aren't imported into other applications. -
Hey Aerilius, please don't apologise for this...you did a great job, and I was getting used for waiting on a more streamlined import method to C4D. It will come!
Thanks anyway!
Grtz
Pep -
First of all Thanks for your efford!
I am having 2 problems with this particular plugnin
- The normal collada file from the native exporter in sketchup is about 62mb but with your is more that 250mb. Is there anything, like filenames, material names or whatever matter when exporting?
- Importng it to Lumion doesn't seem to show up the names of the materials. Has anyone make it to work properly with lumion? Meaning lots of re-sync with correct materials?
p.s. I don't know if that matters but I am notusing "textres" in sketchup just color "materials" that I change the name (!)
Thanks for your time!
edit: I also tried with "textured" materials and some materials got idd renamed in the first time, but 1) The texture seamed to go to more surfaces than i put it 2) The names on a second export seemed to seize renamed and go to a generic material01, material03...
Although as I understanding there is not a perfect solution here. Has anyone understood what order sketchup uses in order to apply the generic material names? My first thought was alphabetical but this seems not to be the case...Plz help me....
-
I'm curious if anyone has found out if it is possible to keep the material names (by that I mean the SketchUp "color only type materials" not image textures) when exporting using DAE... Has this been determined to be impossible?
-
Could someone add an option to swap Y and Z axis, please
I am using Collada2POD to import my models into my application, but Y and Z axis appears swapped
I'd appreciate it a lot
-
Hi,
I have problem, i use this plug in but still texture names comes like texture0.bmp, texture01.bmp ect... What is possibly happening? I use File > "Export collada with texture names" -
Even when i use this exporter it creates lot of textures, instead of one. the above comments are too technical for me. can you professional give me a simple solution or an updated exporter which works.
-
@mkumar said:
Even when i use this exporter it creates lot of textures, instead of one. the above comments are too technical for me. can you professional give me a simple solution or an updated exporter which works.
The native exporter works fine, except that material-names get changed [even worse in older versions], hence the attempt here to 'fix' the names, the exported DAE format is no different...Here's my analysis...
When you get lots of texture files relating to something that appears to be the same texture it is because most exported file formats rely on triangulated mesh faces and therefore only have three vertex normals to map the UVs of the textures [i.e. to work out how the texture is positioned exactly on each facet]. Now, if a texture has been simply positioned on a face [i.e. slid around], or rotated or scaled, then these three points are sufficient to determine what the texture should be like on the related exported facet. However, if you have a 'skewed/perspective-like' texture [even slightly distorted like this] - perhaps by moving one corner inadvertently whilst positioning/rotating it, or somehow projecting it - then to UV map that texture in the exported format successfully would need four vertices, and of course as explained before we only ever get three to use !
So to overcome this many exporters will spot these distortions and create a unique distorted texture-map of that particular texture and save it as another 'similar' image-file... and then apply that without any other UV mapping as the texture - so that it then looks the same in the exported version; but of course it has to use this other image-file. Thus, is you have lots of weirdly distorted textures in a SKP that you export it can include many of these distorted image-files... Some Pro exporters try to reuse distorted image-files for several matching facets, others like my OBJexporter have a built-in tolerance and if the distortion is very slight the undistorted standard version of the image-file is still used to avoid zillions of slightly different files/textures getting made...
So, in conclusion... I suspect your SKP has many distorted textures that cannot be easily exported without distorted image-files being created.
-
Nice plugin,
but it seems this does not support the exporting of instances/symbols/components etc?
I import in Maya and SketchUp components are no longer instances.
However if I export using regular Collada DAE exporter, maya reads SketchUp components as instances.
-
@aerilius said:
This plugin allows to export the whole model or the selection to Collada file format while preserving/restoring the the texture's original file and the material's screen names.
This is useful since SketchUp's Collada exporter creates generic names which don't allow to identify materials anymore when you want to use the file in another software.
SketchUp also creates new textures images for each face with distorted texture coordinates; however these won't receive the original material's name.
If you need specific export options (from SketchUp's options dialog), feel free to edit theoptions_hash
.
Unfortunately, SketchUp also creates generic material names (%(#000000)[<auto>1]
) when you import Collada files into SketchUp.Version: 1.2b
Date: 30.09.2011
Usage:
(Menu) File -> 'Export Collada with texture names'it works for my pc
Aerilius, thanks a lot your helps -
Dear, i am still getting my textures renamed as _auto_4.bmp, i read all the posts but couldn,t figured out the issue, using windows and Sketchup 2017, can you help.
Advertisement