It is currently Sat Dec 07, 2019 5:00 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Done] PB5.70LTSB2 Executable quits unexpectedly (3D)
PostPosted: Sun Oct 07, 2018 4:23 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Jun 11, 2003 9:33 pm
Posts: 4580
Location: Spa, relaxing and thinking, and learning...
Code:
RX.u=1024:RY.u=768
InitEngine3D()
InitSprite():InitKeyboard():InitMouse()
OpenWindow(0,0,0,RX,RY,"tip",#PB_Window_BorderLess|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0),0,0,RX,RY,0,0,0,#PB_Screen_WaitSynchronization)
Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Textures", #PB_3DArchive_FileSystem)
Parse3DScripts()
luz.i=CreateLight(#PB_Any,$EEEEEE,4,4,2,#PB_Light_Point)
camara.i=CreateCamera(#PB_Any,0,0,100,100)
MoveCamera(camara.i,0,0,3,#PB_Absolute)

Global bolamaterial.i=CreateMaterial(#PB_Any,TextureID(LoadTexture(#PB_Any,"soil_wall.jpg")))
Global bolamalla.i=CreateSphere(#PB_Any,0.05,25,10)
Global bola.i=CreateEntity(#PB_Any,MeshID(bolamalla.i),MaterialID(bolamaterial.i),-1,0,0)
WorldGravity(0.0)
CreateEntityBody(bola,#PB_Entity_SphereBody,1.0,0.1,0.1):SetEntityAttribute(bola,#PB_Entity_LinearSleeping,0.0):SetEntityAttribute(bola,#PB_Entity_AngularSleeping,0.0)

Repeat
  WindowEvent()
  ExamineKeyboard()
  If KeyboardReleased(#PB_Key_F3)
    EntityVelocity(bola,0,0,0)
    MoveEntity(bola,-1,0,0,#PB_Absolute)
    RotateEntity(bola,0.0,0.0,0.0,#PB_Absolute)
  ElseIf KeyboardReleased(#PB_Key_F5)
    ApplyEntityImpulse(bola.i,0.16,0,0,0,0,0)
  EndIf
  RenderWorld()
  FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)


Run it and push F5 repeatedly and then F3, then again F5 repeteadly...
Program crashes and quits, with and without debugger.

With PB5.46LTS no problem at all.

_________________
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70LTSB2] Executable quits unexpectedly (3D)
PostPosted: Fri Jun 07, 2019 12:22 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Jun 11, 2003 9:33 pm
Posts: 4580
Location: Spa, relaxing and thinking, and learning...
Looks like it is fixed in PB5.70LTS final :)

_________________
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye