Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,426 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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