#How to Port This Texture?

124 messages · Page 1 of 1 (latest)

valid lintel
#

and the green face is an emission, which means it will always be the same shade of green regardless of lighting conditions.
the equivalent of this in Source is selfillum

slate kestrel
#

Aah right

#

My main issue is baking textures. I don't know what I need to bake and what I don't, and I generally just lack knowledge on what to do. There was one tutorial I found about porting a self-made model and texture to Source, and it was just a solid color material. It seems that anything more does not work with that proceedure

stiff turtle
#

I'd bake the noise onto the albedo to create a diffuse to use as $basetexture; you could also use a tiling version as a $detail. Use either $selfillum (uses alpha channel of $basetexture as mask) or $detailblendmode 5 (uses $detail as the glow itself) for the green glow

slate kestrel
#

What's albedo?

#

Also I'm sorry but I don't understand almost all of that

#

I'm very new to this

#

When you say "create a diffuse," are you referring to like the base color texture?

#

Cuz in Blender under the bake tab, for baking colors you pick the Diffuse option, right?

#

It seems that that's what you mean because you said I could use that as a base texture. So if that's what you mean, then I agree, I should do that

#

The problem is, I have no idea how to combine my noise texture with my base color, or my "diffuse."

#

I don't understand what you mean by "tiling version" and "$detail" and "uses alpha channel." $detail sounds like a parameter I would find in a VMT, but I don't know what it does. I know what alpha is, but I don't understand your use of it here
Also I don't know how to use selfillum

#

@stiff turtle

stiff turtle
#
  • albedo is an "image texture" with no AO baked in. Diffuse is the same, but with AO included. $basetexture is usually a diffuse.
  • I have no clue how to bake things in blender.
  • By tiling version, I mean to generate a version of your noise texture that tiles around the edges instead of being baked to the UVs like you have here.
  • $detail is a very versatile VMT parm that, by default, acts like the "overlay" blend mode in image editors like photoshop and gimp. $detailblendmode changes how it works. See https://developer.valvesoftware.com/wiki/$detail.
  • By default, $selfillum uses the alpha channel of $basetexture as a mask.
slate kestrel
#

What's AO?

stiff turtle
#

Ambient occlusion.

slate kestrel
#

Uuuh.. hold on I'll look up what that is

stiff turtle
#

Self-shadowing, basically.

slate kestrel
#

Oh okay

stiff turtle
#

which is basically what your noise texture is doing.

slate kestrel
#

It's self-shadowing?

stiff turtle
#

Sorta.

#

in a way

slate kestrel
#

How? Where?

stiff turtle
#

It's making it look like there's small bumps or something

#

Imo

slate kestrel
#

Those aren't shadows, those are just flat details on the surface

#

Noise

#

Okay, so you don't know how to bake textures in Blender. But do you know how I could make that green face a selfillum?

stiff turtle
#

yes

slate kestrel
#

I'll create a VTF

#

and copy the model

#

agh wait I gotta port the model from Blender first

#

Alright I ported it

#

@stiff turtle

#

Were you gonna help me make the green face selfillum?

slow ermine
slate kestrel
#

What does that mean?

#

And how do I make it self illuminated in game?

slow ermine
#

lemme get an exsample texture up to visualise what i mean

#

so this is the combine prison soldier form hl2s base texture

#

and heres the alpha channel of the texture only

#

the parts that are still showing will appear to glow in game

#

to enable this add $selfillum to the vmt

slate kestrel
#

But how do I even make this texture? I have the three textures. The base color, the surface detail, and what should be the selfillum

#

I have no idea how to bake them all into one texture. And even if I did, how do I make some parts of the texture glow and others not to glow?

#

I’m a complete beginner to making textures

slow ermine
#

theres a way to bake layer of a texture into a single one in blender iirc

#

base colour and surface detail can both be baked into the defuse/basetexture

#

then the emessive should be inserted into the textures alpha channel using external software

#

thats the geist anyways

#

a short cut can be to use $selfillummask to have emessive stay as its own image to make things way easyer

#

infact you already have all the images as seperate files so heres what you could do

#

il put together a sample vmt for you to fill in

#
//the shader, vertexlitgeneric is for models, lightmappedgeneric is for world textures.


