maplet into bltiz3d
Blitz3D Forums/Blitz3D Beginners Area/maplet into bltiz3d
| ||
Alright I am a totally clueless newbie on 3D the tutorial gives some starting point on 3d but there really isnt mention on how to take an output from maplet and load it into a 3D game. For example the example castle they have for maplet how would you load that into the 3D world in blitz and see it. Is it a mesh when its saved or what. Thanks, |
| ||
It`ll be saved as a .b3d file. To load in blitz you need to set the graphics mode, create a camera then use: castle=LoadMesh("castle.b3d") You may need to move the camera to see the castle - just play with the numbers :) |
| ||
I exported the castle from maplet as a b3d file after lightmapping in maplet but when I try to load it in blitz the the castle=LoadMesh("castle.b3d") it gives a memory error. Any Help ?? Thanks, |
| ||
make sure the filename is correct. Make sure it is really castle.b3d and not maybe caslte.b3d or maybe even castle without an extention. |
| ||
Ok the file name is correct and the demo version of quill3d I down loaded can load it so whay cant I get the following code to work in blitz3d Graphics3D 800,600 SetBuffer BackBuffer() camera=CreateCamera() CameraViewport camera,0,0,800,600 light=CreateLight() castle=LoadMesh( "castle.3bd" ) RotateEntity castle,0,90,0 While Not KeyHit(1) If KeyDown(200) Then MoveEntity camera,0,0,1 EndIf If KeyDown(208) Then MoveEntity camera,0,0,-1 EndIf If KeyDown(203) Then TurnEntity camera,0,1.0,0 EndIf If KeyDown(205) Then TurnEntity camera,0,-1.0,0 EndIf UpdateWorld RenderWorld Text 335,500,"Camera Movement" Flip Wend thanks |
| ||
ensure the following: 1) you have saved the bb file. 2) you have saved the B3D file in the same folder as the bb file. Resource paths are relative from the location of the application. If you run from the IDE without saving then the base path is actually the Blitz3D folder. |
| ||
Tried to specify directory and still didnt help and then moved file to same directory c:programs/blitz3d/castle.3bd\ Still get memory access violation but I can play all the 3d demos with the program Welcome to a new frustration I guess. |
| ||
the .3bd\ was just a typo her on the forum it isnt in my code. |
| ||
I haved tried castle.3bd and castle.3BD with no help and tried in root directory and directory that 3D is in ARG !!!! This this the way it is going to be for me .. |
| ||
ITs late I meant to type... B3D castle.B3D or castle.b3d still did not work in root or blitz directory. still ARG !! |
| ||
I found a .x file in one of the demo directories and moved it to my root and bolitz directories when I did a loadmesh of the .x file it loaded ok but why wont it load the .b3d file when it loads fine in quill3d ?? thanks going to bed for night and maybe rest of my pitiful life .. |
| ||
Okay -- I dont know what happened but after I was able to get the .x file to work the .b3d file has now loaded. Its time to quit for the night. thanks for the help and suggestions. |
| ||
the .b3d might not load because you may need to update blitz, it didnt work and i went crazy, and all i had to do was update it.... |
| ||
same for me..... |