DECALDEFS colors - does this even do anything?

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: DECALDEFS colors - does this even do anything?

Re: DECALDEFS colors - does this even do anything?

by Nash » Mon Feb 17, 2020 11:57 am

Thanks for the info Gez. Yes, that was the other idea I had, to basically complete the feature - my guess was similar to yours with regards to the gradients.

That was why I made questions in this thread. As I said earlier, it appears that there is translation data being assigned to the objects being made so I am unsure why it isn't working.

It's quite confusing as the code is spread everywhere.

Re: DECALDEFS colors - does this even do anything?

by Gez » Mon Feb 17, 2020 6:47 am

I guess it was already dead in 2004. Nash, you should feel free to reuse the keyword and give it a purpose.

If I had to guess, I'd suppose the intent was to have the given colors be the two edges of a gradient that the decal would then match, kind of like how fonts work.

Re: DECALDEFS colors - does this even do anything?

by Graf Zahl » Sat Feb 15, 2020 1:34 pm

I cannot help you with this "feature", because nothing of it exists. It's just a leftover definition with nothing backing it.

Re: DECALDEFS colors - does this even do anything?

by Nash » Sat Feb 15, 2020 1:19 pm

I suppose I did not explain myself clearly. I'd like a way to draw blood decals that are opaque, but using the actor's blood colour as a translation instead. Will most likely have to end up creating a new DECALDEF keyword, probably just called OpaqueBlood or something. So what I am curious about is not actually the original 2001 feature - I honestly don't even care about that anymore. I am asking on how do I get translations on the decal to work render-side.

Re: DECALDEFS colors - does this even do anything?

by Graf Zahl » Sat Feb 15, 2020 1:11 pm

Graf Zahl wrote: and I'm sorry to say I don't have any idea what this was supposed to do.
Wasn't this part clear enough?

Re: DECALDEFS colors - does this even do anything?

by Nash » Sat Feb 15, 2020 1:08 pm

Sorry for the bump. I'd like to make this feature work. So what exactly is missing? From what I understand, the translation data does get created, but nothing on the render side is using that data, am I right?

I took a look at HWDecal::DrawDecal and see this line:

Code: Select all

state.SetMaterial(tex, CLAMP_XY, decal->Translation, -1);
 
Isn't this supposed to work?

Re: DECALDEFS colors - does this even do anything?

by Graf Zahl » Sun May 05, 2019 1:21 am

This looks like a dead feature. The generated translation doesn't seem to be used for anything. Looking at the changelog, the code seems to originate in 2001, and I'm sorry to say I don't have any idea what this was supposed to do.

Re: DECALDEFS colors - does this even do anything?

by Nash » Thu May 02, 2019 3:53 pm

Sorry, I have to bump this because even though this thread was moved to the Bugs forum as requested, it was silently done so therefore it had no chance of being noticed.

DECALDEFS colors - does this even do anything?

by Nash » Mon Jan 21, 2019 12:39 am

Code: Select all

decal BloodSplat1
{
	pic "graphics/decals/bsplat1.png"
	colors "FF FF FF" "00 FF FF"
}
The decal doesn't get translated at all. Does this feature even work?

1) Load test file
2) bind mouse1 "spray bloodsplat1"
3) click mouse while standing in front of wall
Attachments
translateddecal.pk3
(1.41 KiB) Downloaded 53 times

Top