// note: engine assumes we're already searching in the materials/ folder so you do not need to include it in the path
// use / instead of \ for paths aswell for consistancy with valves workflow
"$basetexture" "path/to/texture/here"
"$detail" "path/to/detail/here"
$selfillummask "path/to/emmisve/here"


"$selfillum" 1

here. just replace the paths

#

i hope this is what ur looking for

stiff turtle
#

ah, yeah, vertexlitgeneric can use a separate texture as a mask, unlike lightmappedgeneric

slate kestrel
# slow ermine base colour and surface detail can both be baked into the defuse/basetexture

I’m sorry that I’m getting frustrated, it’s just that trying to find solutions to this has been frustrating.
But that’s literally what I said. I already said that I need to do that. To bake them all into one texture. I said that. To you, even. How the hell do I do that is another issue, because I haven’t the slightest idea how. I tried figuring it out myself. I tried following tutorials. They either didn’t work or were too complex for me. I know I should bake it into one. But how??

#

Everything else you said I think I understand though

slate kestrel
#

Again, I’m sorry

#

Do you know how to bake all those into one texture?

slow ermine
#

with the method i gave above you dont need to

#

because honestly i dont know either

slate kestrel
#

But you didn’t give a method

#

You just said that the selfillum is handled by the alpha channel, and you suggested to bake the base color, noise texture, and the selfillum into one texture

slate kestrel
#

If this method works, I’ll still need to learn how to bake it all into one texture, just for the sake of organization and convenience

#

I could have sworn I tried this before and there was a fundamental thing stopping it from working, but maybe I just had the wrong idea. I’ll try again

slow ermine
slate kestrel
#

I made a VTF and a VMT of the surface detail texture

#

This is the VMT of the basetexture

#

"VertexlitGeneric"
{
"$basetexture" "models/handmade_models/test_models/testmodel_2"
"$surfaceprop" "Plastic"
"$detail" "models/handmade_models/test_models/testmodel_2_detail"
}

#

The VMT and VTF of the texture is called testmodel_2_detail

#

I also tried $bumpmap

#

It looks fine here

#

But this is how it looks like in game

slate kestrel
#

Wait..

#

I think I'm onto something here...

teal root
# slate kestrel

If the texture appears incorrect like this, then your model’s UV map is incorrect

#

You need to adjust it to properly fit the texture, then reexport the model

slate kestrel
#

It does fit the texture

#

I'll show you

#

But it's okay, I'm starting to learn how to bake it all into one texture instead of having multiple VMTs and VTFs for one model

#

There is still an issue though, so I'll post that here

#

So I've successfully ported the noise material and the base color onto one image texture

#

But as you can see in the UV, the surface details are barely visible

#

The detail is slightly visible in game, but still barely, like in the UV in Blender

#

Any idea how I would make it more visible? How I could increase the contrast? I realize this is a Blender question, but still, I'm sure it's okay so long as I don't create a new post thing about it

slate kestrel
#

I don't have that parameter in my VMT

stiff turtle
#

$detail will default to tiling 4x if $detailscale is absent

slate kestrel
#

It doesn't look like the size was the issue

slow ermine
#

the file we reference in the vmt for the basetexture and detail and such is the vtf

slow ermine
#

additive is adding the detail maps colour to the base texture

slate kestrel
#

What's detailblendmode? Is that a parameter in the VMT?

slow ermine
#

yes

#

i explained it above

slow ermine
#

check this page for the list of blend modes and thier limitations

slate kestrel
#

I did, but I don't understand anything

slow ermine
#

just play around with them till it looks right

#

in game you can use mat_reloadallmaterials to see your changes without restarting

slate kestrel
#

I don't know how to play around with this. I lack the knowledge to know what to even play around with and how

#

Like if you asked a baby to play around with a computer until they figure out how to open a new Hammer editor file

#

I don't mean to be blunt

#

But I dont see another way to say it

slow ermine
#

just put $detailblendmode #
with the # being a number into the vmt

#

and the page tells you what the numbers do

slate kestrel
#

Alright

#

I really can’t right now, I’m overwhelmed and tired from doing this for the past several hours

#

I’ll get back to it later

slow ermine
#

its fine take your time

slate kestrel
# slate kestrel

But there really isn’t any reason to play around with it because as I said here, I’ve already learned how to bake the noise texture onto the base color. Now I just need to figure out how to add contrast to the noise

slow ermine
#

alot of things are just trail and error