|
Search Results
|
| Post |
Author |
Forum
[desc]
|
Replies |
Views |
Posted |
| |
|
Thread: Adding more blending modes
Post: RE: Adding more blending modes
| Hi!
Built-in blending tables are created in file Tables.c, in CreateBlendTables() function:
https://github.com/megamarc/Tilengine/blob/effe3a778de747469f8c83b6452af66e5cad30a8/src/Tables.c#L20
To... |
|
megamarc |
Support
|
3 |
9,745 |
05-09-2022, 08:55 PM |
| |
|
Thread: Palette attribute per tile
Post: RE: Palette attribute per tile
| You should modify the loader in LoadTilemap.c to load a custom property from Tiled called "palette" for example. Use this property to set an integer value with the palette index, and store this value ... |
|
megamarc |
Support
|
11 |
25,756 |
08-11-2022, 04:11 PM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
| Hi,
Seems that the last release that introduced support fot multiple tilesets per layer is still a bit buggy. I've seen that your sample makes the engine crash when referencing the wrong tileset. Tha... |
|
megamarc |
Support
|
15 |
29,924 |
10-25-2022, 05:18 AM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
| Hi guys,
I've just pushed release 2.11.3 to github that fixes the issues found in your test cases, and some more. Please update your build and let me know if it works for you too.
Regards, |
|
megamarc |
Support
|
15 |
29,924 |
10-26-2022, 12:35 AM |
| |
|
Thread: Palette attribute per tile
Post: RE: Palette attribute per tile
| Hi!
I've thougth about this feature some time ago. To implement this, there should be a global store of slotted palettes -layers and sprites are slotted, but palettes are dinamically managed-. So y... |
|
megamarc |
Support
|
11 |
25,756 |
08-09-2022, 01:18 AM |
| |
|
Thread: Palette attribute per tile
Post: RE: Palette attribute per tile
| To fully support per-tile palette, you should modify DrawLayerScanline(), DrawLayerScanlineScaling(), DrawLayerScanlineAffine() and DrawLayerScanlinePixelMapping(). Each one is responsible of the diff... |
|
megamarc |
Support
|
11 |
25,756 |
08-10-2022, 03:28 PM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
| Thanks for your feedback guys!
I've pushed the fix to the multi-palette issue to github, you an update your builds to release 2.11.3. As it's an important fix I'll later push it to itch.io, too.
Now... |
|
megamarc |
Support
|
15 |
29,924 |
10-27-2022, 03:15 AM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
|
System64 Wrote: (10-27-2022, 03:47 AM)
--
Hi, can one tileset uses multiple palettes? (Like Palette attribute per tile in old consoles) Thanks for your answer
By the way, this is a pretty exciting u... |
|
megamarc |
Support
|
15 |
29,924 |
10-27-2022, 09:24 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Hi!
You are loading the tilemap before initialising the tileset, that may cause problems. TLN_Init() should go first. |
|
megamarc |
Support
|
32 |
68,403 |
10-29-2022, 01:46 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| No, you need to initialise the engine with TLN_Init() before anything else. You're loading a tilemap before initialising the engine. |
|
megamarc |
Support
|
32 |
68,403 |
10-29-2022, 08:38 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| In that case, I need to test it with the same assets you're using. With my test assets, it woks as expected. Can you upload them here? |
|
megamarc |
Support
|
32 |
68,403 |
10-29-2022, 07:21 PM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
| Hi! Thanks for your suggestion.
However, it's not recommended to modify linked resources that have been loaded recursively. For example when you load a tileset or a bitmap, a palette is also loaded/c... |
|
megamarc |
Support
|
15 |
29,924 |
10-29-2022, 07:44 PM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
| No it can't as they're two unrelated properties: Layer.palette is an optional property that can be NULL -and by default is-, whereas Tileset.palette is mandatory and belongs to the Tileset, not the La... |
|
megamarc |
Support
|
15 |
29,924 |
10-30-2022, 02:34 AM |
| |
|
Thread: Read Access Violation
Post: RE: Read Access Violation
| Yes you're right: classic systems have a fixed numbers of hardware palettes, the Color RAM -or CRAM for short-, that are used globally by all tiles. Each tile has some palette select bits in its attri... |
|
megamarc |
Support
|
15 |
29,924 |
10-30-2022, 04:10 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Hi,
I've run your test assets with Tilengine 2.11.3, and I get expected results.
This is Tiled wiew:
And this is Tilengine window result:
What do you see in your output? Are you using latest r... |
|
megamarc |
Support
|
32 |
68,403 |
10-30-2022, 04:44 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Strange... can you do git pull and rebuild the engine again? Your output corresponds to when multi palette issue was still not fixed. Output should be like in my post :-/ I'm on Windows too |
|
megamarc |
Support
|
32 |
68,403 |
10-30-2022, 09:34 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Don't worry!
Thanks for your interest in this project and for providing useful tests cases that help finding bugs.
Hope you continue enjoying it and discovering new features |
|
megamarc |
Support
|
32 |
68,403 |
10-31-2022, 03:16 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Hi!
You have to use the TLN_SetTilemapTile() (https://www.tilengine.org/doc/group__tilemap.html#gad24907cc3b0c85a04f2a9345acc756a6) function and set the corresponding tileset bits in Tile structure.
I... |
|
megamarc |
Support
|
32 |
68,403 |
10-31-2022, 04:35 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Good to know!
The screenshot looks cool :-)
Don't put much effort on simulating per-tile palette, now that release 2.12 with tile & sprite support is out, I'm working on release 2.13 that will add o... |
|
megamarc |
Support
|
32 |
68,403 |
11-01-2022, 05:37 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Hi!
I'm glad this is already working for you. At's a good idea indeed: having non-standard attributes in separate layers using tile indexes, and mass-transfer them to the destination tilemap at run... |
|
megamarc |
Support
|
32 |
68,403 |
11-04-2022, 03:44 AM |