why cant i do that?

Blitz3D Forums/Blitz3D Programming/why cant i do that?

MR:Satanist(Posted 2004) [#1]
hi! i need a litel help
i cant get a house up on the game
the code is

house1=LoadMesh("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\models\house4.3ds")
PositionEntity 60,0,60

and it sas not enof partments....
:S


Rob Farley(Posted 2004) [#2]
positionentity house1,60,0,60


PetBom(Posted 2004) [#3]
I'd also suggest that you do not store your models in a folder on the desktop...

//PetBom


MR:Satanist(Posted 2004) [#4]
ok were to do then?


MR:Satanist(Posted 2004) [#5]
hmm dont work i want it on the terrian, but i places it self on the black screen :S


Diablo(Posted 2004) [#6]
you should put yor media in sub folders of were ever the source code is and then you can just do this:

house1=LoadMesh("models\house4.3ds")
PositionEntity house1, 60, 0, 60


Rob Farley(Posted 2004) [#7]
If you're looking for help you've really got to post up your code and possibly media for us to have any hope in hell of helping you.


MR:Satanist(Posted 2004) [#8]
but it still 9999999999999 meters from the grass i puted oute :S why?

and the hole code is

Graphics3D 800,600,16,0
SetBuffer BackBuffer()

camera=CreateCamera()
PositionEntity camera,64,2,64

;------------------------------meshes-----------------------------------------

;gun1
weapon1 = LoadMesh("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\models\P08LUGER.3DS,camera")





;house1
house1=LoadMesh("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\models\house4.3ds")
PositionEntity house1, 60, 0, 60






;------------------------------sounds-----------------------------------------
gun = LoadSound("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\sounds\shot001.wav")
reload = LoadSound("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\sounds\reload01.wav")








terrain=CreateTerrain(128)


grass_tex=LoadTexture( "C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\pictures\lexkunstrk.bmp" )
EntityTexture terrain,grass_tex

While Not KeyDown( 1 )
If KeyDown( 205 )= True Then TurnEntity camera,0,-20,0
If KeyDown( 203 )= True Then TurnEntity camera,0,20,0
If KeyDown( 208 )= True Then MoveEntity camera,0,0,-0.20
If KeyDown( 200 )= True Then MoveEntity camera,0,0,0.20

RenderWorld
Text 0,0,"Use cursor keys to move about the terrain"
Flip
Wend
End


Diablo(Posted 2004) [#9]
post *all* your code


MR:Satanist(Posted 2004) [#10]
that is all :P
yas has began fore 10 min ago


Damien Sturdy(Posted 2004) [#11]
uh oh..... communication problems as well

Dude, we need the program, and if possible, the media, basically, everything that you have that makes it run.


SoggyP(Posted 2004) [#12]
Greetings Puppies,

So we can steal it, adapt it and sell it as our own. Because we is all EVIL!!

Peace,

Jes


TomToad(Posted 2004) [#13]
Where is the local origin of the model? If you built the model at 999999,999999,999999 in your modeling program, then the model will be offset 999999,999999,999999 in the program. There should be some command to set origin, or set center of the model so 0,0,0 will be in the center of the object instead of 999999,999999,999999 units outside of it.


PowerPC603(Posted 2004) [#14]

;gun1
weapon1 = LoadMesh("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\models\P08LUGER.3DS,camera")



Should be:

;gun1
weapon1 = LoadMesh("C:\Documents and Settings\nicklas\Skrivbord\blitzbasic 3d\models\P08LUGER.3DS",camera)


Also try this:
Global camera=CreateCamera() 



RGR(Posted 2004) [#15]
;-


MR:Satanist(Posted 2004) [#16]
thx fore the tips!
got to go now!