![]() |
#1 |
Junior Member
Join Date: Jan 2011
Posts: 17
|
Looking to mod source to make Text render solid
Hi all,
When I modded the source code for my MDC cue version of Milkdrop, I began with the code for rendering Custom Messages as a starting point for rendering the Karaoke text(s). I was able to simplify the code quite a bit since the Karaoke lyrics are always rendered as the same size, color (except when prompt triggers color change), font face and screen placement. After creating quite a few Karaoke examples, I've come to NOT like the semi-translucency of the text. This isn't something you can set with the milk2_img.ini native formatting keys for messages, and it's only noticeable under certain color-combinations, too. I am somewhat familiar with alpha transparency and blending modes for 2D graphics, but the directX and pixel-shading stuff is still not on my tool belt. Every combo I have tried has led to worse results: either the words are opaque but so dim they can't be seen; the background of the text portion is also solid like a reactangle. I've tried combos of D3DRS_SRCBLEND, D3DRS_DESTBLEND, D3DRS_BLENDONE, BLENDZERO, etc - but I was shooting in the dark. Here's what (I think) is the relevant code. Any help would be fantastic. Again, I'm just looking to have the text render as solid - while it's being drawn as an overlay. Not even sure if this is possible - I don't want to break how the text blends with the background art if I can help it. code: I've attached a pic of the kind of blending/bleaching I am talking about. It just makes text really hard to read when there is a bright background and lots of motion going on. Notice in the second image how the normally black shadow has become a light magenta color. That really kills the relief effect the makes the text easy to see. Thanks, DC |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Dec 2017
Posts: 5
|
This is a pretty old thread however my text doesn't seem to look like that. It looks solid. Did you check the fade setting in the milk2_img.ini? The fade is the amount of time the text takes to fade in. Setting it to 0 should produce solid text instantly.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|