MoveCamera in SkyBox ?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

Hi !
With this code i can see the (ground) texture in my SkyBox and look around with the mouse. But why is the Camera NOT moving ?

MFG
WolfgangS

Code: Select all

If InitEngine3D()=0 Or InitSprite()=0 Or InitMouse()=0 Or InitKeyboard()=0
  MessageRequester("","InitIrgendwas Fehler",0):End:EndIf

If OpenScreen(800,600,32,"test")=0
  MessageRequester("","OpenScreen",0):End:EndIf

  Add3DArchive("E:\@Projekte\test3d_1\meinzip.zip",#PB_3DArchive_Zip)
  
If SkyBox("weihnachtsmann_man_in_red.jpg")=0
  MessageRequester("","SkyBox error",0):End:EndIf
 
  CreateCamera(0, 0, 0, 100, 100)
  RotateCamera(0,45,-45,0)

Repeat

  If ExamineMouse()
    mousex.f=-MouseDeltaX()/10
    mousey.f=-MouseDeltaY()/10
  EndIf
  
  MoveCamera(0,0.1,0.1,0.1)
  RotateCamera(0,mousex,mousey,0)

  RenderWorld()
  FlipBuffers()
  sleep_(1)
  
  ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
End
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

A sky box is like a sky, you can't reach it :). Put a mesh or something in it to see.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kale.

he he...

--Kale

Getting used to PureBasic and falling in Love! :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.
... :)
he he...
Sorry i´m asking funny questions in the beginner forum ´cause the help is still like crap*. :) :) :)

MFG
WolfgangS


* Crap compared to the "OnlineHilfe" for BB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

It's not a problem, you can ask as many questions as you want...

Fred - AlphaSND
Post Reply