[SOLVED] [RVGL] Can't disable colorkeying

Report issues or bugs in RVGL or ask for help regarding any Re-Volt topic.
User avatar
Instant
Posts: 35

[SOLVED] [RVGL] Can't disable colorkeying

Unread post by Instant » Sat Sep 15, 2018 9:58 pm

See the title. According to the documentation:
Use 'TEXTUREPROPS 1 1 1 0' to make texture page B use mipmapping, support mapping outside the boundaries and disable colorkeying (no pure-black alpha testing).
Added in version 18.0428a.
No matter what I do, the face will be invisible in-game. Tried this with both .bmp .png.
► Show Spoiler
► Show Spoiler
Yes, I have the lastest version of RVGL, and no, didn't use alpha/translucent flag on the image/face.
Uploaded the test track.
User avatar
kiwi
Posts: 557

Re: [RVGL] Can't disable colorkeying

Unread post by kiwi » Sun Sep 16, 2018 1:17 pm

Instant, it seems you don't have the Shader version activated?

I've downloaded your testlevel, and tested it on my own.
Without Shaders enabled, the colorkey setting in the level.inf-file seems to be ignored.

Here screenshots from my tests:
► Show Spoiler
Maybe this should be stated in the RVGL documentation.
And this also means, that people who run a level who uses colorkeying without Shader-editions, will get a different experience.
I also wasn't aware of this. :?
User avatar
Instant
Posts: 35

Re: [RVGL] Can't disable colorkeying

Unread post by Instant » Sun Sep 16, 2018 4:51 pm

Fair enough, didn't test it with shaders. But yeah, it's not stated in the documentation, so to me it seems more like a bug. It's really useless if it doesn't work with the legacy renderer, since shaders is the one that's optional.
User avatar
607
Posts: 388

Re: [RVGL] Can't disable colorkeying

Unread post by 607 » Mon Sep 17, 2018 7:19 pm

Yeah, the legacy renderer should probably be made optional, so people need to enable it for MAKEITGOOD (I've heard there are some issues in some edit modes in the shader mode).
User avatar
kiwi
Posts: 557

Re: [RVGL] Can't disable colorkeying

Unread post by kiwi » Thu Sep 20, 2018 10:37 am

Yes, the glitches in Makeitgood are also the reason, that I'm not using the Shader Edition by default. That's especially an issue when racing on tracks like Ranch, so the whole situation is kind of annoying.
User avatar
Marv
Developer
Posts: 236
From: Europe 2

Re: [RVGL] Can't disable colorkeying

Unread post by Marv » Thu Sep 20, 2018 10:46 am

You can launch the game with -dev -noshader when you're using MAKEITGOOD until issues get resolved.
User avatar
kiwi
Posts: 557

Re: [RVGL] Can't disable colorkeying

Unread post by kiwi » Thu Sep 20, 2018 7:34 pm

I thought I only can do it with the Shader = 0 or Shader = 1 line in the rvgl.ini. But this way it's much more comfortable, because I simply have to adjust my DEV shortcut.

This is very useful, Thanks Marv.
User avatar
Huki
Developer
Posts: 397

Re: [RVGL] Can't disable colorkeying

Unread post by Huki » Fri Oct 19, 2018 2:40 am

I think this is an oversight in the TEXTUREPROPS documentation. The colorkey attribute merely provides a hint to RVGL that the texture doesn't need colorkeying and hence it's safe to disable alpha testing. Alpha testing in shaders is a costly operation, so the game can make use of this information to conditionally enable it for textures that need it. There is however no guarantee that it actually gets disabled, and it currently only affects shader mode.

If you really want pure-black pixels to stay opaque, you must save your texture as PNG or 32-bit bitmap, which will let you control precisely which parts should be transparent (effectively disabling colorkeying). You could then set the TEXTUREPROPS values appropriately to benefit from the performance gains.

The upcoming RVGL release should slightly change this behavior (allowing you to definitively disable pure-black colorkeying on 24-bit bitmaps), but the above information still holds in other cases.

Also, the upcoming release should make shader renderer the default. :D
User avatar
kiwi
Posts: 557

Re: [RVGL] Can't disable colorkeying

Unread post by kiwi » Tue Oct 30, 2018 7:11 am

See Huki's comment for solution - Also partly solved in 18.1020a.

Marked as [SOLVED]
User avatar
Instant
Posts: 35

Re: [SOLVED] [RVGL] Can't disable colorkeying

Unread post by Instant » Wed Oct 31, 2018 9:26 pm

I'm supposed to mark it as solved?
User avatar
Marv
Developer
Posts: 236
From: Europe 2

Re: [SOLVED] [RVGL] Can't disable colorkeying

Unread post by Marv » Sun Nov 04, 2018 8:53 am

Yeah, feel free to. Either the OP or a moderator can do it.
Post Reply