Hello!
When I load the universe.dbo file into a standard DBPro program, and set the Cull to 1 so it should NOT render polygons that it cannot see, it does.
Now, not changing anything in the code except to point to a different DBO file, say AI.dbo, it works fine.
Is this a bug or my misundertanding? I'm hoping it's my misunderstanding.
` Advanced Terrain System - Example 1
` sky textures from - SkyMatter
` heightmap created by - David Smith ( infiniteloop@optushome.com.au )
` terrain base texture - generated from Advanced Terrain System Plus
` demo by - TGC
` set up display and camera
sync on
backdrop on
autocam off
set camera range 0.5, 30000
` movement
g_fSpeed# = 0.05
g_fTurn# = 0.3
`DBO FPSC Universe
load object "C:\Program Files\The Game Creators\FPS Creator\MyGames\scifigame\Files\levelbank\testlevel\universe.dbo", 200
`DBO FPSC AI Character
`load object "C:\Program Files\The Game Creators\FPS Creator\MyGames\scifigame\Files\entitybank\scifi\characters\AI.dbo",200
` Need to be in wireframe mode to "visually" see the effects
SET OBJECT WIREFRAME 200, 1
` 1 NOT to render backfacing polys and 0 to render all polys
SET OBJECT CULL 200, 1
` main program loop
do
` handle user input and show some stats
gosub userInput
gosub information
` final screen update
sync
loop
userInput:
` simple mouse and keyboard movement
` move around with arrow keys
control camera using arrowkeys 0, g_fSpeed#, g_fTurn#
` store old camera angle
OldCamAngleY# = CameraAngleY#
OldCamAngleX# = CameraAngleX#
` store new camera angle
CameraAngleY# = wrapvalue ( CameraAngleY# + mousemovex ( ) * 0.4 )
CameraAngleX# = wrapvalue ( CameraAngleX# + mousemovey ( ) * 0.4 )
` rotate camera
yrotate camera curveangle ( CameraAngleY#, OldCamAngleY#, 24 )
xrotate camera curveangle ( CameraAngleX#, OldCamAngleX#, 24 )
` speed up movement
if inkey$ ( ) = "+"
if g_fSpeed# < 1000
g_fSpeed# = g_fSpeed# + 0.01
endif
endif
` slow down movement
if inkey$ ( ) = "-"
if g_fSpeed# > 0.002
g_fSpeed# = g_fSpeed# - 0.001
endif
endif
return
information:
` show some information
` start printing at top of screen
set cursor 0, 0
` show frame rate
print "fps = " + str$ ( screen fps ( ) )
print ""
` current camera position
print ""
print "x = " + str$ ( camera position x ( ) )
print "y = " + str$ ( camera position y ( ) )
print "z = " + str$ ( camera position z ( ) )
print ""
` finally the polygon count
print "polygon count = " + str$ ( statistic ( 1 ) )
print ""
return
-This...is my boomstick!