[croquet-dev] Second Try: Anyone working with large ASE files ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[croquet-dev] Second Try: Anyone working with large ASE files ?

Holz, Marc
Second Try: Anyone working with large ASE files ?

Hello,

I' would like to import large meshes into Croquet which where exported from 3DSMax as *.ase files. The import with TLoad3DSMax works basically

quite well but lasts for hours. Is there a more convenient way to do that ?
I found an older message (https://lists.duke.edu/sympa/arc/croquet-dev/2004-12/msg00201.html) where the mesh was exported as *.tea and import then again.

That examples uses TExporter/TImporter which aren't anymore in the current Croquet release.
Could someone please suggest me a better way to handle large meshes i.e. making the persistent ?

Best Regards,

Marc Holz



-----Original Message-----
From: Holz, Marc
Sent: 02 Februar 2007 17:26
To: [hidden email]
Subject: Re: loading large ASE objects

Hi,

I'm quite new to Croquet and programming Smalltalk after 10 yrs again isn't quite easy for me. I using Croquet in a research projekt and would like to export large *.ase content as described ealier in this thread here. I do have the problem that I can't find TExporter or similar to write out my loaded mesh .

I tried the following:

t3dsmax:= TLoad3DSMax new initializeWithFileName:  (FileDirectory pathFromURI:
'Content/land0/land0.ase').
blah:= t3dsmax frame.
exp:= TIslandCopier new export: blah.
file:= StandardFileStream  new open: 'Content/land0/land0.tea' forWrite: true.
exp writeDataOn: file.

The last line is not working. Could someone please me to correct my problem or suggest a better way.

Best Regards,

Marc Holz



Reply | Threaded
Open this post in threaded view
|

Re: [croquet-dev] Second Try: Anyone working with large ASE files ?

Howard Stearns
I haven't had a chance to poke around for a good answer, but I can't  
stand to see a good question go untouched.

The analogous replacement for TExporter/TImporter is the stuff in the  
Croquet-Copier category.

You can also cache whole island's to disk: they store and inflate  
pretty fast. Have a look at senders of TIslandController>>snapshot  
(my favorite is KController>>doCache:from:) and the implementations  
of #install:.

(Eventually, I'm sure that meshes will be stored outside the island  
because it's such a good idea, and then there will be a means to (de-)
serialize meshes to/from the cache like TForms are.  I figure that  
will make use of the copier stuff.  But that doesn't exist yet.)



On Feb 5, 2007, at 9:08 AM, Holz, Marc wrote:

> Hello,
>
> I' would like to import large meshes into Croquet which where  
> exported from 3DSMax as *.ase files. The import with TLoad3DSMax  
> works basically
>
> quite well but lasts for hours. Is there a more convenient way to  
> do that ?
> I found an older message (https://lists.duke.edu/sympa/arc/croquet- 
> dev/2004-12/msg00201.html) where the mesh was exported as *.tea and  
> import then again.
>
> That examples uses TExporter/TImporter which aren't anymore in the  
> current Croquet release.
> Could someone please suggest me a better way to handle large meshes  
> i.e. making the persistent ?
>
> Best Regards,
>
> Marc Holz
>
>
>
> -----Original Message-----
> From: Holz, Marc
> Sent: 02 Februar 2007 17:26
> To: [hidden email]
> Subject: Re: loading large ASE objects
>
> Hi,
>
> I'm quite new to Croquet and programming Smalltalk after 10 yrs  
> again isn't quite easy for me. I using Croquet in a research  
> projekt and would like to export large *.ase content as described  
> ealier in this thread here. I do have the problem that I can't find  
> TExporter or similar to write out my loaded mesh .
>
> I tried the following:
>
> t3dsmax:= TLoad3DSMax new initializeWithFileName:  (FileDirectory  
> pathFromURI:
> 'Content/land0/land0.ase').
> blah:= t3dsmax frame.
> exp:= TIslandCopier new export: blah.
> file:= StandardFileStream  new open: 'Content/land0/land0.tea'  
> forWrite: true.
> exp writeDataOn: file.
>
> The last line is not working. Could someone please me to correct my  
> problem or suggest a better way.
>
> Best Regards,
>
> Marc Holz
>
>
>