RE: How to share material between objects? (XSI->Mray)

Date : Sat, 29 Apr 2006 12:01:38 +0200
To : <XSI(at)Softimage.COM>
From : "Schoenberger" <XSI(at)digidragon.de>
Subject : RE: How to share material between objects? (XSI->Mray)
 
I have a very simple script for a scene attached.
Just 50 grids, 5 nodes in the render tree.
Takes about 15 seconds until XSI has exported the material.
If you uncomment some lines at the end of the script to get more render tree connections, it takes more time...
 
 
(at)Ben:
Hmm, a did not thought about a merge with an unfreezed connection...
I will try this later this day.
 
(at)Fabian:
A material in a group did not solve the problem, already tested it yesterday.
 
Holger Schönberger
technical director
The day has 24 hours, if that does not suffice, I will take the night
 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Ben Barker
Sent: Saturday, April 29, 2006 4:07 AM
To: XSI(at)Softimage.COM
Subject: Re: How to share material between objects? (XSI->Mray)

If you merge them into one it will create a new polymesh with a live connection to the original pieces through a merge op, so it will be animated with whatever deformations the source objects have.
 
I actually tried shape plotting this and it didn't work. Maybe I did something wrong.
 
But what does work is then making another duplicate of the merged mesh, freezing it, and setting a scripted op on it so it matches the position array of the polymesh with the live merge op on it (that you duplicated it from). Then you shape plot the one with the scripted op. Then you can delete the polymesh with the merge op and your 2000 source objects, and you have one mesh with deformations.

 
On 4/28/06, Schoenberger <XSI(at)digidragon.de> wrote:

> Perhaps you can merge the polymeshes, plot the shape of
> the new large polymesh, freeze out the extract op and
> delete your 2000 grids. This will make it one large
> polymesh instead of many small polymeshes, which
> XSI seems to prefer.

The grid deformation is animated, that's why I cannot merge the grids into one single grid.

I just removed all unused cross-connections and tried to reduce the nodes,
because some passes are not used in compositing.
Faster, but it still takes a lot of time...

Holger Schönberger
technical director
The day has 24 hours, if that does not suffice, I will take the night



---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi



--
Ben Barker
Hair/Fur
Omation
NewScene
CreatePrim "Grid", "NurbsSurface"
SetValue "grid.grid.ulength", 2
SetValue "grid.grid.vlength", 2
SetValue "grid.surfmsh.geom.subdivu", 2
SetValue "grid.surfmsh.geom.subdivv", 2
Duplicate "grid", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Translate , 2.29772311932957, 2.4980018054066E-16, -2.60208521396521E-17, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0
Duplicate "grid1", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid2", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid3", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid4", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid5", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid6", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid7", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid8", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid9", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid10", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid11", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid12", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid13", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid14", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid15", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid16", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid17", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid18", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid19", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid20", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid21", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid22", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid23", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid24", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid25", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid26", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid27", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid28", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid29", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid30", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid31", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid32", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid33", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid34", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid35", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid36", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid37", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid38", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid39", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid40", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid41", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid42", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid43", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid44", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid45", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid46", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid47", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid48", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
Duplicate "grid49", , 2, 1, 1, 0, 0, 1, 0, 1, , , , , , , , , , , 0
CopyPaste , "Shaders\Texture\Mixers\Mix_8colors.Preset", "TransientObjectContainer"
SIConnectShaderToCnxPoint "TransientObjectContainer.Mix_8colors", "Sources.Materials.DefaultLib.Scene_Material.Phong.ambient", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors", "Sources.Materials.DefaultLib.Scene_Material.Phong.diffuse", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors", "Sources.Materials.DefaultLib.Scene_Material.Phong.specular", False
CopyPaste , "Shaders\Texture\Mixers\Mix_8colors.Preset", "TransientObjectContainer"
SIConnectShaderToCnxPoint "TransientObjectContainer.Mix_8colors", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.base_color", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color1", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color2", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color3", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color4", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color5", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color6", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.color7", False
CopyPaste , "Shaders\Texture\Mixers\Mix_8colors.Preset", "TransientObjectContainer"
SIConnectShaderToCnxPoint "TransientObjectContainer.Mix_8colors", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color1", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.base_color", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color2", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color3", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color4", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color5", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color6", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.color7", False
CopyPaste , "Shaders\Texture\Mixers\Mix_8colors.Preset", "TransientObjectContainer"
SIConnectShaderToCnxPoint "TransientObjectContainer.Mix_8colors", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.base_color", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color1", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color2", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color3", False
SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color4", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color5", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color6", False
'SIConnectShaderToCnxPoint "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.Mix_8colors3", "Sources.Materials.DefaultLib.Scene_Material.Phong.Mix_8colors.Mix_8colors1.Mix_8colors2.color7", False

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.