Make a folder on the desktop called BoxHouse.
Google or find one of your OWN textures for our house. Just need one for example purposes
I used a simple brick texture.
Browse to your 3D World Studio Folder. C:/ program files/ 3d world studio/materials/
Once in materials, right click and make your own folder. I call mine 'My Textures'
Ensure you put your texture in there, that you got from the web or your own collection.
Later on you can add hundreds, thousands of textures in this folder. Or have multiple folders for different objects.
With the texture in our 3D World studio folder, we are ready!
Open 3d World Studio
Once opened on the right, object category should be 'solids'. Object set to 'box'.
Now make a box in the 'top view'. Any size you want. Your box should still be highlighted red. This means the whole model/mesh is selected. On the right side, you will see the texture, on the right of it it has apply, browse, replace. Select Browse. Once you select browse the texture folders will load to the left. With your model selected go to 'my textures' click the brick texture we downloaded. Now X out the window, select apply.
Our texture is there..
Now go to FILE>EXPORT> File name will be boxhouse 'Save as Type' click the arrow and select 'Microsoft DirectX file (*x)'
BEFORE clickin save, navigate to the desktop, and look for boxhouse and double click on it.
Should be an empty folder.
Click Save.
You may now exit 3DWStudio.
If you look on the desktop you will see our boxhouse folder. Looking inside you should see our boxhouse.x and our texture.
Now for the fun part!
Open up DarkBASIC Pro.
Go to file >new project
Project Name 'BoxHouse'
Specify a folder if you want. Or just click the folder icon, and put it in our boxhouse folder, as I'm doing. ( You may have a
differnt set up)
So Ensure Specify a folder is checked, and click the folder icon, and do above. =o)
Press 'ok' and our new project is loaded with rem statements at the top. YAY!
Now the easy and fun part. Loading our 3DWS mesh/model + texture into DarkBASIC.
Note: Placement, camera angles, width, height, is all up to you. I show you how to get from 3DWorld Studio to DarkBASIC.
That's about all. =o)
In DarkBASIC on the bottom right, click 'media'. Now at the top right click 'add'.
Now a small box which says 'Select media file to include:' shows up, now click the folder icon.
Ensure files of type is changed to 3D Files.
Find our BoxHouse folder, and click on boxhouse.x, this will load our model into the project, once we have selected 'ok' and
ensured the check box marked "copy the media file(s) into current project directory?' is selected. Click ok.
Now do the same thing going to media > add > click folder icon > This time 2D files is auto selected and that's good. Now browse
to our boxhouse, and click on the bricks texture.
Click it, and select open, and ensure copy media files to project folder is selected.
Click ok.
Our model, and its texture are now ready to go !
Type this into DarkBASIC Pro.
` LOAD MODEL, SET X,Y (Horizontal, Vertical Positions)
LOAD OBJECT "boxhouse.x", 1 ` your mesh and it's mesh #
POSITION OBJECT 1, 0 , 0 , 0
XROTATE OBJECT 1, 0 ` rotate your mesh on the 'x' axis
YROTATE OBJECT 1, 40 ` rotate your mesh on the 'y' axis
SET OBJECT SPEED 1, 6000 ` animate your mesh
LOOP OBJECT 1
` ENSURE CAMERA IS POINTED AT THE MESH
CY = OBJECT SIZE Y(1)/2
POSITION CAMERA 800, cy, -500
point camera -100, cy, 360
wait key
That's all to get your model into DarkBASIC. Change the positions, and camera pointer to get different results.
This is not a fly through, so you cannot at the time of this writing 'fly' around your model.
But this does in fact take it from 3DWS to DarkBASIC Pro. Hope this helps!
rem allow user create game with one click
rem create graphics, sound, scripts, models, with one click
rem slap user in face if game choice is mmo