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 Discussion / texturing

Author
Message
paulkay
17
Years of Service
User Offline
Joined: 11th Jul 2007
Location:
Posted: 21st Aug 2007 14:02
i am new to this and need to texture my matrx for my game. i chose the picture that i want, so what is the code for texturing my matrix? the picture is attached. And i have tried this before, but is says that it cant find the images. where should i save them so that it can find them?

Attachments

Login to view attachments
roddman
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location: Over There
Posted: 21st Aug 2007 16:11 Edited at: 21st Aug 2007 16:11
Quote: "so what is the code for texturing my matrix"


Prepare Matrix Texture

Quote: "where should i save them so that it can find them"


Try to save them in the same folder (directory) as your .dba file, you can also save them in a sub-directory of your current .dba file. For example if you wanted to keep all your files seperate i.e. sounds, bitmaps, models, etc. you could make a folder named bitmap and put the images inside. Then when you call the Get Image command you simply add "bitmap/texture.bmp" where "bitmap" is the folder name, that will also work, however keeping everything you need in the same folder as your .dba file is much simpler.

Use the included help files that came with DBC they have every command you need with all the correct syntax included. Hope that helps.

Cory
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 21st Aug 2007 20:14
when you try to load a file into your program, DB look for that file in the directory you have supplied. The default current directory is the same folder as your program, you can add a filepath as Roddman suggested (this could even be "C:\program files\dark basic software\dark basic\myprojects\your program.dba")
You can also change the current directory using CD.
For example: CD ".." would set the directory to the parent of your project folder. CD "bitmap" would set the current directory to your bitmaps folder.
The benefit of this is that you can load lots of files from the same folder without having to type the path over and over again.
It will also come in useful when you get onto file access commands

Your signature has been erased by a mod because it was rubbish.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK

Login to post a reply

Server time is: 2025-05-30 13:29:21
Your offset time is: 2025-05-30 13:29:21