Hi Alex,
Have a look at Remo 3D (www.remograph.com) which supports removing
unused textures in OpenFlight files very easily through scripting. A
simple Lua script would let you remove unused textures in a large number
of files.
/Andreas
On 2010-03-02 09:07, Alexandre Amalric wrote:
Hi Paul,
/You'd need to modify the OpenFlight plugin to support this./
I tried to do this but in the TexturePalette::readRecord function
there is no way to know if a texture is used or not by the model. The
only parameters we get from a texture (RecordInputStream) are :
- the filename
- the index
- X
- Y
hi Tomlinsom,
Simplest way would be to open up the file in Creator and use the remove
unused textures command
I know this command in Creator but we want to automatize the process
because we work on hundred of files like this.
Building a creator API is maybe a solution but I don't know if there
is a function to remove unused texture on a Openflight model. I will
look for this.
Kind regards,
2010/3/2 Tomlinson, Gordon <[email protected]
<mailto:[email protected]>>
Simplest way would be to open up the file in Creator and use the
remove
unused textures command
You could also write a simple Creator API app to do this on a list of
flight files
Another option would be to load the file in to OSG and save out as
OSG
or IVE file again you could write a simple script to do this for many
files
Gordon Tomlinson
Product Manager 3d Technology & Project Wyvern
Overwatch(r)
An Operating Unit of Textron Systems
-----Original Message-----
From: [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]>] On Behalf Of Paul
Martz
Sent: Monday, March 01, 2010 10:29 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] [osgPlugins] OpenFlight - Palette Records
prevent using of ReaderWriter Callback
Alexandre Amalric wrote:
> Hi osg-users,
>
> I have a question concerning the palette texture record. When
> converting a flt model which texture palette contains useless
texture,
> they are even read. Is there a way to read only used texture. Let's
> say I have a simple model file using 1 texture but my texture
palette
> in corresponding openflight model contains 100 textures, so 99% are
> useless but the plugin read them.
>
> I know that it is a special case, but when working on Openflight
> models with Multigen Paradigm it happens a lot.
>
> Any suggestion ?
You'd need to modify the OpenFlight plugin to support this.
-Paul
_______________________________________________
osg-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or%0Ag>
_______________________________________________
osg-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Alexandre AMALRIC Ingénieur R&D
===================================
PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
http://www.pixxim.fr
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
______________________________________________________________
Andreas Ekstrand
Remograph
Norrbergavägen 58
SE-590 54 Sturefors
SWEDEN
Web: www.remograph.com
E-mail: [email protected]
Phone: +46 708 490 697
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org