Itoo Software Forum

Author Topic: Heavy files in all...  (Read 3502 times)

raistlin

  • Jr. Member
  • **
  • Posts: 60
    • My website
Heavy files in all...
« 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!
La vie est une aventure dangereuse d'où personne n'est jamais sortie vivant.

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Heavy files in all...
« Reply #1 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:
Rokas

raistlin

  • Jr. Member
  • **
  • Posts: 60
    • My website
Re: Heavy files in all...
« Reply #2 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!
La vie est une aventure dangereuse d'où personne n'est jamais sortie vivant.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Heavy files in all...
« Reply #3 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.

Carlos Quintero
iToo Software

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Heavy files in all...
« Reply #4 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
Rokas

raistlin

  • Jr. Member
  • **
  • Posts: 60
    • My website
Re: Heavy files in all...
« Reply #5 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...
La vie est une aventure dangereuse d'où personne n'est jamais sortie vivant.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Heavy files in all...
« Reply #6 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.
« Last Edit: May 31, 2015, 03:31:12 PM by iToo »
Carlos Quintero
iToo Software

JQ4668

  • Newbie
  • *
  • Posts: 13
Re: Heavy files in all...
« Reply #7 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?
« Last Edit: June 08, 2015, 03:32:46 PM by JQ4668 »