Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | chip programmers | 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