Unfortunately I think it's going to be pretty difficult to find an
example of a Collada file with an embedded texture. Although Collada
allows for this via the <data> element, nothing is specified about the
format of this data, making any sort of interchange infeasible. I've
never seen the <data> element used myself. To add salt to the wound the
Collada DOM (which OSG uses for Collada parsing) doesn't support the
<data> element. Tellingly, no one's ever complained about that.

For Google Earth they use a custom format (kmz) that's just a zip file
containing Collada data and the associated textures. That might be
something to look into.

Steve

On Wed, 2008-06-18 at 20:25 -0400, Jason Daly wrote:
> Gordon Tomlinson wrote: 
> > Hi Guys 
> >  
> > A little of target, one of our dev teams needs to create Collada
> > files with embedded textures. I believe OSG reader/writer at this
> > time does not support this not an issue we can add that
> >  
> > What they are looking for currently is a sample dae file with an
> > embedded textures(s), Google has failed to help so far, any one know
> > of such a best anywhere ?
> 
> I've not seen a single example of this, and I've done a fair bit of
> looking.  The specification is also mum on the precise format that
> such data would take.
> 
> The schema only says this:
> "The data child element contains a sequence of hexadecimal encoded  binary 
> octets representing
> the embedded image data"
> 
> I guess you could take this to mean that you could put a hex dump of
> your image data inside the <data> tags.  You'd have to have some way
> of figuring out what format the data was in, though.
> 
> --"J"
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to