Page 1 of 1

[SOLVED] [RVGL] Can't disable colorkeying

Posted: Sat Sep 15, 2018 9:58 pm
by Instant
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.

Re: [RVGL] Can't disable colorkeying

Posted: Sun Sep 16, 2018 1:17 pm
by Kiwi
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. :?

Re: [RVGL] Can't disable colorkeying

Posted: Sun Sep 16, 2018 4:51 pm
by Instant
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.

Re: [RVGL] Can't disable colorkeying

Posted: Mon Sep 17, 2018 7:19 pm
by 607
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).

Re: [RVGL] Can't disable colorkeying

Posted: Thu Sep 20, 2018 10:37 am
by Kiwi
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.

Re: [RVGL] Can't disable colorkeying

Posted: Thu Sep 20, 2018 10:46 am
by Marv
You can launch the game with -dev -noshader when you're using MAKEITGOOD until issues get resolved.

Re: [RVGL] Can't disable colorkeying

Posted: Thu Sep 20, 2018 7:34 pm
by Kiwi
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.

Re: [RVGL] Can't disable colorkeying

Posted: Fri Oct 19, 2018 2:40 am
by Huki
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

Re: [RVGL] Can't disable colorkeying

Posted: Tue Oct 30, 2018 7:11 am
by Kiwi
See Huki's comment for solution - Also partly solved in 18.1020a.

Marked as [SOLVED]

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

Posted: Wed Oct 31, 2018 9:26 pm
by Instant
I'm supposed to mark it as solved?

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

Posted: Sun Nov 04, 2018 8:53 am
by Marv
Yeah, feel free to. Either the OP or a moderator can do it.