silver@eniac.seas.upenn.edu (Andy Silverman) (04/21/89)
I really hope someone can help with this. I am using a Unix port of an Amiga ray trace program, called DBW-Render. It produces files which have the format (integer - scanline #) (160 integers for each of r,b,g), where each pixel has 4 bit resolution per color plane, this 4096 colors max. I have a PC port also, which comes with a program to convert these 320x200 or 320x400 pictures to GIF files. The author states that he is too lazy to enhance this program to allow for other resolutions. Well, I want to write my own display program to show these pics in 650x350 on my EGA, because it seems relatively trivial to change the original ray tracer for different resolutions. My problem is in displaying the 4096 color output files on a 16 color EGA. The original converts to a 256 color GIF file, which then displays as 16 on my EGA, but I am having a nasty time figuring out how to go from 4096->16 all in one step. I am very new to this sort of graphics programming, so if anyone could help me out, or if anyone else has tried to do this sort of conversion on this program I would be very appreciative. Alternative solution: Does anyone know where I can get my hands on a program which will display ILBM or HAM files on a PC EGA? (Not the preferable solution...) Please e-mail since I don't read this forum. Thanks loads. +----------------+-----------------------------------------+ | Andy Silverman | Internet: silver@eniac.seas.upenn.edu | | "Why?" | Compu$erve: 72261,531 | +----------------+-----------------------------------------+