Any suggestions.
[19:23:27] The Program was killed.
[19:23:30] Waiting for executable to start...
[19:23:30] Executable type: Windows - x86 (32bit, Unicode)
[19:23:30] Executable started.
[19:23:31] [ERROR] Pawn.pb (Line: 48)
[19:23:31] [ERROR] The specified #Material is not initialised.
Code: Select all
IncludePath "Includes I\"
XIncludeFile "Variables.pb"
XIncludeFile "Procedimientos.pb"
Define eventosWindow.i, initSistemaMotor3D.i
If InitSistemas()
idVetana.i = OpenWindow(#PB_Any, 0, 0, 800,600, tituloAPP.s, #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SetWindowColor(idVetana.i, RGB(0,0,0))
idLienzo.i = OpenWindowedScreen(WindowID(idVetana.i),0,0,800,600)
; - Objetos Escena.
Add3DArchive("Data\Sky.iso", #PB_3DArchive_Zip)
Add3DArchive("Data\Texturas.zip",#PB_3DArchive_Zip)
Add3DArchive("Data\M\", #PB_3DArchive_FileSystem)
Camara = CreateCamera(#PB_Any,0,0,100,100)
CameraLookAt(Camara,0,0,0)
RotateCamera(Camara,0,180,0,#PB_Absolute)
MoveCamera(Camara,0,1,0, #PB_Absolute)
;texturaCaja = LoadTexture(#PB_Any,"Caja.jpg")
;materialCaja.i = CreateMaterial(#PB_Any,TextureID(texturaCaja))
Parse3DScripts()
materialcaja = GetScriptMaterial(#PB_Any,"Color\Red")
Cubo = CreateCube(#PB_Any,1)
mallaCubo = CreateEntity(#PB_Any,MeshID(Cubo),MaterialID(materialCaja),0,0,5)
RotateEntity(mallaCubo,0,45,0, #PB_Absolute)
Luz.i = CreateLight(#PB_Any,RGB(255,255,255),0,0,0,#PB_Light_Directional )
RotateLight( Luz,-90,0,0,#PB_Absolute)
SkyBox("sky2.jpg")
; - Bucle Principales.
Repeat
eventosWindow = WindowEvent()
RenderWorld()
FlipBuffers()
ExamineKeyboard()
Until eventosWindow = #PB_Event_CloseWindow Or KeyboardReleased(#PB_Key_Escape)
EndIf