Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Dark Shader Code Crashes in DBPro

Author
Message
dugzilla
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location:
Posted: 22nd Dec 2011 16:38
I export all from the glass 2 example then run the code in DBPro with 76 update and the program crashes. If I comment out the line:
Render Dynamic Cube Map then it doesn't crashed but I don't get the effect I want. Here's the code:

rem Initialise
sync on
sync rate 0

rem Load model and shader effect
load object "Sphere.dbo",1
autocam off
load effect "Reflection Mapping.dbs",1,1
set object effect 1,1

rem Make environment reflection cube map
Make Dynamic Cube Map 1,128
Apply Cube Map To Object 1,1,1

do
hide object 1
rem Update reflection texture
Render Dynamic Cube Map 1,-1,0,0,0
show object 1

rem Draw main camera
sync mask %001 : sync
loop
`
end


It does work in the Dark Shader Program. That is glass2. Can anyone help me?

The event viewer says:

Fault bucket 2744361000, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: temp.exe
P2: 1.0.0.0
P3: 4d460aea
P4: DBProCameraDebug.dll
P5: 1.0.0.0
P6: 4bd76c45
P7: c0000005
P8: 00003cb3
P9:
P10:
dugzilla
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location:
Posted: 23rd Dec 2011 17:50
Could someone else verify that this code works or crashes for them please? It's a straight export out of dark shader program. Just use the glass2 shader. Thanks for help.
cyril
18
Years of Service
User Offline
Joined: 6th Aug 2007
Location: 7 miles away from big ben
Posted: 23rd Dec 2011 19:22
Sadly am using the DBP 7.61 update but I was able to export straight away without problems and compile the exported code.

Here's the code that was exported for me:



I have also attached the export folder as zip file
with the compiled EXE, if your can't compile the source code use the 7.61 update.

NOTE: The shader is removed from the zip file, you need to uncompress the folder and add it into the folder, before you run or compile the code or program. I did this because am unsure if I could include the shader without file security.
dugzilla
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location:
Posted: 23rd Dec 2011 19:42
Thanks for the help. I have the exact same code and DBpro update (7.61) and I still can't compile. Even when I try to compile your code(which is the same as mine) I get errors. must be a bad install on my part. I am running this under windows 7. Maybe I'll try xp and see if that helps. At least I have something to work with. Thanks.
cyril
18
Years of Service
User Offline
Joined: 6th Aug 2007
Location: 7 miles away from big ben
Posted: 23rd Dec 2011 21:21
Am running windows 7 32bit as well, so its not an OS compatibility problem.

Were you able to run the already compiled EXE I supplied?

I should have renamed it before I attached it, because in it's current state it can be overwritten if you attempt to recompile the code in the download.

If you can run the EXE then the Dark Shaders dll for the DBP compiler must be bad, try reinstalling Dark Shaders again.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 24th Dec 2011 21:38
If you already did not do this... here is my huge post on Win7

http://forum.thegamecreators.com/?m=forum_view&t=159609&b=2&msg=2159408#m2159408

hope it helps...

Login to post a reply

Server time is: 2026-07-09 20:54:24
Your offset time is: 2026-07-09 20:54:24