It is currently Thu Sep 09, 2010 5:29 pm




Post new topic Reply to topic  [ 14 posts ] 
 Textures Issue 
Author Message
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Textures Issue
Working on my new map, I decided to take on the challenge of making a texture(s) with bump maps. I did what I thought was correct, apparently it wasn't. Look below to see why. If I did something wrong in the .vmt file, please let me know.
Code:
"LightmappedGeneric"
{
   "$basetexture" "jb_stelco/stelco_gravel"
   "$surfaceprop" "gravel"
   "$bumpmap" "jb_stelco/stelco_gravelnorm"
   "$normalmapalphaenvmapmask" 1
}


Attachments:
jb_stelco0001.jpg
jb_stelco0001.jpg [ 322.25 KiB | Viewed 112 times ]

_________________
Quote:
Altaire:And the fox scores! *audience cheering*
Thu Jul 22, 2010 3:10 pm
Profile JinxMontalgo's Steam Profile
Jailbreak Team
User avatar

Joined: Wed May 23, 2007 3:36 pm
Posts: 3504
Location: West Yorkshire, UK
Favorite Team: Dinosaurs
Post Re: Textures Issue
Are you wanting the texture to be slightly reflective? If you don't then remove "$normalmapalphaenvmapmask" 1 from the vmt as it's not necessary. Otherwise if you do then change your vmt to this ...

Code:
"LightmappedGeneric"
{
   "$basetexture" "jb_stelco/stelco_gravel"
   "$surfaceprop" "gravel"
   "$bumpmap" "jb_stelco/stelco_gravelnorm"
   "$envmap" "env_cubemap"
   "$normalmapalphaenvmapmask" 1
}


Be aware though that the amount of reflection is dependent on the actual bump map texture, as it uses the alpha channel of the bumpmap as the spec mask (more alpha = less reflection).

If neither of these suggestions cure your problem, could it be the bump texture that's broken?

_________________
NULL Entity ERROR. Entity Func_IZaNaGI can not be found.
------------------------------------------------------------------------
Twitter? | Facebook? | Portfolio? | WTF?


Thu Jul 22, 2010 3:36 pm
Profile izanagi's Steam Profile
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Re: Textures Issue
The code got rid of the crazy shadows but now there are no shadows or any reflection. I rebuilt the normal map and still, nothin'. :|

_________________
Quote:
Altaire:And the fox scores! *audience cheering*


Thu Jul 22, 2010 6:23 pm
Profile JinxMontalgo's Steam Profile
Official Jailbreak Sexy Man
User avatar

Joined: Sat Apr 05, 2008 3:37 pm
Posts: 2267
Location: Over There
Favorite Team: Robots
Post Re: Textures Issue
*squints*

That's... odd.

Two things off the top of my head. Is it an ssbumpmap? If so, add $ssbump 1 to the vmt. If you have no idea what an ssbump is, you probably haven't made one, so don't worry.

Second thing, check the vtf flags. You want Trilinear and Normal Map checked. Remember to save before closing down VTFEdit; due to an annoying glitch/oversight/whatever, it won't ask you to save before quitting, it'll just straight-out close. (As it transpires, vtf format does not matter, so compress the bastards down)

_________________
"You know, next time I do something for you and don't even get a thanks for it, I'm going to rip your ovaries out through your mouth and feed them to Captain Murasa Motherfucking Minamitsu--who happens to be standing right there--you ungrateful prick!" - Nazrin

“THERE’S A THIRD WAY,” he roared. “LASER EYES!” - Shinji Ikari


Thu Jul 22, 2010 11:29 pm
Profile Guessy's Steam Profile
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Re: Textures Issue
Unfortunately, that didn't work either. It reverted to the image above. WHAT AM I DOING WRONG!?!?!? :x

_________________
Quote:
Altaire:And the fox scores! *audience cheering*


Fri Jul 23, 2010 12:09 am
Profile JinxMontalgo's Steam Profile
First Ever Player
User avatar

Joined: Sun Feb 18, 2007 5:35 pm
Posts: 3939
Location: Poland
Favorite Team: Neutral
Post Re: Textures Issue
Perphaps try making another texture and see if the problem persists to other textures.

You can also perphaps remove the normal map and see from there.

_________________
Image

Don your bathrobes and prance around the forest.
I'd rather dip my jewels in honey and go bear watching. - Shawn

Guessmyname wrote:
DAMN IT ALT, NOW I CAN'T UNSEE IT EITHER!


Fri Jul 23, 2010 3:20 am
Profile
Official Jailbreak Sexy Man
User avatar

Joined: Sat Apr 05, 2008 3:37 pm
Posts: 2267
Location: Over There
Favorite Team: Robots
Post Re: Textures Issue
Could you post up the vtf files somewhere? If I could get a look at them, I might find what's going wrong.

_________________
"You know, next time I do something for you and don't even get a thanks for it, I'm going to rip your ovaries out through your mouth and feed them to Captain Murasa Motherfucking Minamitsu--who happens to be standing right there--you ungrateful prick!" - Nazrin

“THERE’S A THIRD WAY,” he roared. “LASER EYES!” - Shinji Ikari


