MSX2 SM2 Sprites Engine GLSL Shader with sample using.

Page 1/2
| 2

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

26-10-2020, 16:36

Small and convinient GLSL shader for developers, capable emulate MSX2 SM2 Sprites mechanics on other platforms.
Profilled without sync, and showing me more than 440 fps with Processing.org, on GTX1070.
Sample of loading data presented with sources over Processing.org
OpenGL with GLSL 4.0 support needed.

Download Link

Login or register to post comments

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

01-11-2020, 11:35

It's strange that there is no reaction from the developers.
I really believed that the majority understood here.
In fact, developers ask me questions like, "What is it for?"
Below I want to present the work of the last few days that I have spent.

Download

By Metalion

Paragon (1625)

Metalion's picture

01-11-2020, 11:49

Dolphin101546015 wrote:

It's strange that there is no reaction from the developers.
I really believed that the majority understood here.

Well, I'm a developper, and I cannot make any sense of that phrase:

Dolphin101546015 wrote:

Small and convinient GLSL shader for developers, capable emulate MSX2 SM2 Sprites mechanics on other platforms

What's a GLSL shader ?
And how to use your program ?

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

01-11-2020, 11:58

Metalion wrote:

What's a GLSL shader ?
And how to use your program ?

GLSL Shader is small program for Videocards, let draw something using powerful hardware capabilities.
For program using, read READ.ME file, also just read code Wink

By Grauw

Ascended (10768)

Grauw's picture

01-11-2020, 12:00

It's cool, but I'm struggling a bit coming up with things that it could be used for...

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

01-11-2020, 12:02

Grauw wrote:

It's cool, but I'm struggling a bit coming up with ways to use it...

Big smile
Ofc it not for emulating MSX on PC.
But it just help with developing or do test on PC, for prepare good sprites to MSX2 in software creating.

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

01-11-2020, 12:04

Btw I use processing, therefore all sources is open for changing with you self needs.

By enribar

Paragon (1214)

enribar's picture

01-11-2020, 14:32

Yes I understand! This is a very useful tool to design MSX2 sprites! For the MSX2, there are not so much tools like this.
I have a request: is it possible to program a "wizard" that converts bitmaps images to a MSX2 sprite? (with some intelligent choice of colours).

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

01-11-2020, 15:57

enribar wrote:

Yes I understand! This is a very useful tool to design MSX2 sprites! For the MSX2, there are not so much tools like this.

Thanx for understanding Smile

enribar wrote:

I have a request: is it possible to program a "wizard" that converts bitmaps images to a MSX2 sprite? (with some intelligent choice of colours).

I throught about it and made one tool in MSX basic for plain sprites (without coloring) for test.
I sure it possible, but with many restrictions, like:
- size of sources
- resolution of sources (in colors)
- allowed range (in MSX colors)
- required perfomance
etc.

I think processing is good for it and convinient also.
Algorithm show do:
- first, is converting sort colors and palettes on load
- sort colors and palettes by OR operation
- scan bitmaps and build PAT
- set SCT

Methink first two operations will involve Photoshop also, and maybe with automations.
Just my vision.

PS: Btw I trying use editor and found some inconveniences.
Main - when you edit one plain (left or right sprite), you need see second plain also.
Lens shader was rewrited, after several tests I will update git.
Also I need your oppinions too.
Thanx.

Some another preview:

By Dolphin101546015

Champion (336)

Dolphin101546015's picture

04-11-2020, 17:41

New version 2.0 (final)

New functions in this version:
- Reworked Lens shader, for showing both sprite planes. Active plane showing with full alpha,
shadow plane is blended.
- Applied roll/pan pattern(patterns) function with mouse or cursor keys.
- Applied flip pattern(patterns) functions by vertical ([V]) or horizontal ([H]).
- Applied clear pattern(patterns) function
- Applied simple color calculator, show both sellected colors for each sprites and resulting color (OR)

By Metalion

Paragon (1625)

Metalion's picture

28-12-2020, 11:44

And I still have not understood how to use it ...

OK, let's say I'm in front of my computer ...
Please tell me, step by step, how I can make your program work on it.
Thank you.

Page 1/2
| 2