Home | Forums | What's new | Resources | |
for the saturn, how would i do transparency? |
mrkotfw - May 6, 2003 |
antime | May 7, 2003 | |||||||
No idea. Check the docs.
If I've understood correctly, the values indicate what value should be added to or subtracted from the RGB values at each vertex. These values are then interpolated across the polygon. The modification value is 5 bits and is specified for each colour component separately, see the table on page 65 of the VDP1 manual to see the possible values and their meaning. (Actually, since the modification values are limited from -0x10 to +0xf you can't fade completely to black using only that method. Sorry about the misinformation.) |
Reinhart | May 7, 2003 | |||
I manage to made a transparent cube by applying ntexture on it (see it in the SatDev progz section...) It works the same way sprites are transparent. From a pic created with 'ssconv' replace (in the .c file) the first hexadecimal value by 0x0000. I have no idea how to do a 'fade effect', for the 'clear screen' thing ... why bot put the display fonction into a timer ? if timer < 100s display polygon1 if timer<200 timer>101 do_nothing if timer<300 timer>201 display polygon2 Does it sound lame ? |
mrkotfw | May 7, 2003 | |||
thanks, i guess i can just use slSynch(); :agree it is true, slPrint does not clear... :edit :bs -----------> |
mrkotfw | May 7, 2003 | |||
Cel2VRAM(ex_2d_cel,(void *)NBG1_CEL_ADR,31808); Map2VRAM(ex_2d_map,(void *)NBG1_MAP_ADR,32,16,1,256); Pal2CRAM(ex_2d_pal,(void *)NBG1_COL_ADR,256); it shows it all corrupted........... on the docs it says that it asks for the chara_size.............? how would i figure that out? that confuses me |