[4.60] Static Geometry

Advanced game related topics
G-Rom
User
User
Posts: 45
Joined: Sat Mar 19, 2011 3:49 pm
Contact:

Re: [4.60] Static Geometry

Post by G-Rom »

the bug is already fixed , i don't make the final package , I don't know when the fix will be included.
User avatar
[blendman]
Enthusiast
Enthusiast
Posts: 297
Joined: Thu Apr 07, 2011 1:14 pm
Location: 3 arks
Contact:

Re: [4.60] Static Geometry

Post by [blendman] »

DarkDragon wrote: I've modified the mesh example for you:

Code: Select all

;
; ------------------------------------------------------------
;
;   PureBasic - Mesh (Skeleton Animation)
;
;    (c) 2002 - Fantaisie Software
;
; ------------------------------------------------------------
;
; Modified by DarkDragon for TomS

Define.f KeyX, KeyY, MouseX, MouseY

#RobotTexture = 0
#Robot        = 0
  
If InitEngine3D()

  Add3DArchive(#PB_Compiler_Home + "Examples/Sources/Data", #PB_3DArchive_FileSystem)
  
  InitSprite()
  InitKeyboard()
  InitMouse()
  
  If OpenWindow(0, #PB_Ignore, #PB_Ignore, 800, 600, "Test", #PB_Window_TitleBar)
    If OpenWindowedScreen(WindowID(0), 0, 0, 800, 600, 1, 0, 0)
      
      CreateCube(#Robot, 10.0)
      LoadTexture(#RobotTexture, "clouds.jpg")
      
      CreateMaterial(0, TextureID(#RobotTexture))
      
      CreateEntity(#Robot, MeshID(#Robot), MaterialID(0))
      
      CreateLight(0, RGB(0,0,255), 100.0, 50.0, 100.0)
      LightSpecularColor(0, RGB(255, 0, 0))
      
      CreateCamera(0, 0, 0, 100, 100)
      CameraLocate(0, 50, 100, 100)
      CameraLookAt(0, 0, 0, 0)
        
      Repeat
        WindowEvent()
        
        ClearScreen(RGB(0, 0, 0))
              
        If ExamineKeyboard()
        
          If KeyboardPushed(#PB_Key_Left)
            KeyX = -1
          ElseIf KeyboardPushed(#PB_Key_Right)
            KeyX = 1
          Else
            KeyX = 0
          EndIf
          
          If KeyboardPushed(#PB_Key_Up)
            KeyY = -1
          ElseIf KeyboardPushed(#PB_Key_Down)
            KeyY = 1
          Else
            KeyY = 0
          EndIf
          
          If KeyboardPushed(#PB_Key_PageUp)
            RollZ = 3
          Else
            RollZ = 0
          EndIf
          
          If KeyboardPushed(#PB_Key_Add)
            Frame.f+0.005
          EndIf
          
        EndIf
        
        If ExamineMouse()
          MouseX = -MouseDeltaX()/10 
          MouseY = -MouseDeltaY()/10
        EndIf
        
        RotateEntity(#Robot, 0.0, 1.0, 0.0, #PB_Relative)
        
        RotateCamera(0, MouseY, MouseX, RollZ, #PB_Relative)
        MoveCamera  (0, KeyX, 0, KeyY)
        
        RenderWorld()
        FlipBuffers()
      Until KeyboardPushed(#PB_Key_Escape) Or Quit = 1
    EndIf
  EndIf
    
Else
  MessageRequester("Error", "The 3D Engine can't be initialized",0)
EndIf
  
End
Hi,

the rotatecamera() and rotateEntity() don't work with example , on my PC (xp, geforce2 9800 GTX+)
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: [4.60] Static Geometry

Post by Comtois »

[blendman] wrote:the rotatecamera() and rotateEntity() don't work with example , on my PC (xp, geforce2 9800 GTX+)
see here

http://www.purebasic.fr/english/viewtop ... 29&start=1
Please correct my english
http://purebasic.developpez.com/
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: [4.60] Static Geometry

Post by PMV »

G-Rom wrote:Thk , Fixed.
Still getting this error in 4.60 Beta 3 :cry:

x86:
16:37:22: OGRE EXCEPTION(4:ItemIdentityException): StaticGeometry with name 'STG_Ä34475216' already exists! in SceneManager::createStaticGeometry at OgreSceneManager.cpp (line 6266)
x64:
16:42:33: OGRE EXCEPTION(4:ItemIdentityException): StaticGeometry with name 'STG_' already exists! in SceneManager::createStaticGeometry at OgreSceneManager.cpp (line 6266)
Fred, are the 3d-fixes made by G-Rom now really included, so
i should check it? Or should we wait for Beta 4? :)
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: [4.60] Static Geometry

Post by Comtois »

PMV wrote:Fred, are the 3d-fixes made by G-Rom now really included, so
i should check it? Or should we wait for Beta 4? :)
This bug-fix made by G-Rom is included in beta 3, and MoveNode() work fine now :)

http://www.purebasic.fr/english/viewtop ... 13&t=46039
Please correct my english
http://purebasic.developpez.com/
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: [4.60] Static Geometry

Post by PMV »

Code: Select all

MapGeometry\Static = CreateStaticGeometry(#PB_Any, GameData\MapWidth, 10, GameData\MapDepth, #False)
MapGeometry\Normal = CreateStaticGeometry(#PB_Any, GameData\MapWidth, 10, GameData\MapDepth, #False);crash
It still crashes on Beta 4

But i have seen you have marked the new fixes with DONE like freak and fred do.
So i will not report this anymore till you have marked it as done. :lol:
Post Reply