Jump to content
The Dark Mod Forums

Is there an easy way to "fit" a texture in just one direction?


Recommended Posts

I have a very long wall, and I would like to "fit" one texture on it vertically, but then just have the texture repeat at that scale horizontally. Is there a way to "fit" in only one direction? If not, I would like this feature :)

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

You can use a pattern brush: build your wall as normal. Then build a separate brush, aligned properly with the wall and texture it appropriately (e.g. it would be 128 on a side or whatever dimensions you want, aligned 1x1). Now just copy that alignment to the wall (MMB followed by ctrl-alt-MMB), and you'll have 1xn alignment.

post-58-1241703014_thumb.jpg

Link to comment
Share on other sites

Or fit the texture 1 time vertically (any number Y times horizontally) and copy the scale value in the Surface Inspector from the vertical scale entry over the horizontal one.

Link to comment
Share on other sites

(would be nice to have it direct though)

Yeah, I know, but my DarkRadiant time is very limited right now. I'd like to do more algorithms like this with Python scripts, which can be developed in a much shorter time than C++ code, but the script support is not ready yet to create texture algorithms.

Link to comment
Share on other sites

FTR, I use the pattern brush technique all the time for aligning patches to brushes, so it's actually a very useful thing.

 

Ah, that DOES sound very useful, should go into some wiki pages for people to learn this good technique!

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

I have a very long wall, and I would like to "fit" one texture on it vertically, but then just have the texture repeat at that scale horizontally. Is there a way to "fit" in only one direction? If not, I would like this feature :)

 

I don't get what your asking really. But cant you just use the fit ratios? (When you fit the default it 1 and 1 change to 1 and 2 or w/e)

Link to comment
Share on other sites

but I don't know exactly how long the wall is or whatever. So maybe the wall is 12 tall but 328 or whatever long, I don't feel like doing the math to divide that, and have to adjust the wall length to be a multiple of 12, etc.

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...