Gordon Tomlinson (gordont++at++apollo13.demon.co.uk)
Tue, 19 Dec 1995 19:41:25 GMT
>How can I use JPEG textures with Performer?
>And if it's not possible, how can I convert them to the .rgb format I
>saw in some of the sample textures
>
>Nuno Godinho
>mgo++at++ip.pt
>
Hi
There are a couple of ways to convert jpeg files to .rgb files
if you are using IRIX 5.2 or greater ( maybe there below 5.2)
do a
man -k image
and you will be given a list of commands that work with images. 2 that
you can use are:
you can load the image into "imgview" and then save the file as an
rgb
or use " imgcopy" to convert the file
imgcopy -fsgi -Crgb <source Jpeg> <output rgb>
you can do a batch convert using "foreach" as follows..
foreach pic ( *.jpg )
imgcopy -fsgi -Crgb $pic $pic.rgb
end
this will convert all the files with the given file extension and
append .rgb onto the end ( Have not worked out how to replace the
extention ( perhaps some else can suggest , but it works))
Hope this helps, the man pages should give you any further info that
you need
Regards
Gordon
---------------------------------------------------------------------------
| Gordon Tomlinson | Smoke me a kipper skipper I'll be back for breakfast |
| |........................... The truth is out there .. |
---------------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:10 PDT