Re: [info-performer] Converting textures to rgb

Date view Thread view Subject view Author view

From: Mathieu MARACHE (mathieu.marache++at++cstb.fr)
Date: 04/07/2005 02:25:17


Hi,

Tom Flynn a écrit :
> On Apr 2, 2005 3:09 PM, Lawrence E Bertoldi <lberto++at++adelphia.net> wrote:
>
>>in linux use gimp.
>
>
> and if you want to convert them on the command-line (like you would if
> you wanted to automate the conversion in a script), you can use
> convert (see: man convert) from ImageMagick. I believe there are
> builds of ImageMagick for Irix, linux and cygwin.
>
> ImageMagick will want you to use a .sgi extension for SGI's .rgb
> files. So your script would have to do something like this:
>
> convert blah.jpg blah.sgi
> mv blah.sgi blah.rgb

even better : convert blah.jpg sgi:blah.rgb

> -tom
>
>
>>on windows, photoshop for non alpha channel textures and polytrans for textures
>>with alpha channel
>>
>>Jonathan Kelly wrote:
>>
>>
>>>Hello, I'm trying to load 3ds models into my scene graph but the textures
>>>aren't loading properly. The models that I am loading have their texture
>>>specified as JPEG's but I understand that Performer uses the RGB format. The
>>>application that I am writing is being built on top of Perfly and I wanted
>>>to know if there is a way for me to take the textures and convert them from
>>>JPEG to RGB. Would I have to write a different 3ds loader that did the
>>>conversion for me??

But you'll still have links to JPEG files in your 3DS file. You can edit
this file with a text editor (gvim works) and replace all .jpg with .rgb
but this is dirty... but working :-)

HTH
Mathieu


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Apr 07 2005 - 02:25:52 PDT