Coding and using OGRE for the first time

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Coding and using OGRE for the first time

Post by Nassiic »

Hi,

I wasn't sure if I should post this in the help or general forum, but I decided to post it here

Anyways I have been making 2D games using visual scripting for a while and wanted to transition into coding for the first time.
Do you think OGRE3D is a good fit for me? Or should I do something else? :?:
paroj
OGRE Team Member
OGRE Team Member
Posts: 2141
Joined: Sun Mar 30, 2014 2:51 pm
x 1151

Re: Coding and using OGRE for the first time

Post by paroj »

it surely can be done, see e.g. viewtopic.php?p=507834

however, you can only find out whether it is the right thing for you by trying. Note, that Ogre can be used inside different languages, so you dont have to jump straight to C++.
My personal recommendation would be python: https://pypi.org/project/ogre-python/
User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

paroj wrote: Fri Dec 31, 2021 2:02 am it surely can be done, see e.g. viewtopic.php?p=507834

however, you can only find out whether it is the right thing for you by trying. Note, that Ogre can be used inside different languages, so you dont have to jump straight to C++.
My personal recommendation would be python: https://pypi.org/project/ogre-python/
Thanks! I'll try C++ but if I can't work that out, I'll just use Python, like you recommended.
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 493
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 177

Re: Coding and using OGRE for the first time

Post by sercero »

If you want to keep making 2D games, perhaps you would like to take a look at Godot which is strong in that area and is easier to use than OGRE.

OGRE is mostly a 3D rendering engine and in that regard is more performant than Godot.

Also nowadays OGRE is easier to use thanks to @paroj, but it is still not a game engine so you will have to work on integrating the other systems you need like physics, audio, GUI.
User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

sercero wrote: Sat Jan 01, 2022 3:14 am If you want to keep making 2D games, perhaps you would like to take a look at Godot which is strong in that area and is easier to use than OGRE.

OGRE is mostly a 3D rendering engine and in that regard is more performant than Godot.

Also nowadays OGRE is easier to use thanks to @paroj, but it is still not a game engine so you will have to work on integrating the other systems you need like physics, audio, GUI.
I do know that it isn't a game engine, but I still want to use it. I feel like I could make better games using coding instead of visual scripting.
Correct me If I should use different libraries (or if I need more), but I want to use these libraries to make the game possible:
OGRE - graphics
irrKlang - audio
Newton Game Dynamics - physics
myGUI - gui

One thing I wanna know is do I need a library for input, SDL for example?
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 493
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 177

Re: Coding and using OGRE for the first time

Post by sercero »

I do know that it isn't a game engine, but I still want to use it. I feel like I could make better games using coding instead of visual scripting.
Correct me If I should use different libraries (or if I need more), but I want to use these libraries to make the game possible:
OGRE - graphics
irrKlang - audio
Newton Game Dynamics - physics
myGUI - gui

One thing I wanna know is do I need a library for input, SDL for example?
MyGUI is a good choice.

Regarding physics I would recommend bullet so you can use btOgre (wrapper for Bullet), but go with Newton if it suits you.

Regarding sound I heard that irrKlang is good but not open source and might have a fee attached.

There is a plugin called OgreOggSound that uses OpenAL for audio library if you want to try that.

You will need a library for input, and SDL is highly recommended.
User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

sercero wrote: Mon Jan 03, 2022 4:08 am
I do know that it isn't a game engine, but I still want to use it. I feel like I could make better games using coding instead of visual scripting.
Correct me If I should use different libraries (or if I need more), but I want to use these libraries to make the game possible:
OGRE - graphics
irrKlang - audio
Newton Game Dynamics - physics
myGUI - gui

One thing I wanna know is do I need a library for input, SDL for example?
MyGUI is a good choice.

Regarding physics I would recommend bullet so you can use btOgre (wrapper for Bullet), but go with Newton if it suits you.

Regarding sound I heard that irrKlang is good but not open source and might have a fee attached.

There is a plugin called OgreOggSound that uses OpenAL for audio library if you want to try that.

