Wintermute Engine Forum

Wintermute Engine => WME Lite => Topic started by: 2.0 on May 21, 2011, 11:23:13 AM

Title: Unsupported features
Post by: 2.0 on May 21, 2011, 11:23:13 AM
Hi Mnemonic!

You've done a great work, thanks. But I have a question.

Is this features:
- Sprite frame mirroring.
- Sprite rotations.
will work in future releases of WME Lite?

Regards.
Title: Re: Unsupported features
Post by: Mnemonic on May 21, 2011, 03:41:18 PM
I know these limitations are annoying, but unfortunately they are inherited from SDL, the portable graphics library WME Lite is using.
While both of these features are easy to achieve on 3D accelerated hardware, SDL keeps compatibility with non-accelerated systems and for that reasons those features were never added.

The mirroring could be faked for the price of keeping multiple copies of the image in memory, but there's no feasible way of providing smooth rotation without hardware support.
Title: Re: Unsupported features
Post by: Spellbreaker on June 09, 2011, 04:43:58 PM
Hey Mnem, just in case you did not know :

SDL_Gfx includes rotozoom, some stuff for rotating and zooming sprites. I used it a while ago. I don't know if its easy to implement into wme_lite, but maybe worh a look.


http://www.ferzkopp.net/joomla/content/view/19/14/


greets
Title: Re: Unsupported features
Post by: Mnemonic on June 10, 2011, 03:20:25 PM
I know about this, thanks. But AFAIK it's not intended for realtime rotations, because it's slow.
Title: Re: Unsupported features
Post by: 2.0 on June 13, 2011, 04:31:08 PM
I know about this, thanks. But AFAIK it's not intended for realtime rotations, because it's slow.

But you can try, what if you mistakes? :)

My another question is about switching of windowed/fullscreen modes inside the game (and saving the choise) in MacOS - is it possible in the future?
Title: Re: Unsupported features
Post by: Mnemonic on June 15, 2011, 04:24:53 PM
I tried windowed/fullscreen switching on both windows and mac and there results aren't very good, there are often graphical glitches. Not sure whom to blame, whether SDL or drivers.
Title: Re: Unsupported features
Post by: 2.0 on June 16, 2011, 02:34:09 PM
I tried windowed/fullscreen switching on both windows and mac and there results aren't very good, there are often graphical glitches. Not sure whom to blame, whether SDL or drivers.

But can you turn on this feature in the next build with note that we can use it for our own risk?
Title: Re: Unsupported features
Post by: Mnemonic on June 16, 2011, 02:41:56 PM
It's there actually. Press Alt+Enter to switch between windowed/fullscreen (no script method currently, though).
Title: Re: Unsupported features
Post by: 2.0 on July 14, 2011, 11:45:23 AM
I know about this, thanks. But AFAIK it's not intended for realtime rotations, because it's slow.

But can you add this feature (even if it works very slow) for testing purposes?
Title: Re: Unsupported features
Post by: Mnemonic on July 14, 2011, 12:06:04 PM
What testing purposes?
I don't think I will add this. It would mean one more external library dependency, plus the way sprite images are handled would have to be changed (currently the rotations are done on-thy-fly, this library would require to generate and cache rotated images). Not worth the hassle, IMO, because in the end it's not going to be usable anyway.
Title: Re: Unsupported features
Post by: 2.0 on July 14, 2011, 01:13:54 PM
OK, thanks anyway.
Another question is about blending mode - now BlendMode = 1 (additive) is not works correctly (probably in particles) - it works such as a normal mode. It can be corrected?