collapse

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Bumpmapping VtMB and general stuff...  (Read 11330 times)

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #15 on: January 30, 2017, 05:52:08 PM »
Cuz you know I'm gonna script this.

Think I'm gonna normalmap thousands of textures by hand? Yeah right.

Psycho-A's batch files utilize VTFEdit by command line, so I can probably figure it out.

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #16 on: January 30, 2017, 06:13:03 PM »
Well shit.

It seems that whatever caused my initial issue with needing the transform line disappeared at some point, maybe from map recompile?

All those damn screenshots I posted were of a bumpmap that was WAY oversized for the texture it was on; everything looked WRONG!

So I'm gonna redo them.

Here's a bumpmap I generated in GIMP just now, just so you get an idea of what the bumpmapping REALLY looks like (lmao).

Original without anything:


A heavy unrealistic bump with GIMP (deliberately):


I don't know why I went through all those screenshots without noticing how bad they really looked. Sometimes you just don't have enough caffeine in your system...

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #17 on: January 30, 2017, 06:28:10 PM »
Hmm... I need to generate normalmaps that target the darkest parts of the picture and make those the dips. All these filters in VTF Edit I'm trying seem to isolate by color in some way, making cracks and crevices yes, but they won't match the texture. I wanna get this as close to perfect on my test case before I go mass-reproducing the same config on all textures...

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #18 on: January 30, 2017, 06:32:31 PM »
Yeah:


Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #19 on: January 30, 2017, 06:40:38 PM »
Verified, it lines up:


Here's sidewalk with nothing:

« Last Edit: January 30, 2017, 08:29:20 PM by Icicle »

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #20 on: January 30, 2017, 06:47:52 PM »
Yeah, I like how subtle 1.0 scale is, and I don't think I want to go any lower than that.

Now to finish by figuring out how to script this stuff

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #21 on: January 30, 2017, 06:52:42 PM »
Found the command line options on Nem's tools, the maker of VTFEdit...hmm hmm hmm...

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #22 on: January 30, 2017, 07:25:27 PM »
wtf is with this game...

it's suddenly stretching my normalmaps to doublesize again..............????????

what the heck

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #23 on: January 30, 2017, 07:59:35 PM »
so first, I use a "$bumptransform" "center .5 .5 scale 2 2 rotate 0 translate 0 0" and it works fine

then it stops working fine, I guess after a compile?
and when I take it out it's ok.

then it stops working fine again?
and I have to go the other direction with the value to 2 2 instead of .25 .25...........
...........????????? anyway back to what I was doing before crazy bs interrupted me

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #24 on: January 30, 2017, 08:15:26 PM »
oh LOL ?!@@#
now they're the right size but misaligned to the textures heeheehee so much fun:D

the center value has to be doubled too from .5 .5 to 1 1
OR, halved to .25 .25, guess I'll find out after I recompile wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

NO WAIT AAAH it's the translate field it has to be adjusted...center woulda screwed it

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #25 on: January 30, 2017, 08:30:15 PM »
Ok so anyway, I tweaked the settings again, and now I get this:

Not bumped (original):


Bumped:


It's subtle, but effective. It's like another "Sharpen" on the landscape but better. It adds tiny amounts of shading, and makes the features really "pop" without crazy garbage everywhere. We have a winner !!!

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #26 on: January 30, 2017, 08:34:39 PM »
Here's another set with the scale doubled:

Not bumped:


Bumped:


It really brings out the detail of the double-size/enhanced textures!

I like my landscapes extra crispy. So I'm using this one, don't need more than this.

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #27 on: January 30, 2017, 08:53:19 PM »
wow VTFCmd was written by a big moron

didn't put lots of details on the arguments/params for his utility

didn't make it flexible so it croaks on all kinds of little tiny problems that most programs handle easily

as usual this is like pulling teeth, grr. i'll find out how to do this, I bet psycho-a's .bat files will help

Here's the Valve page on VTFCmd, so f**king helpful!

VTF Lib docs only talks about using the Lib, not the goddamn VTFCmd! WOW genius abounds



This shit is all the clues he gives you to use the utility, it's missing like everything?
What are all the flag names? Half of them don't work no matter how I spell them. "Normal" does, what about the rest? No mention of what's included, what's excluded, what's necessary, what is not..................

Chokes on a .tga file, chokes on output directory saying it can't write the file, even though I'm running command line as Admin....

The input and output file parts are weird and sometimes suck up the rest of the line, making them invalid filenames, even though I've tried putting them in quotes.

I'd like to slap this guy upside his melon head....
« Last Edit: January 30, 2017, 09:03:56 PM by Icicle »

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #28 on: January 30, 2017, 09:11:06 PM »
OK THANK GOD

VTFEdit has a little "Convert Folder" option tucked away in its menus...

Maybe I won't have to use this command line pos....

Offline Icicle

  • Methuselah
  • ****
  • Posts: 461
  • Reputation: +19/-3
Re: Bumpmapping Models vs World Textures
« Reply #29 on: January 30, 2017, 09:13:13 PM »
YESSSSSSSSSSS IT WORKSSSSSSSSSS

This is gonna be so easy then.

Select all textures in a folder -> Convert to TGA

VTFEdit -> convert folder

Copy normal files back into texture folder

Powershell script I'll write -> hunt through .VMTs and add the $bumpmap and $bumpmaptransform lines

RECOMPILE MAP AND DONNNNE

this'll take a while

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal