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.

Newcomers DBPro Corner / i need help uploading images

Author
Message
awsumman4
15
Years of Service
User Offline
Joined: 4th Jan 2009
Location: PWNAGE GAMES HQ
Posted: 4th Jan 2009 22:58
i can't figure out how to upload images let me know what i did wrong print \"happy new year!!!!!!!!\"
wait key

sync on
sync rate 0

color backdrop rgb (0,0,0)

make object sphere 1,100,40, 40
load image \"earth.bmp\", 1
texture object 1, 1

set ambient light 100
color ambient light rgb(255,255,255)
position camera 0, 20, -140

do
yrotate object 1, object angle y(1) -0.02
sync
loop

print "i'm awesome"
waitkey
Phantom 2590
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Earth...
Posted: 5th Jan 2009 03:29 Edited at: 5th Jan 2009 03:35
Is the project file saved to the same folder as the image?

It's good to keep all your media and project in a folder. And you can put the media in a sub folder such as Media. So you can have a project folder called My Project and inside that folder you save you .dbpro and .dba file and you can create a Media folder inside the My Project folder. Like so

>My Project(folder)
..>Media(folder)
....>earth.bmp
..>Earth Project.dbpro
..>Earth Project.dba

Then when you go to load an image in your project you use for example load image "Media/earth.bmp", 1

I was therefore I can be.
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 6th Jan 2009 03:56
In your code this part


change it two


you've accidently put slashes in there that might be the problem.

If not you should check the directory like phantom said.

life is short but so am i
Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 6th Jan 2009 04:14
Thx zilch, beat me to it, i was just aboot to tell him :p

awsumman4
15
Years of Service
User Offline
Joined: 4th Jan 2009
Location: PWNAGE GAMES HQ
Posted: 7th Jan 2009 00:31
thanks i'll try it

print "i'm awesome"
waitkey
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 7th Jan 2009 11:13
Nice, I see you're using the Earth spinning tutorial. If so, check that you actually do have the media image file named "earth.bmp" and that it is saved in the same folder as your project and included it in by using the Media tab and adding it.

How do i load a image
15
Years of Service
User Offline
Joined: 10th Jan 2009
Location:
Posted: 10th Jan 2009 13:49
Okay im having another problem ...
here is what im doing.

load image football.bmp,1
paste image football.bmp
wait key

im wondering if thats right ?
im saving the picture in :
C:\Programmer\The Game Creators\Dark Basic Professional Trial\Projects\footballs

footballs is my project name .. but when i start says
"variable 'football' does not exist at line 1"

can u help me ??

I need help to load a image !
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Jan 2009 14:05
load image football.bmp,1
paste image football.bmp


Should be:

load image "football.bmp",1
paste image 1,Position_x, Position_y


How do i load a image
15
Years of Service
User Offline
Joined: 10th Jan 2009
Location:
Posted: 10th Jan 2009 18:29
.. thx it worked and .. WOW u answered Really fast ,
thx 2

I need help to load a image !

Login to post a reply

Server time is: 2024-11-25 12:40:53
Your offset time is: 2024-11-25 12:40:53