nscenegraph.org] On Behalf Of Lokesh
> kumar
> Sent: Thursday, May 23, 2013 6:02 AM
> To: osg-users@lists.openscenegraph.org
> Subject: Re: [osg-users] How to apply textures to a model in
> openscenegraph?
>
> Robert Osfield writes:
>
> >
> > Hi Lokesh,
> >
&
..
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Lokesh
kumar
Sent: Thursday, May 23, 2013 6:02 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] How to apply textures to a model in
openscenegraph
Sergey Kurdakov writes:
>
> Hi Lokesh
>
> in http://www.packtpub.com/openscenegraph-3-0-beginners-guide/book on
> support tab for the page of the book you may download sample code,
>
> in \2824_12_Code\2824_12_Code folder from download zip there is
> sharing_textures.cpp which has a class
>
Totally agree on the OSG books. They are must-read.
2013/5/23 Sergey Kurdakov
> Hi Lokesh
>
> in http://www.packtpub.com/openscenegraph-3-0-beginners-guide/book on
> support tab for the page of the book you may download sample code,
>
> in \2824_12_Code\2824_12_Code folder from download zip the
Hi Lokesh
in http://www.packtpub.com/openscenegraph-3-0-beginners-guide/book on
support tab for the page of the book you may download sample code,
in \2824_12_Code\2824_12_Code folder from download zip there is
sharing_textures.cpp which has a class
class ReadAndShareImageCallback : public osgD
Robert Osfield writes:
>
> Hi Lokesh,
>
> The easist thing to do would be to use osgconv to convert the files to
> native OSG binary format .osgb and have osgconv do the compression for
> you. Use osgconv --help for the options. The other alternative to to
> write your own osgDB::Registry::Re
Hello Lokesh
A hack for testing would be to rename the references in the binary flt.
But this should be done for testing of course.
Another option is to run a visitor over the loaded model an replace the
texture file name references with the new extension.
cheers
Sebastian
Robert Osfield
Hi Lokesh,
The easist thing to do would be to use osgconv to convert the files to
native OSG binary format .osgb and have osgconv do the compression for
you. Use osgconv --help for the options. The other alternative to to
write your own osgDB::Registry::ReadFile callback that intercepts the
read
Robert Osfield writes:
>
> Hi Lokesh,
>
> Your OpenFlight model references all the textures it needs, and if you
> want to replace or apply new ones you should simply reload the model
> in Creator or other compatible modelling tool and apply the changes
> you need then save again.
>
> Rober
Hi Lokesh,
Your OpenFlight model references all the textures it needs, and if you
want to replace or apply new ones you should simply reload the model
in Creator or other compatible modelling tool and apply the changes
you need then save again.
Robert.
On 23 May 2013 07:58, Lokesh Kumar wrote:
Hi,
I have a flt model and multiple *.dds texture files in a Directory :-
my folder contains :-
(1) terrain.flt
(2) road.dds
(3) buildings.dds
(4) banners.dds
I know how to read and apply single .dds texture file to my model
(terrain.flt) :-
osg::ref_ptr terrainModel (osgDB::readNodeFil
11 matches
Mail list logo