Edit: New problem. Fixed the last one.
Object_Add() - Removes the textures for some reason
Object_Add(Index) ` THIS REMOVES THE TEXTURES
Here's a screenshot:
---------------------------------------------------------------------
I can't seem to get the objects to show up for some reason they have disappeared. I have no idea why cuz I used the same code from the example.
Here is the code I use:
#include "Include/Common.dba"
#include "Include/Adv Lighting.dba"
BiasRes=1280
Sw#=screen width()
res#=((Sw#/(BiasRes*2))*2)
if res#<1 then res#=1
AdvLightingX=((screen width()/res#)/2)*2
AdvLightingY=((screen height()/res#)/2)*2
AdvancedLighting_SetUp(AdvLightingX,AdvLightingY,6,512)
`Set camera, Fog and Ambient
Set_Camera(1,5000,80,1.6)
Set_Fog(100,110,120,5000,2)
Set_Ambient(64,64,64,1.0)
Ambient_SetUp("Media/Ambient.dds",0,0)
` Load a bunch of objects here
For Index = 1 To ObjectIndex
If Object Exist(Index) = 1
Object_Add(Index)
Object_Set_Dynamic(Index)
EndIf
Next Index
Do
AdvancedLighting_Update()
Sync Mask 2^0
Sync
Loop
There is suppose to be an entire destroyed town!
Here is a screenshot:
Thanks in advance for your help,
PS. Sorry for all the posts I've been working in overdrive lately.
DigitalFury