Is it possible to 'mirror' the screen easily?

SGDK only sub forum

Moderator: Stef

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Is it possible to 'mirror' the screen easily?

Post by Stef » Tue Jan 19, 2016 9:19 pm

My fault... i was so certain it was working (and at some point i guess it was as i tested it) but i probably broke it afterward :-/

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Is it possible to 'mirror' the screen easily?

Post by alko » Tue Jan 19, 2016 10:58 pm

yet would be great if be possible to mirror layers in the program just like sprites.
to argument of function DrawImage - mirror flag.

It would be useful in the creation similar engine with pre-rendered wall's:
https://youtu.be/zw0kqJp3NYw?t=334
Image

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Is it possible to 'mirror' the screen easily?

Post by alko » Tue Jan 19, 2016 11:30 pm

...Though, probably, instead of prerender better to use ZeroTolerance\bloodshot-like algorithm.

I know that gasega the already made fast raycasting engine. But there are wall on map angle only 90 degrees.

In ZT or BattleFrenzy - morphing pictures, not raycasting.

This can be realized only getPixel (from picture in RAM) putPixel (to screen).

Is there a similar functions in SGDK?
Image

POLYGAMe
Very interested
Posts: 151
Joined: Sun Apr 14, 2013 1:19 am
Location: Auckland, New Zealand
Contact:

Re: Is it possible to 'mirror' the screen easily?

Post by POLYGAMe » Wed Jan 20, 2016 5:18 am

How do I do that test with my tile sets/images? Is that VDP RAM window from a special app?

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Is it possible to 'mirror' the screen easily?

Post by Stef » Wed Jan 20, 2016 9:14 am

alko wrote:...Though, probably, instead of prerender better to use ZeroTolerance\bloodshot-like algorithm.

I know that gasega the already made fast raycasting engine. But there are wall on map angle only 90 degrees.

In ZT or BattleFrenzy - morphing pictures, not raycasting.

This can be realized only getPixel (from picture in RAM) putPixel (to screen).

Is there a similar functions in SGDK?
There is a software bitmap engine in SGDK which allow you to do pixel operation. You can also use it for simple 3D flat rendering (you have methods for that as well in SGDK), you can see the interesting methods for that in bmp.h header.

hiperbou
Newbie
Posts: 6
Joined: Sun Aug 12, 2012 1:43 pm

Re: Is it possible to 'mirror' the screen easily?

Post by hiperbou » Sat Jan 23, 2016 7:06 pm

Stef wrote:My fault... i was so certain it was working (and at some point i guess it was as i tested it) but i probably broke it afterward :-/
So.. and what is the state of this? I have experienced this bug myself some time ago, and I' ve seen another post on this forum pointing to that problem. Is it fixed already?

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Is it possible to 'mirror' the screen easily?

Post by Stef » Sat Jan 23, 2016 10:17 pm

Not yet unfortunately, i still am in my big work on the sprite engine, but don't worry that is in my to do list and I plan to fix it for the next official SGDK version.

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Is it possible to 'mirror' the screen easily?

Post by alko » Sun Jan 24, 2016 11:33 am

whether is possible to know when the next release?
Image

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Is it possible to 'mirror' the screen easily?

Post by Stef » Sun Jan 24, 2016 1:26 pm

Sorry but no :-/ I really can't give any date about it, of course i understand the sooner the better but given my spare time and how slow i am when working of that kind of stuff it's really difficult to estimate when will be the next version. Ideally i would like to have it ready in 1 month but i'm afraid that is far too optimist... But i can try to specifically fix that problem quickly in rescomp and push the changes over Github so you will be able to use the new rescomp before the next official version of SGDK.

Post Reply