Posted: 20th Jun 2007 0:24
when i execute this code i get that "im sorry but this program has to close, sorry for the inconveniance" message

any ideas, it was supposed to be a skybox


+ Code Snippet
Set Display Mode 800,600,32
Sync Rate 0 : Sync On
AutoCam Off : Hide Mouse
Position Camera 0,0,0,0
load bitmap "world\sky_map\skye_1.bmp",1
load bitmap "world\sky_map\skyw_1.bmp",2
load bitmap "world\sky_map\skyb_1.bmp",3
load bitmap "world\sky_map\skyt_1.bmp",4
load bitmap "world\sky_map\skys_1.bmp",5
load bitmap "world\sky_map\skyn_1.bmp",6

Make Object Cube 1,-100
` Cube Faces          E W D U S N
Set Cube Mapping On 1,1,2,3,4,5,6
` Main Loop
Do
 Control Camera Using ArrowKeys 0,0,1
 XRotate Camera WrapValue(MouseY())
 Sync
Loop


should i post this in the "Bugs" section of the forum?
Posted: 20th Jun 2007 0:25
well tell us more prehaps post a screen are your sure your graphics card can handle cube maps plus you dont need them for a sky box lol totally un necessary u just need a cube make of six plain then texture each on with the right image
Posted: 20th Jun 2007 0:27
ah ok, well my graphics card might need upgrading, got it about a year ago so it might not support it, its a NVidia Geforce 8800
Posted: 20th Jun 2007 0:29
are you taking the micky thats the best card in the world... lol well on a public type market erm well it might be your graphics drivers or direct x make sure these are updated but like i said you shouldnt use cube mapping for a sky box anyway have a search and you will find some examples of using a sky box without that command that will stop the crash even if you cant solve it also what about your version of dark basic?
Posted: 20th Jun 2007 0:34
ok, i'm gonna use plains, i didn't want to do this for the pure reason that some people will get very fine flickery white dots along the edges of the skybox, or at least i think they will

i remember that was a problem in GLQuake on the corners of some levels
Posted: 20th Jun 2007 1:12
can you use IF statements in functions?

its returning me errors?


dw, forgot the ( & )'s lol
Posted: 20th Jun 2007 1:42
Read the tutorials.
Posted: 20th Jun 2007 2:38
i do, but got a good knowledge of BASIC, just DBPro uses some slightly different syntax's
Posted: 20th Jun 2007 9:52
You see where you have these bitmaps being loaded:

load bitmap "worldsky_mapskye_1.bmp",1 etc etc

Well use:

load IMAGE "worldsky_mapskye_1.bmp",1,1

Cube mapping uses images, not bitmaps - images can be pasted, used as sprites, textured, and used in effects, bitmaps are really just for drawing onto, or cutting images out of.


BUT...


That's not a great method for making skyboxes, you should go grab a demo with a skybox object included - like the model itself has all the faces textured, it's just a case of loading the thing in and positioning it with the camera. There's also skyspheres, which have their own benefits that I won't scare you with right now.
Posted: 20th Jun 2007 10:50
You need to know which line is causing the crash. Put some debugging code in there to see exactly where the problem is.
Posted: 20th Jun 2007 11:27
Mr.Bat, he's trying to cube map using bitmaps

It would probably just silent crash because the images don't exist.
Posted: 20th Jun 2007 12:14
My bad
I would expect an "Image Does Not Exist", but obviously not!