Forums Gallery Downloads LOGIN |REGISTER

Z-axis detail textures disappearing

Terrain, Weather and Environment Setup, Lighting and Time of Day Setup, Object Placement, etc.


 

Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Z-axis detail textures disappearing

Postby Jep » 30.07.2011, 01:31

I have a cliff texture that projects on x,y,z axis (so they dont stretch when the terrain is too steep). It works great up close, but for some reason as I move away from the texture, the texture on the z-axis (the default (floor) axis) disappears while the x and y textures remain visible from a great distance.

Is there a way to fix this? I've dug through the material editor for hours without luck.

So far the only work around I've found was increasing DetailLayersViewDistRation, but I'm not quite certain how much detail layers impact game performance. I can't imagine its a freebie, otherwise the function wouldn't exist.
Image
User avatar
Talvipakkanen
Executive Producer
Executive Producer
 
Posts: 4307
Member since: 16.06.2008, 22:11
Location: Oulu, Finland
Likes: 7

Re: Z-axis detail textures disappearing

Postby Talvipakkanen » 30.07.2011, 08:55

In SB2 adjusting the view distance of z-axis texture can be done with CVar "e_detail_materials_view_dist_z". Default value for it in SB2 is quite low compared to values for x and y axes. Assumably it's the same in SB3, but CVar is not available.
Zip-line release 2012-04-24 (for CE2 & CE3) · C1 mod project: A mod called Entry
Assets · Blender: Destroyable object tutorial for CryBlend

- currently lost in New Eden -
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 30.07.2011, 13:42

*scratches head* Great. Another limitation. I really did pick the perfect engine to get back into modding. :P

Hopefully some Crytek official might have a solution for us. I'm crossing my fingers. This is a pretty big deal, as minor as it might seem. It makes terrain-based levels a serious PITA.

I'll stick to an increased DetailLayersViewDistRatio for now and give it a run later on.
Image
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 01.08.2011, 20:44

DetailLayersViewDistRatio tends to have a pretty big impact on the framerate when viewing wide areas from a high vintage point. I've seen up to a 18 fps drop from the highest point of my level. This is with a radeon HD 5870 and an i7 780. I fear lesser systems will struggle big time. The issue is, I can't live with a lower DetailLayersViewDistRatio if there is no way to fix the z-axis' disappearance.

Oh crytek gods, let there be a solution! I promise I'll make this level awesome! ;) :P
Image
danielravennest
Junior Dev
Junior Dev
 
Posts: 124
Member since: 30.03.2010, 07:05
Likes: 0

Re: Z-axis detail textures disappearing

Postby danielravennest » 01.08.2011, 23:44

I see the following console variables, do they do what you need?

variable: e_TerrainDetailMaterialsViewDistXY
type: float
current: 2048
help: Max view distance of terrain XY materials

variable: e_TerrainDetailMaterialsViewDistZ
type: float
current: 128
help: Max view distance of terrain Z materials
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 02.08.2011, 03:48

Yes sir, that's exactly it!

How would I go about ensuring this is applied when people load my mod/level? I know how to apply it for myself via console / autoexec.cfg... but I want to make sure people who play my level get that effect too.


And while we're on the subject of cvar's... how does one find out what they are?
Image
User avatar
the_grim
Superstar Dolphin
Superstar Dolphin
 
Posts: 9884
Member since: 16.08.2004, 10:46
Location: Finland
Likes: 189

Re: Z-axis detail textures disappearing

Postby the_grim » 02.08.2011, 09:09

You can never be sure cvars are applied correctly in pure game mode... :unsure:
Jep wrote:And while we're on the subject of cvar's... how does one find out what they are?

Hover your mouse over the cvar value, and you will get a tooltip popup telling you what the cvar is. ;)
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 02.08.2011, 15:04

the_grim wrote:You can never be sure cvars are applied correctly in pure game mode... :unsure:


So there's no way to apply cvar values when people start the level?
Image
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 02.08.2011, 15:11

Oh son of a bitch, that damn e_TerrainDetailMaterialsViewDistZ cvar doesn't even work ingame, only in the editor. Its a mod and a single-player level. Why the hell are these things locked?! I'm really starting to dislike working with Crysis 2. :/ Great level design tools, but we're cut right off at the balls.

Is there no way to force these things in a mod? Are there any crytek devs who can comment on this, give us some info?
Image
Spify
Not my first Rodeo
Not my first Rodeo
 
Posts: 489
Member since: 20.07.2011, 10:22
Location: Frankfurt am Main
Likes: 5

Re: Z-axis detail textures disappearing

Postby Spify » 02.08.2011, 15:14

Not sure how much it helps you but I took note of this issue and I'll present it to the right people.
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 02.08.2011, 15:28

Here's a screenshot to show the jarring difference. The only other work around I found to this issue caused a whopping 10-15 fps drop, while this simple cvar caused no drops.

As you can tell from this screenshot, I might as well can this project if I can't find a solution to this problem.

Image
Image
User avatar
the_grim
Superstar Dolphin
Superstar Dolphin
 
Posts: 9884
Member since: 16.08.2004, 10:46
Location: Finland
Likes: 189

Re: Z-axis detail textures disappearing

Postby the_grim » 02.08.2011, 15:38

Apparently you can work around this by adding cvars into XML files that are loaded at the start of the game. Instructions here: viewtopic.php?p=817775#p817775 ;)
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 02.08.2011, 15:56

I'll keep trying but it doesn't seem to work with <e_TerrainDetailMaterialsViewDistZ value="2048" GAME="SP"/>
Image
User avatar
Talvipakkanen
Executive Producer
Executive Producer
 
Posts: 4307
Member since: 16.06.2008, 22:11
Location: Oulu, Finland
Likes: 7

Re: Z-axis detail textures disappearing

Postby Talvipakkanen » 02.08.2011, 16:09

Adding CVars in XML-files seems to be just another way of utilizing them. Restrictions are still in effect.
Last edited by Talvipakkanen on 02.08.2011, 16:15, edited 1 time in total.
Zip-line release 2012-04-24 (for CE2 & CE3) · C1 mod project: A mod called Entry
Assets · Blender: Destroyable object tutorial for CryBlend

- currently lost in New Eden -
Jep
Junior Dev
Junior Dev
 
Posts: 193
Member since: 19.06.2011, 16:55
Location: Quebec
Likes: 0

Re: Z-axis detail textures disappearing

Postby Jep » 02.08.2011, 16:13

I figured as much. This is NOT a good turn of events after a month of busting my ass on this thing.
Image


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community