Posted: 3rd Jul 2007 9:34
Tried and it wont load the 3D object. I'm off to bed. I'll have another look tomorrow.
Posted: 3rd Jul 2007 15:59
Hmm... that's odd. Maybe that's the standard from where the PC came from.. but the ones I listed are more US.
Posted: 3rd Jul 2007 17:18
I love the resolution. I show it off to people all the time and they're typically impressed.

I also use POV-Ray 3.6 for Windows to build various scenes... But that's something else.
Posted: 4th Jul 2007 20:24
Can anyone point me in the proper direction with animation and 3D object creation with Blender? A hands-on tutorial would be preferred.

Also, I've just purchased the Blender GameKit from their website as an e-book download. It's $9.54 US (8 Euros).

Thanks.
Posted: 7th Jul 2007 9:24
thats weird, the sample works perfectly on my machine. for some reason DBP sometimes get screwed up and many people have resolved errors by either updating, or completely reinstalling. or you could try remarking out different lines to single out the problem code.
Posted: 9th Jul 2007 18:47
Quick Note, RC:
I tried and retried this snippet and it wont run.

I keep getting an error in line 13: File cannot be found.

Here's the code, and the full pathname of the file!

+ Code Snippet
remstart

Revenent Chaos' "SkyBox" demo

remend

bmpFN as string
bmpNr as integer

bmpFN = "C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\RevChaos' Radar\pos_x"
bmpNr = 1

load object bmpFN, bmpNr
set object light bmpNr, 0
set object texture bmpNr, 3, 1


Am I doing something wrong? Have I typed something incorrectly in the pathname?
Please help.
Posted: 10th Jul 2007 10:02
I think the problem is with the
+ Code Snippet
bmpFN = "C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\RevChaos' Radar\pos_x"
bmpNr = 1

load object bmpFN, bmpNr
part. where you specify the path to the file, theres no actual name of the file at the end. it should be something like:
+ Code Snippet
bmpFN = "C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\RevChaos' Radar\pos_x\Skybox.x"
bmpNr = 1

load object bmpFN, bmpNr
or something.

Have you let DBpro create a .dbpro (project) file for the .dba file? if not, I've had trouble with finding files without one. Once you have a project file for your .dba file, allways open your work by clicking on the .dbpro file.

Also there is no need to write out the whole path as long as the skybox model is within the project's folder.
if you write out the whole path to the file, and someone else installs the finished product, they would have to install the program in the exact same place as your project is or it wouldn't run. so just put the model into a folder named whatever you like, for instance "SKY", and put that folder in the same folder as your .dbpro file. then when you load the file, write it like:
+ Code Snippet
Load object "SKY\skybox.x",1

or
+ Code Snippet
set dir "SKY"
load object "skybox.x",1
set dir ".."
Posted: 11th Jul 2007 20:24
There's no "pos_x.x"... There's only "pos_x.bmp".
There are no .x objects in the download sampler.

I used a SPHERE to place the .bmp, but it gives me a black screen.
Here's the code.
+ Code Snippet
function LoadWorldBox(Name as string, nr as integer)
   make object cube nr, 1
   load bitmap Name, nr
   set object light nr, 0
   set object texture nr, 3, 1
   scale object nr, 2000, 2000, 2000
endfunction


Have I done something wrong? How do I translate the SPHERE to the player's position?
Posted: 13th Jul 2007 22:14
I was talking about the demo that I posted. reguardless, the code you posted wont work for a few reasons.

1)in the line
+ Code Snippet
bmpFN = "C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\RevChaos' Radar\pos_x"
, you are just specifying a path to a folder. you say it is pos_x.bmp, then you need to write .bmp at the end or dbpro cant possibly know you want to open a file. all files have a file extension, otherwise, they're considered to be a folder.

2) in the line
+ Code Snippet
load object bmpFN, bmpNr
, assuming you added the file extension to problem #1, you are telling it to open a bitmap as an object. models have the file extensions .X, .3ds, .Dbo, .md2 and so on.

so you need to first change problem #1's line to something like this:
+ Code Snippet
bmpFN = "folder name\folder name\object filename.file-extension"
. Second you cant just use a dbpro primitive cube, because you can't texture the sides of the cube differently. Have you tried the demo I posted? that should explain every problem youv'e posted on the matter. just re-use the skybox2.x model and rename your textures that you want to use, to the names of the files in the demo.

Have I done something wrong? How do I translate the SPHERE to the player's position?
where in your last post's code does it mention any sphere? all I see is a cube. I need to know if you tried the demo I posted, not the sample TGC.
Posted: 14th Jul 2007 8:40
Yes, RC, I tried your 'skybox' demo. It wont work.
It gives me an error about not finding the file.