how to clean up a .dae

8 messages Options
Embed this post
Permalink
dsdsdsdsd

how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
hello;

I have finally gotten Lightwave 9.6, which has an improved collada exporter ( though I have not decided whether it is worth it or not ... maybe );

I have been using blender for the purpose of collada export until now;

PROBLEM: the .dae produced by LW is about 4 times bulkier than the .dae produced by Blender;

I have been able to identify a lot of the extra and redundant stuff inside the LW .dae, and for the last couple of weeks I have been deleting the extra stuff by hand, inside of my text editor;

but that is tedious, very tedious;


QUESTION: is anyone aware of a script that analyzes/cleansup .dae files to make them PV3D ready?


I am prepared to write an as3-based ( or php-based ... don't know yet ) XML-manipulator, but I have concerns that I do not know the rules of .dae and especially PV3D's DAE class well enough to get it right without a lot of trial and error;




thanks,
Shannon


I have posted this message in papervision3d.org also;

charback

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
You're aware of the COLLADA textbook, "COLLADA: Sailing the Gulf of 3D Digital Content Creation" by Arnaud and Barnes? It has a lot of specifics of the COLLADA format, so you may want to see if it's helpful in refining your DAEs.

This sounds like an excellent idea. I had similar plans myself until I was tasked away from working with COLLADA for a while.
--Chris

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of dsdsdsdsd
Sent: Thursday, September 17, 2009 3:49 AM
To: [hidden email]
Subject: [Papervision3D] how to clean up a .dae


hello;

I have finally gotten Lightwave 9.6, which has an improved collada exporter
( though I have not decided whether it is worth it or not ... maybe );

I have been using blender for the purpose of collada export until now;

PROBLEM: the .dae produced by LW is about 4 times bulkier than the .dae
produced by Blender;

I have been able to identify a lot of the extra and redundant stuff inside
the LW .dae, and for the last couple of weeks I have been deleting the extra
stuff by hand, inside of my text editor;

but that is tedious, very tedious;


QUESTION: is anyone aware of a script that analyzes/cleansup .dae files to
make them PV3D ready?


I am prepared to write an as3-based ( or php-based ... don't know yet )
XML-manipulator, but I have concerns that I do not know the rules of .dae
and especially PV3D's DAE class well enough to get it right without a lot of
trial and error;




thanks,
Shannon


I have posted this message in papervision3d.org also;



-----
thanks,

Shannon


...  http://www.toddanddotty.com/OpenHouse3d/try_it.php immersive 3d
environments

...  http://goodflagbetsy.wordpress.com/ politics

--
View this message in context: http://www.nabble.com/how-to-clean-up-a-.dae-tp25488983p25488983.html
Sent from the Papervision3D mailing list archive at Nabble.com.


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
dsdsdsdsd

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
I did not know that there was a book; I have looked at the collada website, but it was overwhelming, like learning the DOM, so I ran away with my tail tucked between my legs;

I'll look into it though; as it stands I am charting out all of the differences between my blender.dae and my LW.dae ...


Peter Velichkov-2

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
Have you tried COLLADA Refinery
(https://collada.org/mediawiki/index.php/COLLADA_Refinery) it can
optimize DAEs but usually breaks them, so it will be best some with
inner knowledge to write conditioner depending on what should be kept
for using it in Pv3d.


Peter

----
web: http://www.creonfx.com
blog: http://blog.creonfx.com
skype: peterv-at-work
twitter: http://twitter.com/pvelichkov

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Ianim8

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
In reply to this post by dsdsdsdsd
I also use LW9.6 and have noticed some of the extra stuff in the dae  
file. I am not sure about the modeler dae files but here is what I  
have been doing in the layout dae files:

- Using Textwrangler I have created a GREP pattern which goes through  
the entire dae file and changes some of the tags because I noticed  
that LW9.6 seems to create them with the names/labels/attributes in a  
different order than Papervision seems to be looking for
- Using an XML editor I go through and delete all the animation  
channels that are empty as they also seem to confuse Papervision. I am  
hoping to create a GREP pattern for this too eventually but I haven't  
had time lately.

I hope this helps. It's still not a one-step solution but it's better  
than going line-by-line.

On 17-Sep-09, at 6:48 AM, dsdsdsdsd wrote:

>
> hello;
>
> I have finally gotten Lightwave 9.6, which has an improved collada  
> exporter
> ( though I have not decided whether it is worth it or not ... maybe );
>
> I have been using blender for the purpose of collada export until now;
>
> PROBLEM: the .dae produced by LW is about 4 times bulkier than  
> the .dae
> produced by Blender;
>
> I have been able to identify a lot of the extra and redundant stuff  
> inside
> the LW .dae, and for the last couple of weeks I have been deleting  
> the extra
> stuff by hand, inside of my text editor;
>
> but that is tedious, very tedious;
>
>
> QUESTION: is anyone aware of a script that analyzes/cleansup .dae  
> files to
> make them PV3D ready?
>
>
> I am prepared to write an as3-based ( or php-based ... don't know  
> yet )
> XML-manipulator, but I have concerns that I do not know the rules  
> of .dae
> and especially PV3D's DAE class well enough to get it right without  
> a lot of
> trial and error;
>
>
>
>
> thanks,
> Shannon
>
>
> I have posted this message in papervision3d.org also;
>
>
>
> -----
> thanks,
>
> Shannon
>
>
> ...  http://www.toddanddotty.com/OpenHouse3d/try_it.php immersive 3d
> environments
>
> ...  http://goodflagbetsy.wordpress.com/ politics
>
> --
> View this message in context: http://www.nabble.com/how-to-clean-up-a-.dae-tp25488983p25488983.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

TTFN.

Glen
---
http://www.glenmead.com
Animation & Multimedia
---
Augmented Reality - 2D & 3D Animation - Web Sites - DVD - CD-ROM -  
PowerPoint - Keynote


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
dsdsdsdsd

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
In reply to this post by Peter Velichkov-2
Peter, no I was unaware of it, but it is what I was talking about, so I do appreciate it;

however, I have already started the process of writing my own LW_dae_fixer which will take in a LW.dae ( actually LW_dae.xml ) and produce a pv3d-ready_dae.xml;


thanks,
Shannon
dsdsdsdsd

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ianim8
Ianim8, thanks for responding;

if I am successful at producing something that works I will post it here;

Shannon
dsdsdsdsd

Re: how to clean up a .dae

Reply Threaded More More options
Print post
Permalink
In reply to this post by dsdsdsdsd
I have built a small flash app that cleans up my LW Modeler 9.6 .dae;

it addresses:

<library_geometries><geometry ...> ... <polylist ... COUNT='0'>  
       
<library_visual_scenes><visual_scene ... > ... <instance_material ... REDUNDANT >
       
<library_materials><material ... id="..._#" name="..._#" REDUNDANT>
           
<library_images><image ... id="..._#" name="..._#" REDUNDANT>

<library_images><image ...><init_from> ABSOLUTE PATH
       
<library_effects><effect id="..._4-fx" REDUNDANT>
       
<library_geometries><geometry ... > ... <source id="IDENTICAL ID's" name="uvmap">

<geometry id="Mesh_Object_2_lib" name="Mesh_Object_2"> REPLACE LW names ( 'Mesh_Object_#' ) with your layer names


for me it has removed 1000 lines of unnecessary(?) stuff from my LW.dae, from 1846 lines to 815

for anyone using LW Modeler 9.6 who would like to look at it, please let me know and I will upload it;

Shannon