Search found 172 matches

by alko
Thu Aug 11, 2022 9:22 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

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, FALSE, ...
by alko
Fri Jul 15, 2022 9:26 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

Also I want to place sprite behind two layers.

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?

Image
by alko
Fri Jul 15, 2022 6:57 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

:oops:

Code: Select all

 line = MEM_alloc( sizeof(Line));
by alko
Fri Jul 15, 2022 12:45 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

Now Line is not drawn :lol:

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);
 
by alko
Thu Jul 14, 2022 4:06 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

I set:
IMAGE cabin "cabin.png" FAST
artifact is gone :roll:
by alko
Thu Jul 14, 2022 2:49 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

when I change in gfx.res

Code: Select all

IMAGE cabin "cabin.png" -1
to

Code: Select all

IMAGE cabin "cabin.png" 0
The artifact has changed position

Image

maybe rescomp doesn't work properly?
by alko
Wed Jul 13, 2022 10:54 am
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

on Blastem visible similar artifact too

Image
by alko
Tue Jul 12, 2022 8:55 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

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 free me...
by alko
Sun Jul 10, 2022 11:48 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

Image
by alko
Sun Jul 10, 2022 11:42 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

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_USERINDEX; VDP_setPa...
by alko
Mon Jul 04, 2022 12:33 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

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
by alko
Fri Jul 01, 2022 8:47 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

Re: polygon is not drawn

thanx

is it possible to draw polygon not only clockwise but also counterclockwise points ?
by alko
Sun Jun 26, 2022 5:35 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 30166

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(0x00FFFF); p...
by alko
Thu Dec 30, 2021 2:10 pm
Forum: SGDK
Topic: Sprites map are not compressed in VRAM
Replies: 1
Views: 5006

Sprites map are not compressed in VRAM

why are repeating and symmetric tiles from sprites stored in VRAM as unique ?

Image
by alko
Sun Dec 05, 2021 5:47 pm
Forum: SGDK
Topic: Sprites are not loaded in new version SGDK
Replies: 4
Views: 5575

Re: Sprites are not loaded in new version SGDK

Thanks. Now it works correctly.