I placed a sprite and artifacts appeared
BMP_init(TRUE, BG_B, PAL1, TRUE);
BMP_setBufferCopy(TRUE);
SYS_enableInts();
u16 ind = BMP_FB1ENDTILEINDEX ; //TILE_USERINDEX;
VDP_setPalette(PAL0, cabin.palette->data);
VDP_drawImageEx(BG_A, &cabin, TILE_ATTR_FULL(PAL0, TRUE, FALSE, FALSE, ind),0, 0 ...
Search found 172 matches
- Thu Aug 11, 2022 9:22 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
- Fri Jul 15, 2022 9:26 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
Also I want to place sprite behind two layers.
1.) how to set offset address of sprite after:
2.) how to set attributes priority?

1.) how to set offset address of sprite after:
Code: Select all
u16 ind = BMP_FB1ENDTILEINDEX ;
ind += cabin.tileset->numTile;
2.) how to set attributes priority?

- Fri Jul 15, 2022 6:57 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn

Code: Select all
line = MEM_alloc( sizeof(Line));
- Fri Jul 15, 2022 12:45 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
Now Line is not drawn

Code: Select all
Line *line;
line->pt1.x =0;
line->pt1.y =0;
line->pt2.x =100;
line->pt2.y =100;
line->col=10;
BMP_drawLine(line);
- Thu Jul 14, 2022 4:06 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
I set:
IMAGE cabin "cabin.png" FAST
artifact is gone
IMAGE cabin "cabin.png" FAST
artifact is gone

- Thu Jul 14, 2022 2:49 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
when I change in gfx.res
to
The artifact has changed position

maybe rescomp doesn't work properly?
Code: Select all
IMAGE cabin "cabin.png" -1
Code: Select all
IMAGE cabin "cabin.png" 0

maybe rescomp doesn't work properly?
- Wed Jul 13, 2022 10:54 am
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
on Blastem visible similar artifact too


- Tue Jul 12, 2022 8:55 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
I use BMP_flip(1) double-buffered render and I can't understand why this artifact appeared in Kega Fussion
https://i2.paste.pics/b856c635800e99165d4545c4ca805826.png
In Gens is ok
https://i2.paste.pics/9272c3f69e215397af47c256c847e260.png
VRAM with a margin (also, how to clear fonts for more ...
https://i2.paste.pics/b856c635800e99165d4545c4ca805826.png
In Gens is ok
https://i2.paste.pics/9272c3f69e215397af47c256c847e260.png
VRAM with a margin (also, how to clear fonts for more ...
- Sun Jul 10, 2022 11:48 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
- Sun Jul 10, 2022 11:42 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
I want put image over bitmap_render layer
VDP_setPalette(PAL1, palette);
VDP_setScreenWidth320();
VDP_clearPlane(BG_A, TRUE);
VDP_clearPlane(BG_B, TRUE);
BMP_init(TRUE, BG_A, PAL1, FALSE);
BMP_setBufferCopy(TRUE);
//JOY_setEventHandler(joyEvent);
SYS_enableInts();
u16 ind = TILE ...
VDP_setPalette(PAL1, palette);
VDP_setScreenWidth320();
VDP_clearPlane(BG_A, TRUE);
VDP_clearPlane(BG_B, TRUE);
BMP_init(TRUE, BG_A, PAL1, FALSE);
BMP_setBufferCopy(TRUE);
//JOY_setEventHandler(joyEvent);
SYS_enableInts();
u16 ind = TILE ...
- Mon Jul 04, 2022 12:33 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
default resolution 256х160. how to change it for speed ?
I need fast clear\swap buffer how is that possible
I need fast clear\swap buffer how is that possible
- Fri Jul 01, 2022 8:47 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
Re: polygon is not drawn
thanx
is it possible to draw polygon not only clockwise but also counterclockwise points ?
is it possible to draw polygon not only clockwise but also counterclockwise points ?
- Sun Jun 26, 2022 5:35 pm
- Forum: SGDK
- Topic: polygon is not drawn
- Replies: 19
- Views: 58863
polygon is not drawn
i'm trying to draw a quad
Vect2D_s16 * pts;
u16 palette[16];
int main()
{
MEM_free(pts);
palette[0] = RGB24_TO_VDPCOLOR(0x000000);
palette[1] = RGB24_TO_VDPCOLOR(0x0000FF);
palette[2] = RGB24_TO_VDPCOLOR(0x00FF00);
palette[3] = RGB24_TO_VDPCOLOR(0xFF0000);
palette[4] = RGB24_TO_VDPCOLOR ...
Vect2D_s16 * pts;
u16 palette[16];
int main()
{
MEM_free(pts);
palette[0] = RGB24_TO_VDPCOLOR(0x000000);
palette[1] = RGB24_TO_VDPCOLOR(0x0000FF);
palette[2] = RGB24_TO_VDPCOLOR(0x00FF00);
palette[3] = RGB24_TO_VDPCOLOR(0xFF0000);
palette[4] = RGB24_TO_VDPCOLOR ...
- Thu Dec 30, 2021 2:10 pm
- Forum: SGDK
- Topic: Sprites map are not compressed in VRAM
- Replies: 1
- Views: 11895
Sprites map are not compressed in VRAM
why are repeating and symmetric tiles from sprites stored in VRAM as unique ?


- Sun Dec 05, 2021 5:47 pm
- Forum: SGDK
- Topic: Sprites are not loaded in new version SGDK
- Replies: 4
- Views: 13795
Re: Sprites are not loaded in new version SGDK
Thanks. Now it works correctly.