Jump to content


Photo

Change tiling when creating skins


5 replies to this topic

#1 Fieldmedic

Fieldmedic

    Advanced Member

  • Member
  • PipPipPip
  • 893 posts

Posted 06 April 2017 - 10:08 AM

Hello

 

I'm fiddling with modules and try to change the skins on my interior pieces. When I change a texture I use the 'old texture - new texture' method but is there any way to manipulate the stretch of the textures when creating different skins?

 

These are some of the skin defs and these are working perfectly because all of the wallpaper textures are aligned similarily and are the same size so there is no seam (they all align perfectly when I change skins). But how do I do if I want to, for example tile/scale a texture differently? Is it possible without going into some model software and create a speciffic UVmap?

 

Skin file

Spoiler



#2 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 12003 posts

Posted 06 April 2017 - 12:05 PM

I'm not aware of a way to do this, but would love to have it. Searching for scale-matched textures is a bit of a bother.

#3 Fieldmedic

Fieldmedic

    Advanced Member

  • Member
  • PipPipPip
  • 893 posts

Posted 06 April 2017 - 12:18 PM

One way could be to create a surface INSIDE the model with a certain texture that you stretch as you see fit, then change it to a nodraw-texture and keep the stretch. Then you create a skin file that changes the stretched nodraw-texture to the one you want. And then change the 'regular' texture to a nodraw-texture...It feels a bit haxxor though...

 

Example

 

Spoiler


#4 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8139 posts

Posted 06 April 2017 - 12:20 PM

You might be able to get close to your desired output by fiddling with scale, shear and translate (etc) keywords in an override material.

 

https://modwiki.xnet..._stage_keyword)

 

https://modwiki.xnet..._stage_keyword)

 

https://modwiki.xnet..._stage_keyword)

 

https://modwiki.xnet..._stage_keyword)

 

https://modwiki.xnet..._stage_keyword)

 

 

https://modwiki.xnet...ywords_(Doom_3)


Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)

#5 Fieldmedic

Fieldmedic

    Advanced Member

  • Member
  • PipPipPip
  • 893 posts

Posted 06 April 2017 - 12:27 PM

Don't know if that is applicable in a skin file though...



#6 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8139 posts

Posted 06 April 2017 - 12:32 PM

Right, the skin file points to the material so you'd need to hunt down the root material then make an override material or custom material.

 

textures/common/nodraw textures/darkmod/wood/panels/panel_decorative_frame


  • teh_saccade likes this
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users