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 Occlusion fail to load image

Author
Message
Fane
14
Years of Service
User Offline
Joined: 9th May 2012
Location:
Posted: 15th Apr 2015 23:30
Hello everybody,
as soon as I include the occlusion.dba my programm fail to load an image.
Without occlusion there is no problem
someone know this issue?

System: Win 8.1 64 / Core i5 (3,9GHz), GeForce 760 GTX 192 - Bit Dx 11 (Driver 335.23) / 8GB Ram
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 15th Apr 2015 23:55
Which image? One you add or what? What is the error message say?, or add an image of the message here...

The more you can inform the better we can help...

Fane
14
Years of Service
User Offline
Joined: 9th May 2012
Location:
Posted: 16th Apr 2015 00:14
It is a normal .png image which I load with



everything works fine if I not using Dark Occlusion but if I use it then I recieve the following error message

"Runtime Error 506 - Could not load image at line 842
CWD - ....my path blabla"

System: Win 8.1 64 / Core i5 (3,9GHz), GeForce 760 GTX 192 - Bit Dx 11 (Driver 335.23) / 8GB Ram
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 16th Apr 2015 00:19
Quote: ".pmg"

simple typo error
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 16th Apr 2015 00:19
Quote: "but if I use it "


How?

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 16th Apr 2015 00:20
LOL

Fane
14
Years of Service
User Offline
Joined: 9th May 2012
Location:
Posted: 16th Apr 2015 00:23
I mean .png
in my code it is .png of course otherwise I could not load it even without occ

System: Win 8.1 64 / Core i5 (3,9GHz), GeForce 760 GTX 192 - Bit Dx 11 (Driver 335.23) / 8GB Ram
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 16th Apr 2015 00:26 Edited at: 16th Apr 2015 00:26
So you only #INCLUDE the DOcc file and it fails or?

James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 16th Apr 2015 00:32 Edited at: 16th Apr 2015 00:33
Lol great timing Mr V
I don't have Dark Occlusion so can't be of any more use than the uselessness that I have been so far - other than to suggest that if you used the #include command then maybe you have set the directory to one the .dba file is in rather than the .png file. If thats the case then either use relative addresses when referencing files or use the IDE's include method rather than the code method. Failing that I'm out - might I suggest if the code isn't a huge number of lines then post the lot as it will enable others to maybe help you quicker

Edit I really should refresh before posting!
Fane
14
Years of Service
User Offline
Joined: 9th May 2012
Location:
Posted: 16th Apr 2015 01:02
Okay so this is my main.dba




And this is where I load my world.



System: Win 8.1 64 / Core i5 (3,9GHz), GeForce 760 GTX 192 - Bit Dx 11 (Driver 335.23) / 8GB Ram
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 16th Apr 2015 01:15
Quote: "load mesh "platformA.x", 20
load image "PlatformAB.png", 20"


Is the texture not part of the model?

Fane
14
Years of Service
User Offline
Joined: 9th May 2012
Location:
Posted: 16th Apr 2015 09:55
Oh I have always thought I must set an image.
I try to load a mesh and make an object without loading the image and its work

Later this day I will try it with occ but even when its work there is still the question why it didn`t load. Maybe I have to put all data in only one folder no subfolder or things like that.

System: Win 8.1 64 / Core i5 (3,9GHz), GeForce 760 GTX 192 - Bit Dx 11 (Driver 335.23) / 8GB Ram
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 16th Apr 2015 13:33
Get rid of set dir and try using relative folders ".\media\model.X" or "media\model.X" when loading things...

James H mentioned this already mind you

Fane
14
Years of Service
User Offline
Joined: 9th May 2012
Location:
Posted: 17th Apr 2015 00:28
okay after take away the set dir part and put occ in the same directionary it works

thanks for help guys

System: Win 8.1 64 / Core i5 (3,9GHz), GeForce 760 GTX 192 - Bit Dx 11 (Driver 335.23) / 8GB Ram

Login to post a reply

Server time is: 2026-07-05 11:51:38
Your offset time is: 2026-07-05 11:51:38