Everything works the same as before but I just came across a problem with dark shader - the exe fails the moment it hits the line Render Dynamic Cube Map. I get the same result under U6.4 thru U6.8 - if I assign a camera number that isn`t the temp camera or an existing camera.
Quote: "Problem signature:
Problem Event Name: APPCRASH
Application Name: temp.exe
Application Version: 1.0.0.0
Application Timestamp: 47eb87d2
Fault Module Name: DBProCameraDebug.dll
Fault Module Version: 1.0.0.0
Fault Module Timestamp: 48b96716
Exception Code: c0000005
Exception Offset: 00003ca3
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 2057
Additional Information 1: fd00
Additional Information 2: ea6f5fe8924aaa756324d57f87834160
Additional Information 3: fd00
Additional Information 4: ea6f5fe8924aaa756324d57f87834160"
Will not fail if that line is rem`d out - but obviously no shader visible
Edit Doh! Download removed - was part of DS(..and I just mentioned doing this to someone else!)
Snippet instead
rem Initialise
sync on
sync rate 0
rem Load model and shader effect
load object "cube.dbo",1
autocam off
load effect "Colored Glass.dbs",1,1
set object effect 1,1
rem Make background image camera
make camera 1 : color backdrop 1,rgb(0,0,128)
set camera to image 1,1,screen width(),screen height()
texture object 1,0,1
rem Make environment reflection cube map
Make Dynamic Cube Map 1,128
Apply Cube Map To Object 1,1,1
do
rem Position camera to main camera location
position camera 1,camera position x(0),camera position y(0),camera position z(0)
rotate camera 1,camera angle x(0),camera angle y(0),camera angle z(0)
hide object 1
rem Update reflection texture
Render Dynamic Cube Map 1,-1,0,0,0
rem Update background texture
sync mask %010 : fastsync
show object 1
rem Draw main camera
sync mask %001 : sync
loop