Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: DPaint II brushes to C Message-ID: <1820@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 1-May-87 17:30:57 EDT Article-I.D.: cbmvax.1820 Posted: Fri May 1 17:30:57 1987 Date-Received: Tue, 5-May-87 04:42:05 EDT References: <2078@hoptoad.uucp> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Distribution: world Organization: Commodore Technology, West Chester, PA Lines: 32 In article <2078@hoptoad.uucp> slc@hoptoad.UUCP (Steve Costa) writes: > >I'm trying to convert a number of small (20 by 20), low-res, IFF brush >files from DPaint II, into c source files, using Mike Farren's GI program. >The files all end up with exactly the same data! Also, the color map is >definitely wrong, saying that certain colors are missing, even when I >create a brush that uses all 32 colors. > >Has the brush file format changed from DPaint I to DPaint II? Or can >anybody shed some light on what is going on here? I checked out brush files from both DPaint and DPaint II. DPaint II brushes contain CRNG (color cycling) chunks, DPaint brushes do not. This should not bother a correctly written IFF reader because that's what IFF is all about. IFF readers are supposed to just skip chunks they don't care about or don't understand. It sounds like GI is not doing this, but rather is making assumptions about the order and position of the chunks it is interested in. The IFF disk contains a utility called ILBMDump which converts a brush to a C source file. But it only writes out source for the image data, not for the colormap. The source is provided and could be modified to handle additional chunks. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=