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.

Dark GDK / relative and absolute path

Author
Message
zappi
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 21st Nov 2010 14:51
an example for relative and absolute path??

i've not understand how to write path for image /3d object
zappi
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 21st Nov 2010 18:39
uuuuuuuu any answer??
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 21st Nov 2010 19:12 Edited at: 21st Nov 2010 19:13
Going forward: Media2D is in project folder(where main.cpp is).

Going back, then forward: Media2D is back one folder.


zappi
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 21st Nov 2010 19:19
thank you very mach matty you resolved my problem !!!
zappi
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 21st Nov 2010 20:09
hmmmmm when i texture my sphere(dbMakeObjectSphere) it is completely black!
zappi
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 21st Nov 2010 20:22
resolved i've write wrong path
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 22nd Nov 2010 16:02
It's better to fix the CWD to begin with, using dbSetDir( ".." ); or similar. Though the best way is to change the working directory of the application when it's launched from VS, by going to your project properties: Configuration Properties -> Debugging -> Working Directory, and set that to .. or whatever.

Quote: "dbLoadImage("Media2D//Image1.png", 1);"


Those should be single forward slashes, you only need to escape backslashes because backlash is the escape character.

so: directory/file.ext == directory\\file.ext.

Login to post a reply

Server time is: 2024-11-19 16:44:52
Your offset time is: 2024-11-19 16:44:52