Is Extends and physx incompatible with each other? In the included code I have both the RTS skybox and a terrain for physx coded. Both codes run fine INDIVIDUALLY, But when I put the two together i get a silent crash without any type of error report. My guess is that, for the terrain code this line causes a conflict..... set terrain heightmap 11, "media\map.bmp". I came to this conclusion because before this problem i had to rename the texture values to a number higher than 10, so i am assuming that the extends skybox has the textures ID'd by default like the objects are.
the problem is now that it will get past the two textures that I renamed to (101 and 102) but crashes anyway because of this line ( set terrain heightmap 11, "media\map.bmp") I have tried loading and assigning an ID number to the map.bmp then adding the ID number in after set terrain heightmap but it comes back as invalid that way. So how do I fix this or can it be fixed?
Sync On : Sync Rate 60
Color Backdrop 0 : Clear Camera View 0
Set Camera Range 1 , 110000
phy start
phy set continuous cd 1
BackDrop Off
Fog On
CLOUDP = 5
Dim OBJ( 7 )
RTS Fog On
Backdrop On
RTS Setup Skybox "RTS_DesertMountain", 0
RTS Set Clock 3 , 0 , 0.1
RTS Set Wind Speed 0.0001, 0.00005
CLOUDS = RTS Get Loaded Object( 1 )
`Create the Terrain
` load base and detail texture
load image "media\texture.bmp", 101
load image "media\detail.tga", 102
make object terrain 11 ` create the terrain object
set terrain heightmap 11, "media\map.bmp" ` set the heightmap
set terrain scale 11, 12, 0.6, 12 ` set the scale
set terrain split 11, 8 ` split value by 16 * 16
set terrain tiling 11, 1 ` detail map tiling
set terrain light 11, 1, -0.25, 0, 1, 1, 0.78, 0.5 ` light - xdir, ydir, zdir, red, green, blue, intensity
set terrain texture 11, 101, 102 ` base and detail texture
build terrain 11 ` finally build the terrain
phy make rigid body static terrain 11
do
control camera using arrowkeys 0,1,1
RTS Update Skybox
update terrain
phy update
Sync
loop
RTS Clear Skybox