Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: raistlin on May 30, 2015, 04:43:32 PM

Title: Heavy files in all...
Post by: raistlin on May 30, 2015, 04:43:32 PM
Hi Itoo

I'mu using more and more railclone for years... and i notice that files grow exponentially... from a scene which is 110mo i have now 1100Mo...
Is there a solution to xref or lighten something ? Auto save is a pain...

Cheers!
Title: Re: Heavy files in all...
Post by: Rokas on May 30, 2015, 06:10:30 PM
Yes, xrefs are Your best friends.

And one side note:

If You copy RailClone object and use it for different spline, geometry for RC is duplicated = file size is duplicated for those two RC objects.
To reduce filesize use copy style function:
(http://i.imgur.com/VMal8CB.png)
Title: Re: Heavy files in all...
Post by: raistlin on May 30, 2015, 07:40:52 PM
OMG you are the one...

damned option that i never use... is there a "note" about that? how it works? (i'll go to try... but if there is one or two tips about the use of that, i'm really interest...)

Cheers!
Title: Re: Heavy files in all...
Post by: iToo on May 31, 2015, 10:11:03 AM
If You copy RailClone object and use it for different spline, geometry for RC is duplicated = file size is duplicated for those two RC objects.

Well, that's not exact. RailClone reuses the geometry for cloned objects, precisely to avoid this problem. You can check it comparing "sobjref" with Maxscript. This array parameter stores the references to segments:

$RailClone01.sobjref[1] == $RailClone02.sobjref[1]

If that returns "true", both use the same geometry for the first segment.

Probably the duplicated geometry comes from other Max operation, although it's not easy to know what.
Anyway, as Rokas well pointed out, "Copy Style" operations reassigns all segments, removing the duplicates if any.

Title: Re: Heavy files in all...
Post by: Rokas on May 31, 2015, 11:53:20 AM
If You copy RailClone object and use it for different spline, geometry for RC is duplicated = file size is duplicated for those two RC objects.

Well, that's not exact. RailClone reuses the geometry for cloned objects, precisely to avoid this problem. You can check it comparing "sobjref" with Maxscript. This array parameter stores the references to segments:
Probably the duplicated geometry comes from other Max operation, although it's not easy to know what.

In theory doing simple operations it instances alright, but in practice I find scenes getting large unless i'm really careful and use "copy style to" religiously
Title: Re: Heavy files in all...
Post by: raistlin on May 31, 2015, 01:36:32 PM
Sure , it save approximativly 250Mo for the most use of them.
I don't have time to check it now, but for sure it save a lot of memory..
Thanks for the trick and now i'll use it everytime for sure!

Another question maybe, does Railclone load in the scene part of railclones objects even if we don't use them?
For example, if we have a conditionnal function, sometimes segments are not use, so, are they loaded??

If yes... it could explain why my scene is so heavy... i've a ton's of options on railclone object for construction...
Title: Re: Heavy files in all...
Post by: iToo on May 31, 2015, 03:14:58 PM
Another question maybe, does Railclone load in the scene part of railclones objects even if we don't use them?
For example, if we have a conditionnal function, sometimes segments are not use, so, are they loaded??

Yes, because all segments must be processed before building the RC object.  Although if you want to save space,  just use XRef objects as geometry from your segments. In this way, they will be loaded... but not stored with the scene.

One more thing: when an object referenced by a Segment is deleted from the scene, RailClone creates a copy which is stored internally in the RC object. That would be generating the heavy senes.
You can check this condition seeing the name of the object in the Segment properties: if it shows as "Embedded", the geometry is stored internally. To clean it, just assign a new geometry from the scene.

That combined with "Copy Style", should clean duplicities and make the scene less heavy.
Title: Re: Heavy files in all...
Post by: JQ4668 on June 08, 2015, 03:26:47 PM
So I have a file with 2 Railclone objects. There are around 17 mil Polys in the scene and it's VERY heavy in the viewport.
The strange thing is. That if i select the Zoom tool in the buttom right corner. The scene navigates like an empty scene.
Is this a bug from railclones side? or what is this?

Btw. The way the scene is set up. its a scene with a bridge in it.
So i have the bridge on one spline.  With everything. Railing and crashbarriers ex.
Then i've made a new railclone object where i've used a new spline and then i've picked the bridge (wich is a railclone object) and plugged that into the default.
Could this be the reason for the heavy scene. That i have a railclone object in a railclone object?