Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,546 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Terrain Problem #166990
11/12/07 04:43
11/12/07 04:43
Joined: Aug 2002
Posts: 673
Las Cruces, NM
JimFox Offline OP
User
JimFox  Offline OP
User

Joined: Aug 2002
Posts: 673
Las Cruces, NM
Hello All,
I am running an older version: Game Studio Commercial 6.41.4

I have a demo game with separate levels that I am combining into one game.
The problem is this: Some of the levels have terrain. I built the terrain with a texture plus a detail map. When the levels are run separately, the detail texture tiles nicely. But when I combine the levels into the big game with a different script file, the detail textures vanish. Somehow I must have a line of code that is turning off the detail texture. Strangely, it is turned off whether I use the native code in the MDL7 file or whether I use a shader. The result is the same -- no detail map.

I wondered if the script was adjusting the detail_map variable, but I don't see that it ever does anything with this variable.

Can you shed some light as to how I may have inadvertantly turned off detail mapping in my code?? Thanks for any help you might be able to give.

Sincerely,


Jim
Re: Terrain Problem [Re: JimFox] #166991
11/12/07 08:52
11/12/07 08:52
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
It might help better if you could post your code...


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Terrain Problem [Re: MrCode] #166992
11/12/07 09:53
11/12/07 09:53
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Check out your Main and see if "var detail_size = whatever;" is still there.

Re: Terrain Problem [Re: Nems] #166993
11/12/07 15:20
11/12/07 15:20
Joined: Aug 2002
Posts: 673
Las Cruces, NM
JimFox Offline OP
User
JimFox  Offline OP
User

Joined: Aug 2002
Posts: 673
Las Cruces, NM
Thanks for the thought. I could not find where I changed the variable. But I decided to reset the detail_size variable to 4 (the default) in the level change code. That did fix the problem. So you put me on the right track.
Much appreciated.

To MrCode: Thanks to you for trying to help, also. Unfortunately, the code runs to nearly 6,000 lines and there are 33 include files, with about a thousand lines each. Posting the code would not be practical.......

Last edited by JimFox; 11/12/07 15:22.

Jim

Moderated by  HeelX, rvL_eXile 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1