TheGameCreators / GameGuruRepo

The GameGuru Repository For Community Collaboration
http://www.game-guru.com
137 stars 56 forks source link

MAX Request - Decal projection #711

Open fearlesswee opened 4 years ago

fearlesswee commented 4 years ago

This is a request for a new feature in MAX.

The ability to project decals onto surfaces in GG Max would be a tremendously useful addition in many areas. Some examples of how decal projection could be used:

Here is a link to an image to illustrate what decal projection is

It would be important to allow decals to be both projected in-editor as well as via script

ErrantAI commented 4 years ago

Yes! Please! It's a shame that even bullet hole/splatter/scorch decals were dropped for GG. Would love to see this make a return and being able to detail the environment via projected textures would be an amazing addition.

OldFlak commented 4 years ago

Yeah, AmenMoses had bullet holes working using particles, could add that to MAX.

AmenMoses commented 4 years ago

Although it can be done with particles there are issues with animated entities as you really need the image to move with the animation which can't really be done in Lua. I imagine this would also need a special shader to support projecting a flat image onto the surface of entities and the terrain properly.

rvanner commented 3 years ago

@fearlesswee Thanks for your ideas. We will consider these as we progress with the development work.

rvanner commented 3 years ago

Decals are being implemented in the latest version. There will also be bullet holes and other visual effects.

Closing this for now.

fearlesswee commented 2 years ago

Was going through my old github issues to see which ones should be updated/have been replied to, I think this should be re-opened as we currently only have bullet holes, which for the record don't actually use decal projection, but rather spawn a flat plane and roughly orient it to the surface.

I still strongly think having projectable decals for blood, level details (ex: graffiti on walls, mold/mildew, grime/dirt, etc.) should be considered.

OldFlak commented 2 years ago

The decals also need to be implemented properly - being able to project only to a single flat square plane is all but useless. At present it is a half-baked implementation.

Classic does it properly - MAX should also.

LeeBamberTGC commented 2 years ago

@fearlesswee @OldFlak Reopening this as a feature request for MAX. Classic did it a little smarter by detecting the extent of the polygon and only placing the flat quad within the borders, MAX just dumps the quad at the hit site. Projection is a better way, and I believe Wicked does provide projection support out of the box. Not sure on performance, but as this will be a sparingly used feature in the overall rendering system it may not impact on FPS at all (and worth checking out). I also agree we need decals for things like blood, scorches, bullet holes and other needs, we only need to replace the decals that are pretending to be particles (for VR).

OldFlak commented 2 years ago

Thanks Lee: With regard to decals, there is a good example in this thread #3579