Page 6 of 6

Re: Unity import script

Posted: Tue Jan 10, 2012 10:04 pm
by ZapWizard
I have an issue with the import script (Or lightup export)

It seems that if I have items with solid colors (no texture) inside of SketchUp, all the colors end up being marked as the same "White" defuse color inside of Unity.
Also the light map isn't importing when this happens. If I export lighting only I do get a lightmapped clay model.

I had no issues with the script on a previous project which has far more texture and solid colors.
This is a project for a client I would appreciate a quick response.

Re: Unity import script

Posted: Wed Jan 11, 2012 8:08 pm
by AdamB
If you look at the Autodesk FBX file produced by LightUp, you'll see that the materials do have the diffuse color set to whatever you set them (search for Property: "DiffuseColor")

However, for some reason, the Unity importer just assigns white.


Re: Unity import script

Posted: Thu Jan 12, 2012 12:02 am
by ZapWizard
I figured out my mistake, I had the script in \editor instead of \assets\editor. The colors import with the lightmaps intact.

Re: Unity import script

Posted: Wed Feb 20, 2013 3:54 pm
by shelshok
I've got the script working for the initial import, but when i close and reopen my scene it seems to reimport my model, and then it comes in without the LightUp materials (see attached).

Edit: It seems I'm getting a bunch of error like this one:

Code: Select all

Assets/Bak/tree_3d_green_94__leaves_many_green.mat is missing its meta data file. Reimporting asset.

Re: Unity import script

Posted: Wed Feb 20, 2013 11:59 pm
by shelshok
OK, that doesn't seem to be happening anymore, but I am now having another problem where everything appears transparent and z-sorted incorrectly.


Here's a screenshot where I exported two sketchup scenes (the house and the colored boxes). The house imports weird, and the boxes import fine. Examining them, I see that the house is using the Lightup lightmapped shader, and the boxes are using the legacy lightmapped shader.

They were exported and imported one after the other.

Why would this be happening?

Re: Unity import script, custom shader?

Posted: Thu May 07, 2015 1:35 pm
by bill_c3
Hi Adam,

Sorry for resurrecting an old thread, but seems the most logical place...

Given the age of this script, is it still appropriate to use in the workflow pipeline for current Sketchup 2015/LightUp 4/Unity 4 (or 5) versions?

It looks like you've included a custom shader in your script (I think)... Unity has improved many of the shaders since you originally worked on this. Is it still appropriate to use your custom shader? Or, is there a better native option in Unity?

Thanks in advance!


Re: Unity import script

Posted: Tue Sep 08, 2015 5:01 pm
by marchab
I also would like to know if this script is still appropriate to use nowadays.