I'm using DBC expanded on a 2.2 ghz CPU, 1.5 gigs RAM, Gforce 6600/128 mb machine.
Here's the situation. I'm using models that I made to remake an old boardgame. The models are made using Maya 5.0 and a .x format exporter plug-in. The gameboard is made of 12 pieces, each 6x6 tiles. This is because I scanned in the texture and had to do it in sections. The gameboardsegment model was oriented before export so that the playing surface is on the 0y coordinate. That way any models added will automatically rest upon the playing surface without any adjustments. The goblin model in the pix was made in 2 seperate pieces. The goblin and the base. These 2 pieces were "combined" in maya before export. This means that maya counts them as the same model, but their geometry is not physically connected. This way, the model can be animated while the base remains still.
Here's the problem. As the camera moves away from a model on the table, the model starts to disappear starting with the base and working up. It's a horribly ugly effect and therefore unacceptable.
Here's the code and a pic of the problem area up close/far away so you can see what's going on...
hide mouse
set display mode 1280,1024,32
set camera range 1,6000
sync on
gosub SetupBoard
gosub SetupCharacters
do
rem Control camera with arrow keys
if upkey()=1 then move camera 10.0
if downkey()=1 then move camera -10.0
if leftkey()=1 then angley#=wrapvalue(angley#-2.0)
if rightkey()=1 then angley#=wrapvalue(angley#+2.0)
if shiftkey()=1 then anglex#=wrapvalue(anglex#-2)
if controlkey()=1 then anglex#=wrapvalue(anglex#+2)
if spacekey()=1 then move camera 2.0
rem Update camera
rotate camera anglex#,angley#,0
rem print position data
set cursor 0,0
print "pos. x";camera position x()
print "pos. y";camera position y()
print "pos. z";camera position z()
print "ang. x";camera angle x()
print "ang. y";camera angle y()
print "ang. z";camera angle z()
sync
loop
rem End program
end
rem ***********************************************
rem GOSUB SETUP BOARD
rem ***********************************************
SetupBoard:
load image "QuestBoard_1_1.bmp",2
load object "QuestBoardSegment.x",2
texture object 2,2
load image "QuestBoard_2_1.bmp",3
load object "QuestBoardSegment.x",3
texture object 3,3
position object 3,480,0,0
load image "QuestBoard_3_1.bmp",4
load object "QuestBoardSegment.x",4
texture object 4,4
position object 4,960,0,0
load image "QuestBoard_4_1.bmp",11
load object "QuestBoardSegment.x",11
texture object 11,11
position object 11,1440,0,0
load image "QuestBoard_1_2.bmp",5
load object "QuestBoardSegment.x",5
texture object 5,5
position object 5,0,0,480
load image "QuestBoard_2_2.bmp",6
load object "QuestBoardSegment.x",6
texture object 6,6
position object 6,480,0,480
load image "QuestBoard_3_2.bmp",7
load object "QuestBoardSegment.x",7
texture object 7,7
position object 7,960,0,480
load image "QuestBoard_4_2.bmp",12
load object "QuestBoardSegment.x",12
texture object 12,12
position object 12,1440,0,480
load image "QuestBoard_1_3.bmp",8
load object "QuestBoardSegment.x",8
texture object 8,8
position object 8,0,0,960
load image "QuestBoard_2_3.bmp",9
load object "QuestBoardSegment.x",9
texture object 9,9
position object 9,480,0,960
load image "QuestBoard_3_3.bmp",10
load object "QuestBoardSegment.x",10
texture object 10,10
position object 10,960,0,960
load image "QuestBoard_4_3.bmp",13
load object "QuestBoardSegment.x",13
texture object 13,13
position object 13,1440,0,960
return
rem ***********************************************
rem GOSUB SETUP CHARACTERS
rem ***********************************************
SetupCharacters:
rem Setup Goblin
load image "Goblin_Shortsword_Texture.bmp",1
load object "Goblin_Shortsword.x",1
texture object 1,1
return
http://img375.imageshack.us/img375/9779/goblinrednerproblem02ea5.jpg
http://img441.imageshack.us/img441/4500/goblinrednerproblem01py2.jpg
What's going on? How can I fix this? Any help would be most appreciated!