Jump to content

Blending textures of different sizes in Source


Recommended Posts

Posted

I can't remember if this was possible but I think I recall someone on the INS team doing this (or at least discussion of it; Bluestrike I'm looking your way :P).

Is it possible to blend two textures of different dimensions in Source (1024x1024 with --> 2048x1024) without having one texture stretch or shrink based on the size of the other?

Posted

The default? Without any extra parameters the textures will scale up or down depending on the order in the .vmt

I've screwed around a bunch before I posted, unless I'm just missing something? As far as I know the default is to scale. Which is what I want to avoid.

Posted

Hmm, after digging around I found this line

"$basetexturetransform2" "center .5 .5 scale 1 1 rotate 0 translate 0 0"

but it appears it only works with the shader type "WorldTwoTextureBlend" which appears to have been replaced by "WorldVertexTransition", and "$basetexturetransform2" seems to have no affect on it.

:(

Posted

but I think I recall someone on the INS team doing this

It was me. I couldn't get it to work properly using the $basetexturetransform command. It almost seemed like it would randomly decide if it wanted to work or not. I managed to get some to work but not others and didn't really spend the time trying to figure out what was wrong, so i just resized my textures instead.

Posted

Yeah, couldn't really go around that either on DM.

At this time, I'd just wait until we can learn more on the new blending system in Episode 2. Not sure the wiki has the info so far, but I remember in the Source Developers Conference '06 videos Robin Walker (think it was him) talking about it

Posted

Texture sizes should not matter, the problem is where rock and ground textures meet.

Usually you want to scale up the rock faces to look good, but that means the other texture in the blend texture also gets rescaled.

Bastetexturetransform(2) should be usefull to scale only one of the 2 textures in the blend but like mentioned its not working.

I put it on valve's bugzilla and it got assigned but its still a questionmark if they fix it and when :)

hmm Skybex it works for the shader "WorldTwoTextureBlend" ?

I should try using that for my displacements then and see if it works, but a nasty sideeffect of that os is that the alpha's are inversed ingame compared to how it looks in hammer.

  • Mapcore Supporters

    aphexjh       Badroenis       celery⭐      EGO DEATH ⭐      Freaky_Banana      FMPONE ⭐      Harry Godden      JimWood ⭐      JSadones      poLemin      Vaya

    Funds go towards hosting and license costs, Discord server boosts, and more. If you'd like to donate, check out our Patreon announcement.

×
×
  • Create New...