Projectile that generates translated decal on impact

These are not rejected - but are not considered highly important right now.

Moderator: GZDoom Developers

Post Reply
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Projectile that generates translated decal on impact

Post by Nash »

I have a projectile that carries translation information, and I want it to generate the translated decal colour upon colliding with a wall. Can this be done?

(same as http://forum.zdoom.org/viewtopic.php?f=15&t=33273)
Last edited by Nash on Sun Jan 31, 2016 3:47 am, edited 1 time in total.
User avatar
jpalomo
Posts: 771
Joined: Mon May 17, 2010 9:45 am

Re: Projectile that generates translated decal on impact

Post by jpalomo »

Decals already support translations, so I would assume yes. I'll take a look at it when I can. No guarantees though.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Projectile that generates translated decal on impact

Post by wildweasel »

Does translation also include blood color, by chance?
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Projectile that generates translated decal on impact

Post by Nash »

I planned to use this for blood purposes actually. :) The "projectile" I speak of in my OP is actually spawned from Blood, which is already translated. The problem now, however, if this projectile collides with the wall, it spawns the default-coloured decal (which is red). I was hoping to be able to colourize the decal according to its current translation.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Projectile that generates translated decal on impact

Post by Graf Zahl »

Can you post an example of what precisely you want? There should be a way to pass translation information in some way but first I need to evaluate the required use case.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Projectile that generates translated decal on impact

Post by Nash »

https://dl.dropboxusercontent.com/u/47355875/test.pk3

Here's what I'm trying to do. Obviously in this example, everything is ultra exaggerated (the distance the projectiles fly, the decals that gets generated, etc) but it was done that way to better illustrate the effect. If you comment out the RenderStyle, you can see that the projectiles are already taking the colour of the Caco's blood, so I know that information is being carried by the projectiles.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Projectile that generates translated decal on impact

Post by Graf Zahl »

Ok, this is going to be a bit complicated because the translations for blood sprites and decals are not the same thing. So this somehow needs to be able to transfer the blood color to the projectile, not just the translation.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Projectile that generates translated decal on impact

Post by Nash »

Sorry for the bump, but any chance of revisiting this? Would be great so that I can update my newly-released blood mod to support colourized blood...
User avatar
StrikerMan780
Posts: 485
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Projectile that generates translated decal on impact

Post by StrikerMan780 »

Nash wrote:Sorry for the bump, but any chance of revisiting this? Would be great so that I can update my newly-released blood mod to support colourized blood...
Yes! This is the final thing that would complete the gibs in my mod as well.
D2JK
Posts: 543
Joined: Sat Aug 30, 2014 8:21 am

Re: Projectile that generates translated decal on impact

Post by D2JK »

I'd be interested in this too, though in my case it would just let me clean up some extra code as I've already gone ahead and done this manually (red/green/black blood, droplets and decals). :-)
User avatar
Josh771
Posts: 676
Joined: Wed Apr 03, 2013 11:36 am
Location: Elsewhere.

Re: Projectile that generates translated decal on impact

Post by Josh771 »

Maybe if this gets bumped enough, it'll happen. As I've begun developing Droplets once again, this has become yet another painful gap in the translation feature set. The ability to pass translation information from projectile to decal would be invaluable for various blood mods, and I imagine it would have its use in monster replacers and weapon mods as well.

EDIT: I hope my tone doesn't come across as exasperated or anything like that. I understand the sorts of hard problems real development runs into and I'd like to express my patience with regards to new features and whatever unique difficulties they represent. Hopefully this is something that can eventually, if not soon, be implemented.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Projectile that generates translated decal on impact

Post by Graf Zahl »

SidDoyle wrote:Maybe if this gets bumped enough, it'll happen.
The far more likely result will be that it gets closed. If this was simple it would already be in.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Projectile that generates translated decal on impact

Post by Nash »

This may be closed, as I've found a solution to my original use case.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Projectile that generates translated decal on impact

Post by Rachael »

I'm going to leave the final decision to Graf on that, mostly because I have no idea if he has any plans for this or not and I am not the person who wants to be raining on his parade if he does.

Ultimately, tickets that appear in these development forums are here to serve a purpose for the greater good, not solely for the person who opened them. I really wish people realized that (and there's one person in particular I have in mind when I say this...). Basically that means everything that gets implemented, whether you did the work via PR for it or not, is not a favor for you, it's meant for everyone.
Post Reply

Return to “On Hold Suggestions”