1 registered members (vicknick),
1,316
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Switch for A7 to A8 Terrain Shader issue
#358997
02/14/11 21:18
02/14/11 21:18
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
Hello, Our team just switched from A7 to A8, and now our terrain shaders are acting up. In A7 they work fine, but in A8 over parts of the terrain, the shader basically shuts off and just shows Skin1. I searched in Bug list and didn't see anything that looked related to this issue. All of our terrains have over 64k vertices, so they all use terrain_chunk. Just mentioning that incase it is important for some reason. We are using our own terrain shader, but I have also tested our terrains using the terrain terraintex.fx and terraintex3.fx shaders and those shaders also cut out at same places in the levels in A8. I dunno what the change is between A7 to A8 that is causing the issue. All the other shaders that are not a terrain still work fine, so it is definitely terrain related. It seems like the normals, in position, maybe terrain chunks or something is causing the issue. Anyway, here is a video comparing doing the same movements over the same areas of terrain in A8 and A7 and the results. When the terrain is green it is just showing the terrain skin1 and skipping the terrain shader in that area. A8TerrainShaderIssues Video (2.5mb) Here is one more in A8 with different level. In A7 works fine. In A8 does this. Another example on different terrain (.6 mb) Thanks for help, Loco
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Switch for A7 to A8 Terrain Shader issue
[Re: TerraSame]
#359015
02/15/11 00:00
02/15/11 00:00
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
First, let my try to change the codec of the video files. Tried to get them reduced so no one would complain at size. Actally, we aren't using alpha channels. We do use 4 skins and 4 materials, but like I said, I tested the terrains with 3DGS standard terrain shaders with the same problem. It's obviously something to do with terrains switching from A7 to A8. I will try to put an exmaple together, although our game code is complex and dynamic, I will try to pull out a level and sample source for you to look at. I will try to change the codecs on the Videos also to show. Here is WMP versions of the movies: WMP Terrain Shader Issue from A7 to A8 WMP Another example, different map I will extract out a terrain you look at also, probably going to have to do that anway. Thanks, Loco
Last edited by Locoweed; 02/15/11 00:39. Reason: Added WMV videos, fixed second one.
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Switch for A7 to A8 Terrain Shader issue
[Re: jcl]
#359128
02/15/11 19:32
02/15/11 19:32
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
Ok, thanks JCL, I am testing to try to isolate what it could possibly be.
I will get back with you soon TerraSame. Trying to isolate all the level parts and code into a seperate fly around level to see if I can find the issue. I have a feeling that something changed in MtlFX.c or default.fx that is affecting something somewhere, but not sure yet. Maybe somekind of path issue, I dunno. It's supposed to be orangish actually.
It's weird how it works fine in A7 and not A8, another brain teaser I guess.
Later, Loco
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Switch for A7 to A8 Terrain Shader issue
[Re: Locoweed]
#359138
02/15/11 20:20
02/15/11 20:20
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
Alrighty, Good News!
I isolated what was causing the problem.
I changed: terrain_lod = 1; to terrain_lod = 0; // this fixed the issue
That solved the problem. Our game is quite large and is probably using a lot of memory or something and somehow that is causing the issue using terrain_lod = 1?
Anyway, I figured out what it was, so I can move on.
You might look into it though, like I said, the exact same code works in A7 and not A8, so something changed somewhere that effected it. I don't know whether it is a bug or not, but something has definitely changed from A7 to A8 with the terrain cache.
Later, Loco
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Switch for A7 to A8 Terrain Shader issue
[Re: TerraSame]
#359283
02/16/11 16:38
02/16/11 16:38
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
Yeah, I will keep playing with it as I move forward. At least it is not holding up production now. I might get an example to you later when I have time to look into it more.
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Switch for A7 to A8 Terrain Shader issue
[Re: Locoweed]
#407419
09/12/12 16:33
09/12/12 16:33
|
Joined: Aug 2012
Posts: 14
Aquilis
Newbie
|
Newbie
Joined: Aug 2012
Posts: 14
|
Sorry about the bump, but the same problem appears here... I decided to shift my project from A7 to A8 and the terraintex3.fx shader just doesn't work. The terrain just stays with its skin_1 (the RGB map). All the required skins (sand.tga. grass.tga ...) are in the game folder, but obviosly there is something that I miss. The terrain_lod is 0, so that's not the problem, I guess. Any ideas?
|
|
|
|