Author Topic: Glow Maps and Debris Chunks  (Read 3366 times)

0 Members and 1 Guest are viewing this topic.

Offline Rampage

  • Son Of Rampage
  • 211
  • Urogynaecologist
Glow Maps and Debris Chunks
Greetings from the Inferno Team.

We are not sure if this matter has been discussed, but would it be possible for debris chunks created post ship destruction not render glow maps?  We currently have a mission in development where a capital ship w/ glow maps disabled is destroyed and then have glow maps on again on its debris chunks.  Let us know if this can be done.

Rampage
INFTeam

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: Glow Maps and Debris Chunks
In case it isn't apparent: it'd have to be optional.

 

Offline Nighteyes

  • 211
Re: Glow Maps and Debris Chunks
you know, its pretty easy to give the debris a separate debris map that consists of the original texture with burn marks on it, this way you can decide if to even have a glow map for it

 

Offline Rampage

  • Son Of Rampage
  • 211
  • Urogynaecologist
Re: Glow Maps and Debris Chunks
you know, its pretty easy to give the debris a separate debris map that consists of the original texture with burn marks on it, this way you can decide if to even have a glow map for it

True.  Although it has been standard practice to UVmap capital ships and give their debris their own textures, we still tilemap most of our capital ships to save time.

R

 
Re: Glow Maps and Debris Chunks
In case it isn't apparent: it'd have to be optional.

As I understand it, the ship had glowmaps disabled by SEXP - so it would just be a matter of not switching them back on on destruction.

 

Offline Rampage

  • Son Of Rampage
  • 211
  • Urogynaecologist
Re: Glow Maps and Debris Chunks
As I understand it, the ship had glowmaps disabled by SEXP - so it would just be a matter of not switching them back on on destruction.

It automatically switches back on when the debris chunks form.

R

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Glow Maps and Debris Chunks
I don't think there is a good solution to how this would work.  There are a lot of ships that have separate debris maps with glows (some animated).  Since there is no way to specify what map(s) to disable glows on disabling them all might work for some but not for others.  Even making it optional just leaves the problem for half the people. 

The easiest solution I can think of here is texture replacement.  Have you tried replacing the -glow texture with something like nothing.dds (assuming you have one) instead of using the sexp? 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: Glow Maps and Debris Chunks
The easiest solution I can think of here is texture replacement.  Have you tried replacing the -glow texture with something like nothing.dds (assuming you have one) instead of using the sexp?

Nope, the effects of texture replace don't extend to debris.

 
Re: Glow Maps and Debris Chunks
As I understand it, the ship had glowmaps disabled by SEXP - so it would just be a matter of not switching them back on on destruction.

It automatically switches back on when the debris chunks form.

Exactly, that's what I meant - the code would need to be adapted to remember the disable-glowmaps across destruction, instead of resetting it.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Glow Maps and Debris Chunks
And what do you do if you want your ship glow maps disabled but not your debris ones?  See this issue?

Now the issue with texture replacement not carrying over to debris sounds like a bug (one that I believe is reported but not 100% on that). 

Of course what really needs done is fixing all the texture replacement bugs and allowing for it to be done via sexp.  Then instead of globally disabling glow maps you could disable the specific maps you want by setting alternate textures. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Glow Maps and Debris Chunks
what about making a copy of the model reskinning the debris without glowmaps?
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Glow Maps and Debris Chunks
Waste of a ship slot just for one mission.  That is what texture replacement is for. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Glow Maps and Debris Chunks
Would it be possible to have some special texture controls within the ship's table file?

$Texture Modifications:
+LOD: Debris
+Texture: hull-texture-01
+Glow Disable: YES
The Trivial Psychic Strikes Again!

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Glow Maps and Debris Chunks
yeah coding, testing and debugging an extra feature just to do that is much less wasteful
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Glow Maps and Debris Chunks
An extra feature could be used by other mods that would also want the effect. An extra ship class is an ugly hack with it's own set of problems.