help,how to extract a demo from OGRE

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
misscrab
Gnoblar
Posts: 5
Joined: Sat Apr 16, 2005 8:54 am
Location: no
Contact:

help,how to extract a demo from OGRE

Post by misscrab »

everyone ,i have done a terrain demo by the ogre engine.But it is modified from the OGRE terrain demo .Now ,i want to extract it from OGRE, i mean i want to make the demo to a ".exe"file .
help me ,please.
hello ,i am paul brown ,a boy from China , i am a new guy in the OGRE,i want to improve my ability in 3D game design .
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

The problem here is that you don't know enough about the basics to try working with Ogre yet. You can find this basic information easily and for free by searching the internet.

wikipedia: http://en.wikipedia.org/wiki/C_Plus_Plus - this article is probably available in Chinese. Look on the left hand side.
C++ Learning Community: http://en.wikipedia.org/wiki/C_Plus_Plus - I don't know anything about this site, it was linked to by the Wikipedia article and might be a decent place to start learning the basics.

-----
It might be that the language barrier is a problem and I don't totally understand your question. If you have compiled and executed an Ogre program (or any program) then you have created an .exe file. These files are typically automatically placed in the folder bin/debug in your project's folder. In the case of the Ogre samples the .exe file is generated and placed into the folder ogrenew/samples/common/bin/debug (or if your using the precompiled SDK they are in the folder OgreSDK/bin/debug). Try looking for your .exe files there.

-----
If you don't understand this answer or feel like I misunderstood your question please feel free to try again. Someone else may be better able to understand your meaning. If anyone here speakes Chinese maybe they would be so kind as to help you in your native language.

EDIT:
In the future you should post these types of questions in the forum called Back To Basics. This thread will probably be moved there whenever an admin notices it.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

So, now you've got two different answers to the same question in two different threads. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

@jacmoe:

I'm not sure if your comment was referring to my advice that he should "feel free to try again" but if so I just want to clarify that both of his posts existed before I answered and my invitation was meant to be to rephrase his question and post again in this thread. =)
User avatar
SuprChikn
Bugbear
Posts: 863
Joined: Tue Apr 19, 2005 6:10 am
Location: Melbourne, Aus
Contact:

Post by SuprChikn »

No, jacmoe's comment would've been directed soley at misscrab here for making essentially the same post twice (and both times in the same section of these forums...).

Hmm, to keep things tidier, I think I will copy/paste my post in the other one to this thread, then delete my other post (as this one seems to be getting a little more interest).
Though I think my post is slightly invalidated as after reading your's johnhpus I believe you were closer to the truth in what problems he is having...

here is my other post:
SuprChikn wrote:Um, compile it (which will create the .exe), then in order to run it you need the required .dll's and media files, making sure that they are in the correct directory structure for the program to be able to find them all.
In order to compile it you will need to use either the Ogre SDK or compile the full source, if you havnt already done that..
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

johnhpus wrote:I'm not sure if your comment was referring to my advice that he should "feel free to try again"
No, not at all. :wink:
SuprChikn wrote:jacmoe's comment would've been directed soley at misscrab here for making essentially the same post twice (and both times in the same section of these forums...).
Yes, indeed. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Post by DWORD »

This is a good example why cross-posting is evil. :evil:
misscrab
Gnoblar
Posts: 5
Joined: Sat Apr 16, 2005 8:54 am
Location: no
Contact:

thank you for your advise.

Post by misscrab »

thank you for your help ,good men .

i think that is my fault i didnot express clearly.

the problem is that : i have made a terrain demo and now i want to show it to my friend .but there has no OGRE environment on my friend's computer. then ,how can i make my demo run on his computer ?
hello ,i am paul brown ,a boy from China , i am a new guy in the OGRE,i want to improve my ability in 3D game design .
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

Ahh. SuperChkn's instructions tell you how to do that.

I'll try to spell it out more clearly.

1) Make a new folder that will hold your demo.
2) Inside that new folder create a folder called "bin"
3) Copy the .exe file for your program and all of the .dll files from the OgreSDK/bin/debug (or release) into your new "bin" folder.
4) Create another new folder within the demo's folder and name it media.
5) Put all of the media files that your demo will use into that folder. Such as the material scripts, mesh files and textures.
6) In your demo's bin folder edit resources.cfg and media.cfg so that they point to your new "media" folder.

You should now be able to run your program from the Demo's bin folder. Zip this up and send it to your friend.

NOTE:
I've written these instructions using the "debug" folder. If your friend doesn't have MSVC installed on his computer he won't have the debug Windows dlls that he'll need to run the demo. If that is the case be sure to use the "release" folder and it's contents instead.
User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia
Contact:

Post by monster »

When the bulk of this thread is dedicated to flaming you for cross posting you might be wise to stop doing it!

As martinw said in your other post;
You compile and link the files that are in the ".dsw" within your VC++6.0 IDE, which creates a .exe file.

This .exe file plus the necessary dlls and configuration text files and media folders can then be used to run the program outside of the VC++6.0 IDE.

Martin
So in its simplest form, you take everything out of your ogrenew/Samples/Common/bin and ogrenew/Samples/Media folders and dump it onto your friend's computer. You might also need some of the MS runtime DLLs (msvcr60.dll, msvct60.dll, or something like that) but the dependency walker will tell you exactly what you need.

[edit]D'oh, beaten by johnhpus![/edit]
Post Reply