Fri Jul 23, 2010 11:28 am
Profile Guessy's Steam Profile
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Re: Textures Issue
There it is, it includes the base texture, the vmt and 2 normal maps. Maybe you can find the problem.


Attachments:
textures.zip [296.74 KiB]
Downloaded 4 times

_________________
Quote:
Altaire:And the fox scores! *audience cheering*
Fri Jul 23, 2010 3:30 pm
Profile JinxMontalgo's Steam Profile
Official Jailbreak Sexy Man
User avatar

Joined: Sat Apr 05, 2008 3:37 pm
Posts: 2267
Location: Over There
Favorite Team: Robots
Post Re: Textures Issue
Think I got it. In the diffuse texture vtf (ie stelco_gravel.vtf), uncheck No Mipmap and No Level Of Detail. That might fix it.

EDIT: Your vmt also has a typo (no '$' in front of ssbump):

Quote:
"LightmappedGeneric"
{
"$basetexture" "jb_stelco/stelco_gravel"
"$surfaceprop" "gravel"
"$bumpmap" "jb_stelco/stelco_gravelnorm"
"$envmap" "env_cubemap"
"ssbump" 1
}


I've looked at your normalmaps; the ssbump tag is unneeded. They also have no alpha channels for using as envmapmask, so I'd remove the env_cubemap reflections too. So in other words, should look along the lines of this:

Quote:
"LightmappedGeneric"
{
"$basetexture" "jb_stelco/stelco_gravel"
"$surfaceprop" "gravel"
"$bumpmap" "jb_stelco/stelco_gravelnorm"
}

_________________
"You know, next time I do something for you and don't even get a thanks for it, I'm going to rip your ovaries out through your mouth and feed them to Captain Murasa Motherfucking Minamitsu--who happens to be standing right there--you ungrateful prick!" - Nazrin

“THERE’S A THIRD WAY,” he roared. “LASER EYES!” - Shinji Ikari


Fri Jul 23, 2010 4:43 pm
Profile Guessy's Steam Profile
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Re: Textures Issue
I got it! It was partially your solution. The texture lines you gave me solved part of it, but as it turned out I had to check No Mipmap and No Level of Detail as well as Trilinear and Normal map on the stelco_gravelnorm.vtf. Now there's reflection and shadow at the same time without error. :D

_________________
Quote:
Altaire:And the fox scores! *audience cheering*


Fri Jul 23, 2010 5:10 pm
Profile JinxMontalgo's Steam Profile
Official Jailbreak Sexy Man
User avatar

Joined: Sat Apr 05, 2008 3:37 pm
Posts: 2267
Location: Over There
Favorite Team: Robots
Post Re: Textures Issue
But... why do you want no LODs or mipmaps? They'll still be there, just disabled, so you're not making it smaller. LODs are for people on lower texture settings, mipmaps are for looking at things side-on (to prevent moire patterns occuring); you really should keep them where you can. Only exception is if the texture has writing on it you want to stay legible...

_________________
"You know, next time I do something for you and don't even get a thanks for it, I'm going to rip your ovaries out through your mouth and feed them to Captain Murasa Motherfucking Minamitsu--who happens to be standing right there--you ungrateful prick!" - Nazrin

“THERE’S A THIRD WAY,” he roared. “LASER EYES!” - Shinji Ikari


Fri Jul 23, 2010 5:19 pm
Profile Guessy's Steam Profile
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Re: Textures Issue
The point is, I got it working to a point where I liked it. Besides the other half of your solution didn't work, it made it worse.

_________________
Quote:
Altaire:And the fox scores! *audience cheering*


Fri Jul 23, 2010 5:55 pm
Profile JinxMontalgo's Steam Profile
Official Jailbreak Sexy Man
User avatar

Joined: Sat Apr 05, 2008 3:37 pm
Posts: 2267
Location: Over There
Favorite Team: Robots
Post Re: Textures Issue
Er... what the...

I just took another look at your vtfs. They don't have any mipmaps at all. No wonder it was going wrong when the engine tried to use them. What are you using to convert these?

And don't just discard LODs and Mips. You're screwing over anyone with lower texture settings, and inviting trouble when looking at the texture from strong angles.

_________________
"You know, next time I do something for you and don't even get a thanks for it, I'm going to rip your ovaries out through your mouth and feed them to Captain Murasa Motherfucking Minamitsu--who happens to be standing right there--you ungrateful prick!" - Nazrin

“THERE’S A THIRD WAY,” he roared. “LASER EYES!” - Shinji Ikari


Fri Jul 23, 2010 7:29 pm
Profile Guessy's Steam Profile
Fresh Fish
User avatar

Joined: Tue Jan 19, 2010 10:34 pm
Posts: 46
Location: Canada, eh
Favorite Team: Dinosaurs
Post Re: Textures Issue
I now redid the texture with Mips and modified it so that those two unnecessary flags aren't checked. I don't know if I did it right, but (for now) the game's not crashing and any freaky errors aren't appearing.

_________________
Quote:
Altaire:And the fox scores! *audience cheering*


Fri Jul 23, 2010 8:31 pm
Profile JinxMontalgo's Steam Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.