Author Topic: substitutable textures  (Read 5750 times)

0 Members and 1 Guest are viewing this topic.

Offline tomcat

  • Dark Lord of Truespace
  • 28
dooh ...the simple way to put it is ..We want to have skinable models:)
Truespace is the path of the Dark Side
-----------------------------------------------
Dark Truespace Master Tomcat

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Bobboau. When you refer to the "texture index on the model". What exactly do you mean? It doesn't sound like something which would be easy to obtain or keep track of. Would a straight text search and replace not work better?

+alternate_texture:
old_texture, new_texture

ala (at ship class data read time):

for all textures {
for all old textures {
if (texture = old texture) texture = new texture
}
}

What are the difficulties involved with this?
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Alright. Tomcat has told me over ICQ that we want SKINS. He also mentioned that if I say SKINS people will understand what I'm talking about. Pardon me for my ignorance. I don't know what I'd do without Tomcat. Probably get on with my life without worrying about frickin' SEMANTICS.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline Fury

  • The Curmudgeon
  • 213
Hey IP, don't forget what general Lefcourt said to Londo "In the Beginning". ;) (about minbari warrior caste)

Hehehehehe...

Well anyway, idea is good. Let's wait what coders says. :)

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
I'm talking about the section of the pof data that holds the textures being used, every texture is geven a name and a number, once in game it only has the number wich is an index to another number wich is the texture number (another index, so it's an index to an index)

the thing is I don't think the name of the texture is held past the inital loading of the texture, and I already have it nearly set up to work this way, but if you know the name of the texture you want to change you also probly know it's texture number

so you give a texture number (the number in the model of the texture you want to change) and the name of the texture you want it to replace
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

  

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
In the same vein, this would probably allow cloaked ships to be implemented.  The cloak-ship sexp would cause every texture on the ship to be replaced with "invisible", and the decloak-ship sexp would restore the original textures. ;7

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
I'd rather have some sort of cool looking efect rather than just "POOF!" gone
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Yeah, me too.  But effects aside, the final effect will be the same.  We can work on the cloaking effect after we get the actual cloak working.  (Implementing the cloaking effect might be as easy as adding another shield .ani.)

Perhaps an alternative method would be to swap the ship class (and thus the POF) in-mission... e.g. from Pegasus to Pegasus-cloaked.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
I think it would look better and be easier if we just lowered the alpha level of the textures being rendered over the corse of a few seconds untill they were fully transparent, then just flag the ship not to be rendered
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Hmm.  I'm not familar with alphas and stuff, but that sounds a lot simpler.  If it works,  then :yes:.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
I have implemented transperency in textures quite a while ago, thugh this sort of thing is the only thing it would likely be good for
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
May I have your attention please...  This thread is now officially
HIJACKED!!

;)


But I have an idea...  Maybe Bobboau can make flags for shipmodels to have custom skins...  Kinda like the glowpoints, but make it look for fighter01-03a-alt1 or something, and a bitflag can determine which skinset is loaded??
Bunny stole my signature :(.

Sorry boobies.