TheGameCreators / GameGuruRepo

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

GGMAX Enhancement - Add emissive map and animated texture support to weapons #5793

Open Kraven3D opened 18 hours ago

Kraven3D commented 18 hours ago

For futuristic, sci-weapons with glowing elements such as light sabers and energy swords, to spinning, moving, glowing mechanical parts (animated textures should also support PBR):

emissive_weapons

mav3r1ck1981 commented 14 hours ago

i second this, and not only scifi weapons. modern day guns have holo sights, magical weapons and pickup definitely will need emissive support (wands/staffs/arrows/spells/hands etc) Long term i would assume that animated weapons will be implemented or at least i hope so! But an additional material slot for emissives on huds has been asked for alot over the years. Didnt classic have it?

C4ever08 commented 11 hours ago

I third this defo. This is something I've wanted for quite some time. I mean if particles can be added to weapons this should also be implemented.

DBird-1994 commented 11 hours ago

Emissive already works on weapons. In fact I demonstrated this on discord like a year ago before one of your mods banned me. Of course no one paid any attention because I wasn't one of the favored ones on discord. This weapon is from sketchfab and using the machete animations from the wasteland dlc. The blue parts use and emissive texture.

https://github.com/user-attachments/assets/239ef119-1453-4883-a37f-4392271273f0

mav3r1ck1981 commented 10 hours ago

@Kraven3D will have to see if Preben can add a slot to his weaponmaker for emissive textures if thats the case. Will do some testing later

DBird-1994 commented 9 hours ago

@mav3r1ck1981 Yes this is not a MAX issue since emissive already works, and I didn't use Preben's weapon importer when I made this a year ago. So really this is more of an issue with Preben's tool if it's not working for you.

mav3r1ck198-1 commented 9 hours ago

It's not an issue per se, it only has 3 slots for _color _normal and _surface. There's nothing wrong with the tool. I'll do some testing to see if I can add them in via the fpe.

DBird-1994 commented 9 hours ago

@Kraven3D Bro if you want spinning and moving mechanical parts you would just animate the weapon itself for stuff like that, then assign those parts an emissive texture.

Kraven3D commented 8 hours ago

There is no information regarding applying emissive maps to weapons in the official user guide or the weapons guide, and no official MAX weapons currently use them for me to reference, either, as far as I can tell. I would like official emissive support for weapons to be added, not just jerry-rigging them to "sort-of" pull off the effect.

How are they set up? Can their emissive strength be adjusted so we have control over how bright they are? Do they cast light onto nearby objects? Are they reactive to bloom? Do we currently have any control over them via commands that can be added to the gunspec? Where are these commands I can reference? If not, I am requesting for such additions to be added. To take it one step further, adding animated texture support would give us even more options, such as flashing lights, pulsating lights and so on. Useful to make parts of the texture move whether or not the mesh they're applied to is animated or not.

If all of this is already possible, great! I would absolutely love for it to be documented somewhere so I can reference it and start making use of it immediately. :) However, I suspect what we currently have to work with is limited to tossing an emissive map into the gamecore folder and hoping for the best, otherwise I could only assume more functionality would have been properly documented.

C4ever08 commented 8 hours ago

@Kraven3D Yes I agree this needs to be set up in Max core. And their is no real option to tweak the emission unless via FPE. It would be nice to have a slider. Or Preben adds a slot for this then that will be better.

synchromesh62 commented 8 hours ago

It's not an issue per se, it only has 3 slots for _color _normal and _surface. There's nothing wrong with the tool. I'll do some testing to see if I can add them in via the fpe.

Preben has not allowed for emissive on export yet but you can manually add the emissive material and edit the .fpe as i did here.

EM1

mav3r1ck198-1 commented 8 hours ago

Thanks synchro. Ive asked Preben over on discord if it's possible as well

DBird-1994 commented 8 hours ago

How are they set up? -through the importer like every other model, or assign through your modeling program Can their emissive strength be adjusted so we have control over how bright they are? -yes, see above answer Do they cast light onto nearby objects? - no Are they reactive to bloom? - yes Do we currently have any control over them via commands that can be added to the gunspec? -no

Kraven3D commented 8 hours ago

@synchromesh62, thanks for this. Going to start making use of it immediately. These sort of things really should be added to the guide, though I understand it's probably hard for it to be kept up with since MAX keeps getting updated with new features. I'm sure there are other things that are possible in MAX already that I don't even know about for this same reason.

(Going to leave this request open because animated texture support would still be very beneficial for use on weapons.)

synchromesh62 commented 8 hours ago

@synchromesh62, thanks for this. Going to start making use of it immediately. These sort of things really should be added to the guide, though I understand it's probably hard for it to be kept up with since MAX keeps getting updated with new features. I'm sure there are other things that are possible in MAX already that I don't even know about for this same reason.

(Going to leave this request open because animated texture support would still be very beneficial for use on weapons.)

As a side note for the weapon maker i used this process just to clarify how i got all the settings
I imported the weapon first and setup the emissive on Import like any other model. I then used that .dbo as the model in Melee Weapon Maker I then edited the weapons .fpe copying the emissive settings from the imported .fpe .. and added the emissive material to the gun folder. Hope that helps.