Hi! I'm having this weird problem whilst using Evolved's flashlight fx. So, I have set up my cameras and settings like so:
/Setup
#include "movement.dba"
#include "assets.dba"
#include "dynamic.dba"
gosub _splashscreen
AttenuationMode = 1
sync on
sync rate 30
Draw to front
Backdrop on
color backdrop 0
Set camera range 1,3000
Autocam off
set text font "Gypsy Curse"
set text size 50
randomize timer ()
position camera 0 , 10 , 0
set camera range 1,100000
set camera fov 65
automatic camera collision 0 , 1 , 0 , 0, and my plane (ground) like this:
//Map
map = 1000
make object plane map , 5000 , 5000
load image "images\grass.jpg" , map
xrotate object map , -90
position object map , 0 , 0 , 0
texture object map , map
scale object texture map , 8 , 8
load image "images\spotlight.png",10000
load effect "FX\FlashLight.fx",1,0
set object effect map,1
texture object map,2,10000. Some extra code which might be helpful is this (which is in the do/loop for the flashlight to work):
if KEYSTATE(33)=1 and NoPressF=0 and Light=0 then Light=1:NoPressF=1
if KEYSTATE(33)=1 and NoPressF=0 and Light=1 then Light=0:NoPressF=1
if Light=0 then Brightness#=Brightness#-0.1
if Light=1 then Brightness#=Brightness#+0.1
if Brightness#>1.0 then Brightness#=1.0
if Brightness#<0.0 then Brightness#=0.0
set effect constant float 1,"BrightNess",Brightness#
if KEYSTATE(33)=0 then NoPressF=0
`Move Flash Light to camera pos / Rotate cubic light
if Brightness#>0.0
set vector4 1,camera position x()-10,camera position y()-10,camera position z()-10,0
set effect constant vector 1,"LightPosition",1
angX#=curveangle(camera angle x(),angX#,4)
angY#=curveangle(camera angle Y(),angY#,4)
rotate x matrix4 3,wrapvalue(angX#)/57.3
rotate y matrix4 4,wrapvalue(angY#)/57.3
multiply matrix4 3,3,4
set vector3 2,0,0,1
transform normals vector3 2,2,3
set vector3 5,0,0,0
set vector3 6,x vector3(2),y vector3(2),z vector3(2)
set vector3 7,0,1,0
build lookat lhmatrix4 3,5,6,7
build fov lhmatrix4 4,1,1,1,5000
multiply matrix4 3,3,4
set effect constant matrix 1,"LightProjMatrix",3
endif.
Then when I run this level, I get the following result...

Why am I getting this light-brown colour?
All help is appreciated

Thanks in advance!