Jump to content

DLTCEP BAM making tutorial


Valiant

Recommended Posts

Hi Avenger :)

 

Just wanna ask if there is a tutorial covering creating .BAM in DLTCEP? I would like to create a BAM for fireplace animation, I tried today, but with no success. Maybe I´m doing something wrong, I really don´t know. I have all my frames I need, just to make an animation from them is a problem. Every time I get screwed bams, or palette is wrong... I don´t know what color should be as transparent (0,255,0 or 0,151,151) and so on..., just all that stuff around creating bams. Whole process.

 

Is there any? If yes, please point me to it. Thanks.

 

Val.

Link to comment
The transparent color is usually 0,255,0. But in bams, it is the transparent color index what counts. It is usually the first (0.) palette entry.

 

The transparent colour for .bams is 0,255,0 as well. If you put some other colour (like 0,151,151), it will be read as transparent most of the time, but not all of the time. Every once inawhile, a frame will be played such that colours other than 0,255,0 will be played. Which uglifies animations.

 

As for the bright pink colour, again, it is not the true colour for shadows. Rather, shadows are read from the second colour in the palette. And so animations using shadows wisely choose (0,0,0) as the second colour in the palette.

 

I don't remember seeing these two in the IESDP, so it wouldn't hurt to add them. :)

 

-Galactygon

Link to comment
The transparent colour for .bams is 0,255,0 as well. If you put some other colour (like 0,151,151), it will be read as transparent most of the time, but not all of the time.

 

I found that it is mainly a 2d problem. I´m using 3d acceleration for IE games, so the FOW and animations are running flawlessly even with 0,151,151 trans. color, even in big combats with dragons (...dragon animations, to be precise...). But when I swith back to 2d, animations with 0,151,151 transparent color are not showed up correctly, simply the transparent color is not transparent, but it is shown as solid, like the others in palette.

 

In 3d it´s ok.

Link to comment
The transparent color is usually 0,255,0. But in bams, it is the transparent color index what counts. It is usually the first (0.) palette entry.

 

Strange thing is that when I import many frames into DLTCEP, that are already converted into 256 colors and have green 0,255,0 color as transparent, that color is not placed in 0. palette entry, but let´s say in #149, for example. How to get rid of this? How to make it take the 0. position in palette?

Link to comment

There is a field called transparent index. Set this value to the index you want to make transparent. Then click on order palette. The palette will be rearranged so that this index will be moved to the 0. position.

 

I should rewrite the importer to not screw the palette with the color quantization when it is smaller than 256 (The palette reordering is done by the color quantization algorithm which squeezes the large palette into 256 slots).

Link to comment

Hi all :)

 

Next problem. I´m porting an IWD GUI to BG2:ToB stripddown. So far everything was going flawlessly. But then I tried to modify color screen. So I did everything like before: copied main background MOS, all necessary BAMs, and strated to modify that one window in GUICG.CHU. I copied all coordinates from IWD´s window, so it would seem that it will appear same way in BG2.

 

But no. I have problems with gradient positions. BAM buttons, that are underneath those gradients can be handled fine, but I would like to have those gradients in the middle of button. OF course, if you move button, gradient will move with him also. But that stupid offset will always stay there. Can this be set somewhere or not? Because in CHU window it is not possible to move those gradients alone. I can move only buttons.

 

I assume the game engine itself is seting this. It seems that those engines were different much more than I thought.

 

Here´s the screen how it looks now (first row is little bit odd, I played with it already, but remaining rows shows what are those gradient positioned in right lower corner. They should be in the middle.)

 

ColorScreen.jpg

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...