Current version of Ogre3D

Everything related to 3D programming
Krix
User
User
Posts: 70
Joined: Fri Mar 11, 2005 6:24 pm
Location: Toronto

Current version of Ogre3D

Post by Krix »

What is the current version/versions of Ogre3D used with the current version of PureBasic?

Thanks.
User avatar
jacdelad
Addict
Addict
Posts: 1992
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Current version of Ogre3D

Post by jacdelad »

Just a shot into the blue: The last entry of the help touching this is from 2012 and lists OGRE 1.82. Also the OGREs copyright text in the help is from 2012. If nobody forgot to update these, it should be 1.82.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Krix
User
User
Posts: 70
Joined: Fri Mar 11, 2005 6:24 pm
Location: Toronto

Re: Current version of Ogre3D

Post by Krix »

Yeah...it happened a few times that the docs didn't follow every change. That's why it would be great if either Fred or Prof Shadoko could confirm that it's still 1.8.2 ?

Thanks.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Current version of Ogre3D

Post by Fred »

You can enable the log in InitEngine3D() but yes I think it's 1.8.2
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Current version of Ogre3D

Post by Shardik »

Ogre.log in Windows 10 x64 with PB 6.10 wrote:*-*-* Version 1.8.2 (Byatis)
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: Current version of Ogre3D

Post by juergenkulow »

Please ask your questions, because switch on the cognition apparatus decides on the only known life in the universe.Wersten :DDüsseldorf NRW Germany Europe Earth Solar System Flake Bubble Orionarm
Milky Way Local_Group Virgo Supercluster Laniakea Universe
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Current version of Ogre3D

Post by Shardik »

To get your current Ogre version you may run the following cross-platform program. Unfortunately Windows is blocking the Ogre log file while executing the program, so I had to copy the log file to a temporary file to be able to read it out. This is not necessary in Linux and MacOS but it also doesn't hurt... :wink:

Code: Select all

EnableExplicit

Define FileExtension.S
Define OgreTempFile.S
Define OgreVersion.S
Define Record.S

If InitEngine3D(#PB_Engine3D_DebugLog) = 0
  CompilerSelect #PB_Compiler_OS
    CompilerCase #PB_OS_Linux
      FileExtension = ".so"
    CompilerCase #PB_OS_MacOS
      FileExtension = ".dylib"
    CompilerCase #PB_OS_Windows
      FileExtension = ".dll"
  CompilerEndSelect
  
  MessageRequester("Error",
    "Unable to find file Engine3D" + FileExtension,
    #PB_MessageRequester_Error)
Else
  CompilerIf #PB_Compiler_OS = #PB_OS_Windows
    If FileSize("Ogre.Log") < 0
      MessageRequester("Error",
        "Unable to find Ogre.Log",
        #PB_MessageRequester_Error)
      End
    EndIf

    While FileSize("Ogre.Log") < 500
      Delay(20)
    Wend
  CompilerEndIf

  OgreTempFile = GetTemporaryDirectory() + "Ogre.Log"

  If CopyFile("Ogre.Log", OgreTempFile) = 0
    MessageRequester("Error",
      "Unable to copy Ogre.Log",
      #PB_MessageRequester_Error)
    End
  EndIf

  If FileSize(OgreTempFile) < 0
    MessageRequester("Error",
      "Unable to find " +
      OgreTempFile + "!",
      #PB_MessageRequester_Error)
  Else
    If ReadFile(0, OgreTempFile) = 0
      MessageRequester("Error",
        "Unable to open " + OgreTempFile + "!")
      End
    Else
      While Eof(0) = #False
        Record = ReadString(0)

        If FindString(Record, "*-*-* Version")
          OgreVersion = StringField(Record, 4, " ")
          Break
        EndIf
      Wend

      CloseFile(0)

      If OgreVersion = ""
        MessageRequester("Error",
          "Unable to find Ogre version in Ogre.Log",
          #PB_MessageRequester_Error)
      Else
        MessageRequester("Info",
          "Ogre version: " + OgreVersion)
      EndIf
    EndIf
  EndIf

  DeleteFile(OgreTempFile)
EndIf
Post Reply