Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/05/26 10:06
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, TipmyPip), 3,998 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 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