This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > January 2004 > vrmlzip/vrmlunzip
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| muaddib 2004-01-05, 2:30 pm |
| Greetings,
Any out there heard of, or created, a smart vrml gzipper:
vrmlzip - removes all comments, reduces all spacing to a single space,
and gzips the file to have .wrl extension.
vrmlunzip - gunzips file and reintroduces formatting.
Muaddib
--
-------------------------------------------------------
VRSpace - An open source, 3D, modular, cross-platform,
multi-user system with persistent shared objects.
Check out a demo at http://www.vrspace.org/demo.htm
-------------------------------------------------------
| |
| Herbert Stocker 2004-01-05, 4:30 pm |
|
muaddib wrote:quote:
> Greetings,
>
> Any out there heard of, or created, a smart vrml gzipper:
No, but i would know how to do it.
And i was thinking about this already.
quote:
> vrmlzip - removes all comments, reduces all spacing to a single space,
> and gzips the file to have .wrl extension.
>
> vrmlunzip - gunzips file and reintroduces formatting.
>
On the other hand it's not a nice think because comments
helps other people learning from your work.
Herbert
--
Herbert Stocker (aka hersto)
http://www.hersto.de
www.bitmanagement.de
| |
| muaddib 2004-01-06, 3:30 pm |
| > No, but i would know how to do it.quote:
> And i was thinking about this already.
Great, what was your technique going to be? Chisel is public, I
was thinking of using its embedded parser to load up the file and then
print it out again. Then use java's embedded gzipper. Opposite for the
other way. While I'm on the topic, does Xj3D, or another app, contain a
class to parse vrml files into an XML tree? I suppose it must. That
way its just parse and paste.
quote:
>
> On the other hand it's not a nice think because comments
> helps other people learning from your work.
Actually, my problem is that I am a heavy commenter :) It's a
shame that their exists this conflict of interest: Comment well + nice
formatting --> wasted space. Take java for example, the compiler
ignores the comments and the formatting, no loss. You leave it to
source code releases and javadocing to explain how it works. That is
the situation I would like to be in for vrml apps. I suppose
vrmlzipping is the closest I can think of getting to that. But this is
an old argument I believe. :)
--
-------------------------------------------------------
VRSpace - An open source, 3D, modular, cross-platform,
multi-user system with persistent shared objects.
Check out a demo at http://www.vrspace.org/demo.htm
-------------------------------------------------------
| |
| Herbert Stocker 2004-01-06, 4:31 pm |
|
muaddib wrote:quote:
>
>
> Actually, my problem is that I am a heavy commenter :) It's a shame
> that their exists this conflict of interest: Comment well + nice
> formatting --> wasted space. Take java for example, the compiler
> ignores the comments and the formatting, no loss. You leave it to
> source code releases and javadocing to explain how it works. That is
> the situation I would like to be in for vrml apps. I suppose
> vrmlzipping is the closest I can think of getting to that. But this is
> an old argument I believe. :)
If you provide the vrmlzipped and vrmlunzipped version online you
have the same (at least similar) situation than in java.
Herbert
--
Herbert Stocker (aka hersto)
http://www.hersto.de
www.bitmanagement.de
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|