Search found 153 matches

by alko
Wed Jan 30, 2019 6:51 pm
Forum: SGDK
Topic: Need fast tile-rendering
Replies: 13
Views: 2072

Re: Need fast tile-rendering

I saw this example
but for me it will be difficult remade math to limited variables fix16
And I still do not understand how to translate linear addressing of tiles into XY-coordinates
by alko
Tue Jan 29, 2019 7:40 pm
Forum: SGDK
Topic: Need fast tile-rendering
Replies: 13
Views: 2072

Re: Need fast tile-rendering

I want to do tiled raycasting on SMD, but i'm not programmer.
Can anyone help me?

Image
by alko
Sat Jan 26, 2019 9:11 pm
Forum: SGDK
Topic: Need fast tile-rendering
Replies: 13
Views: 2072

Re: Need fast tile-rendering

Stef wrote:
Thu Jan 24, 2019 9:40 am
The last method given by mix256 is almost the fastest, here is my code to reach 60 FPS (just a bit above it), i needed to simplify the random() method and use a longer map to do a single DMA transfer :
How to convert this linear addressing to X Y coordinates?
by alko
Thu Jan 24, 2019 6:33 am
Forum: SGDK
Topic: Need fast tile-rendering
Replies: 13
Views: 2072

Need fast tile-rendering

15 frames per second by this code: #include <genesis.h> int main() { SYS_disableInts(); VDP_setScreenWidth320(); VDP_setScreenHeight224(); SYS_enableInts(); while (TRUE) { VDP_showFPS(TRUE); for (int y = 0; y < 28; y++) { for (int x = 0; x < 40; x++) { u16 tileIndex = random() % 16; VDP_setTileMapXY...
by alko
Mon Aug 13, 2018 1:01 pm
Forum: Demos
Topic: wolfenstein demo for sega genesis
Replies: 361
Views: 132803

Re: wolfenstein demo for sega genesis

when will there be new episodes?
by alko
Thu May 17, 2018 5:46 pm
Forum: SGDK
Topic: why does not load large image after sprites initialization?
Replies: 6
Views: 1441

Re: why does not load large image after sprites initialization?

Stef wrote:
Mon May 14, 2018 10:07 pm
SPR_end() / SPR_init(..) by SPR_reset() / SPR_clear()
all the same image are not loaded. :?
by alko
Mon May 14, 2018 7:45 pm
Forum: SGDK
Topic: why does not load large image after sprites initialization?
Replies: 6
Views: 1441

Re: why does not load large image after sprites initialization?

Solved:
called function SPR_end() after SPR_init ()
by alko
Sun May 13, 2018 8:00 pm
Forum: SGDK
Topic: why does not load large image after sprites initialization?
Replies: 6
Views: 1441

Re: why does not load large image after sprites initialization?

You are calling SPR_clear() before SPR_init(..) ?? but how to clean up the sprites after previous scene?... In addition, this does not affect the result in my case. https://pp.userapi.com/c846221/v846221320/4ca2f/KzFSv2NNmbM.jpg Also initializing sprite engine means you reserve a part of VRAM to it...
by alko
Sat May 12, 2018 6:06 pm
Forum: SGDK
Topic: why does not load large image after sprites initialization?
Replies: 6
Views: 1441

why does not load large image after sprites initialization?

why does not load large image after sprites initialization? https://pp.userapi.com/c830109/v830109894/f89cb/Q18F5gpkT2Q.jpg https://pp.userapi.com/c830109/v830109894/f89c2/QUCwPL19omc.jpg and https://pp.userapi.com/c830109/v830109894/f8a0a/JVjBCBPIAEE.jpg https://pp.userapi.com/c830109/v830109894/f8...
by alko
Mon May 01, 2017 7:50 pm
Forum: Demos
Topic: Du hast?
Replies: 0
Views: 1999

Du hast?

by alko
Sun Apr 30, 2017 5:44 pm
Forum: Demos
Topic: Zombie
Replies: 27
Views: 10740

Re: Zombie

Stef wrote:If you mean the source code, here is it:
translate into the new version syntax please
by alko
Sat Mar 18, 2017 9:14 pm
Forum: SGDK
Topic: about sprites
Replies: 16
Views: 2848

Re: about sprites

Why in version 1.21 sprite erased when it is outside of the screen? In the version 1.12 sprite was not erased. https://i.paste.pics/a017c7b3e31fc73621981a11d84d2704.png SPR_init(64, 256, 256); sprites[0] = SPR_addSprite(&logo1, 100, 100, TILE_ATTR(PAL2, TRUE, FALSE, FALSE)); ... logopos++; SPR_setPo...
by alko
Wed Mar 15, 2017 2:22 pm
Forum: SGDK
Topic: pixels are not displayed
Replies: 14
Views: 2259

Re: pixels are not displayed

I still do not understand how to implement fast displaying tile's.
could you tell me in details?
by alko
Wed Dec 21, 2016 6:37 pm
Forum: SGDK
Topic: pixels are not displayed
Replies: 14
Views: 2259

Re: pixels are not displayed

cero wrote: create a shadow in RAM and DMA it in.

how to do it?
by alko
Wed Dec 21, 2016 4:52 pm
Forum: SGDK
Topic: pixels are not displayed
Replies: 14
Views: 2259

Re: pixels are not displayed

I decided to do per-tiles plasma. But updated too slow. void plasma() { if(initplasma==0) { ind = TILE_USERINDEX; VDP_setPalette(PAL0, pix0.palette->data); ind_pix0= ind; VDP_loadTileSet(pix0.tileset, ind_pix0, TRUE); map_pix0 = unpackMap(pix0.map, NULL); ind += pix0.tileset->numTile; ind_pix1= ind;...