You will need a library for input, and SDL is highly recommended.
Thanks for the help!
User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

Bumping this thread to ask a new question. I've tried OGRE for the first time recently and failed to compile it because my PC couldn't take it! So what are the minimum system requirements to compile OGRE?

User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 493
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 177

Re: Coding and using OGRE for the first time

Post by sercero »

It is very strange that you are having problems compiling OGRE.

It is true that compilation takes some resources but at worst it takes a lot of time, it should not fail.

What are the specs of your PC?

What compiler are you using?

What error did you get?

User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

sercero wrote: Sat Aug 27, 2022 1:46 pm

It is very strange that you are having problems compiling OGRE.

It is true that compilation takes some resources but at worst it takes a lot of time, it should not fail.

What are the specs of your PC?

What compiler are you using?

What error did you get?

1: Ryzen 5 5500U, 8GB ram but 5GB usable

2: Visual Studio 17

3: No error, PC just froze

User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 493
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 177

Re: Coding and using OGRE for the first time

Post by sercero »

You might have memory issues, try running a memtest86 to see if everything is OK.

Your machine is plenty capable of compiling OGRE. (although 5GB usable might be a little short, but freezing...)

Another thing to try is with a newer version of Visual Studio, perhaps there is a bug in VS17...

Or try another compiler, I use Code::Blocks that comes with MinGW.

User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

Sorry for the late reply, but I've considered just using Ogre-Python but I cant find any examples, only ones I found was for PyOgre which is deprecated.
I also tried using Code::Blocks, but couldn't get CMake to work properly with it.
Any links to Ogre-Python examples?

paroj
OGRE Team Member
OGRE Team Member
Posts: 2141
Joined: Sun Mar 30, 2014 2:51 pm
x 1151

Re: Coding and using OGRE for the first time

Post by paroj »

generally, you should be able to use C++ samples. e.g. the sample code here:
https://github.com/OGRECave/ogre/blob/m ... tstrap.cpp

translates almost 1:1 to python:
https://github.com/OGRECave/ogre/blob/m ... /sample.py

User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

paroj wrote: Fri Sep 09, 2022 6:42 pm

translates almost 1:1 to python:
https://github.com/OGRECave/ogre/blob/m ... /sample.py

I just found this example in the OGRE source, thing is it gives me an error saying "Cannot locate resource Sinbad.mesh in resource group OgreAutodetect. in ResourceGroupManager::openResource at D:\a\ogre\ogre\OgreMain\src\OgreResourceGroupManager.cpp (line 560)"

User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

sercero wrote: Sun Aug 28, 2022 1:02 pm

You might have memory issues, try running a memtest86 to see if everything is OK.

Your machine is plenty capable of compiling OGRE. (although 5GB usable might be a little short, but freezing...)

Another thing to try is with a newer version of Visual Studio, perhaps there is a bug in VS17...

Or try another compiler, I use Code::Blocks that comes with MinGW.

Also going to note that I was compiling it from ALL_BUILD.

User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 493
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 177

Re: Coding and using OGRE for the first time

Post by sercero »

Nassiic wrote: Fri Sep 09, 2022 7:13 pm
paroj wrote: Fri Sep 09, 2022 6:42 pm

translates almost 1:1 to python:
https://github.com/OGRECave/ogre/blob/m ... /sample.py

I just found this example in the OGRE source, thing is it gives me an error saying "Cannot locate resource Sinbad.mesh in resource group OgreAutodetect. in ResourceGroupManager::openResource at D:\a\ogre\ogre\OgreMain\src\OgreResourceGroupManager.cpp (line 560)"

You have to check the resources.cfg file and add the place where you have Sinbad.mesh.

You can find that mesh in: ogre-1.12.13\Samples\Media\packs

User avatar
Nassiic
Gnoblar
Posts: 10
Joined: Wed Dec 29, 2021 6:51 pm
x 3

Re: Coding and using OGRE for the first time

Post by Nassiic »

Thanks! Is there a way to specify this to the root of the .py/.exe location? So it would work properly when distributing?