[Back online] Ready-to-go Framework for Visual Studio

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

[Back online] Ready-to-go Framework for Visual Studio

Post by so0os » Thu Feb 10, 2011 8:26 pm

Hi!
After a while I noticed many threads regarding setting up first application, so I thought It'd be nice to share this:

Ready-to-go Framework Mk 0

What's inside:
- Ogre stuff (dlls, libs, includes, dependency libs)
- A set-up VS2008 project
- A simple application that does nothing, and is a hijacked MinimalPracticalApplication
- media from samples
- A neat and clean directory structure, like this:

Code: Select all

root/
  bin/ < binaries go here
  obj/ < intermediate files go here
  src/ < source files
    listener.h/cpp < BasicFrameListener + MouseListener + KeyListener
    stdafx.h/cpp < precompiled header
    main.cpp < initialisation stuff [TODO: cleanup]
  dep/ < dependencies = includes/libs, all from trunk
  build/ < VS project and solution
  media/ < media from SDK Samples
Apparently, the code is not much noob-friendly but it just works! Also, I didn't actually test whether it displays anything, but I guess it just would. I appreciate any suggestions if you find this usable. Also, you derive nothing from nothing to start working, just write your code straight into the listener.

Instructions:
- unzip
- run sln or project from build
- tap F5
- stare at the black screen contemplating what to do with this
- do it
- deploy, packaging bin and media dirs

Download (70MB)
Special thanks to zarifus for saving the day!
Last edited by so0os on Wed Feb 23, 2011 4:22 pm, edited 3 times in total.
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
betajaen
OGRE Moderator
OGRE Moderator
Posts: 3447
Joined: Mon Jul 18, 2005 4:15 pm
Location: Wales, UK
Contact:

Re: Ready-to-go Framework for Visual Studio

Post by betajaen » Thu Feb 10, 2011 8:31 pm

Pretty awesome.
0 x

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: Ready-to-go Framework for Visual Studio

Post by so0os » Mon Feb 14, 2011 11:00 am

Hey, I'd really use some feedback, whether this is worth anything. I would gladly maintain the thingie, but I will not, if no one use it, or I'm not aware of it.

Also, I can prepare a batch script to generate this from trunk, so it could auto-update, or get included in cmake.
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: Ready-to-go Framework for Visual Studio

Post by jacmoe » Mon Feb 14, 2011 4:39 pm

I did pretty much the same thing here:
http://www.ogre3d.org/tikiwiki/Building ... With+CMake

I say 'pretty much' because it doesn't set the working directory and command for VS users, but that would be a matter of letting CMake configure a .user file if it's Visual Studio.

When the user builds 'install', a 'dist' directory with a minimal set of Ogre resources (just enough for the Ogre head and SDKTrays) are copied to build_dir/dist, and Ogre DLLs are copied (on Windows) to build_dir/dist/bin.

And it's only 1.5 MB. :)

And it uses the standard Ogre Wiki Tutorial Framework (also the same as the Ogre AppWizard supplied 'framework).

I think it's a good solution you've come up with, but personally I think the CMake based solution is better.
I use it on Linux too.
Tried it in KDevelop, Eclipse, Code::Blocks and NetBeans.
See the Linux Setting Up An Application Wiki entries.

But Kudos to you regardless of my opinion. :)
Variety is good.
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

prchakal
Halfling
Posts: 59
Joined: Sun Sep 27, 2009 12:56 am

Re: Ready-to-go Framework for Visual Studio

Post by prchakal » Mon Feb 14, 2011 9:54 pm

Hi.

This is will be perfect if you release with the features:

- Make VS 2010 compatible.
- Remove VS dependencies (stdafx, other headers dependents of VS [if has]).
- Create code::blocks or eclipse (i prefer ecplise) project compatible too (for linux / mac users) - Using mingw/g++.


But your initiative if very useful, thanks.
0 x

User avatar
mkultra333
Gold Sponsor
Gold Sponsor
Posts: 1804
Joined: Sun Mar 08, 2009 5:25 am
x 6

Re: Ready-to-go Framework for Visual Studio

Post by mkultra333 » Mon Feb 14, 2011 10:28 pm

I'm halfway through a project, so I have no need of this at the moment. However, I give it a big thumbs up, because anything that reduces the steps needed the get things up and running is worth it's bit-weight in gold. n+1 is not equal to n, and I think advanced users forget that over time.

(Edit: For the record, I have grown to despise cmake. The ogre setup is the exception to the rule, well documented and working, but I still would rather it not need cmake. I've lost count of the code-bases I've looked at and abandoned because I couldn't get the cmake config to work. Cmake seems to be just programmers too lazy to maintain a few different projects for different platforms, so they move the problem from themselves to the user via cmake.

Yes, it's extra abstract, but that just makes it extra inaccessible. Once I use to give up on people's code when I couldn't get it to compile, but now with cmake I can't even get that far. Ugh. Ok, rant over.)
0 x
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: Ready-to-go Framework for Visual Studio

Post by jacmoe » Mon Feb 14, 2011 10:48 pm

Each to his own. :wink:
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: Ready-to-go Framework for Visual Studio

Post by so0os » Tue Feb 15, 2011 9:45 am

prchakal wrote:Hi.

This is will be perfect if you release with the features:

- Make VS 2010 compatible.
- Remove VS dependencies (stdafx, other headers dependents of VS [if has]).
- Create code::blocks or eclipse (i prefer ecplise) project compatible too (for linux / mac users) - Using mingw/g++.


But your initiative if very useful, thanks.
1. It will work in VS10, but I can make a VS10 project
2. stdafx.h is okay with everything, it's just two lines
3. then i'd have to compile Ogre for everything and have all of the systems, that just won't do, sorry

Generally, I was just creating a framework for me, and then i thought it might be reusable and I should archive the empty thing, and then I thought I should share. I'm planning to make it more featured than that, so that It'll have stuffs like Hydrax, plugins, addons etc, plus some arbitrary shaders (I made it to toy with GPU programs in the first place).

So in a nutshell, I'm going to keep it MSVC. I can write a makefile, but not being bundled with libs makes it lose the point.
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
zarfius
Gnome
Posts: 367
Joined: Wed Jan 03, 2007 12:44 pm
Location: Brisbane, Australia
Contact:

Re: Ready-to-go Framework for Visual Studio

Post by zarfius » Tue Feb 15, 2011 12:06 pm

Good idea. Probably should make a page on the wiki about this too. It should stay useful for many moons to come.

I've got a similar structure with my Mogre projects. Perhaps I could do one up one for Mogre users as well.
0 x
Craftwork Games - hand crafted entertainment.
http://www.craftworkgames.com/

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: Ready-to-go Framework for Visual Studio

Post by so0os » Wed Feb 23, 2011 10:54 am

So, I got this:
Hi Sos,

This email is an automated notification from Dropbox that your Public links have been temporarily suspended on account of generating excessive traffic. Your Dropbox will continue to function completely normally with the exception of Public links.

If you have any questions, feel free to drop us a line at support@dropbox.com.

- The Dropbox Team
This means the framework is offline for now. I'll reupload it ASAP. Thanks for using it!
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
nevarim
Gnoll
Posts: 655
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
Contact:

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by nevarim » Wed Feb 23, 2011 11:31 am

a little question :D

this framework use examplaapplication or use a custom listener?
0 x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by so0os » Wed Feb 23, 2011 11:41 am

Nah, it has an empty listener that does nothing. I find the ExampleListener confusing.
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
nevarim
Gnoll
Posts: 655
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
Contact:

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by nevarim » Wed Feb 23, 2011 11:51 am

it's true

it will be nice to set into keypress with camera movement (classic wasd) :D
0 x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by so0os » Wed Feb 23, 2011 12:06 pm

Sure, I can see people use it, so I'll extend it with some basic precompiled libs and functionality.

Stay tuned!
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
nevarim
Gnoll
Posts: 655
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
Contact:

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by nevarim » Wed Feb 23, 2011 12:12 pm

this evening i will download it, i must upgrade it to vs 2010 for use (teorically there aren't problem on after upgrade) but where i can sownload it?
0 x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by so0os » Wed Feb 23, 2011 12:33 pm

Dropbox pulled it down cause it generated too much traffic. I need to find another host.
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
nevarim
Gnoll
Posts: 655
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
Contact:

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by nevarim » Wed Feb 23, 2011 12:45 pm

for the moment my server is on a slow line, but if you want i can host it
0 x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by so0os » Wed Feb 23, 2011 1:13 pm

Thanks for offer, but i'll pass, it will eat you download limit, that's why I didn't put it on my site.
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
zarfius
Gnome
Posts: 367
Joined: Wed Jan 03, 2007 12:44 pm
Location: Brisbane, Australia
Contact:

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by zarfius » Wed Feb 23, 2011 2:35 pm

It would be a shame to see this disappear so I have taken the liberty of rehosting on my webserver.

http://www.glueeditor.com/ogreframework/

If there is anything you would like to change so0os just let me know.
0 x
Craftwork Games - hand crafted entertainment.
http://www.craftworkgames.com/

User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by so0os » Wed Feb 23, 2011 3:20 pm

I love you ;)
0 x
Sos Sosowski :)
http://www.sos.gd

User avatar
nevarim
Gnoll
Posts: 655
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
Contact:

Re: [Offline] Ready-to-go Framework for Visual Studio

Post by nevarim » Wed Feb 23, 2011 3:31 pm

thanks very much :D
0 x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS

myriad
Gnoblar
Posts: 2
Joined: Fri Feb 25, 2011 4:37 pm

Re: [Back online] Ready-to-go Framework for Visual Studio

Post by myriad » Fri Feb 25, 2011 4:59 pm

Apologies in advance if this is a dumb noob question.

I'm able to compile this using VS2008 under Windows XP, however when I attempt to run the application I receive the error:

"This application has failed to start because d3d10.dll was not found. Re-installing the application may fix this problem."

I tried to fix this by installing Microsoft's latest DirectX End-User Runtime as well as the June 2010 DirectX Redist, with no luck. I also looked through the code to see if there were any references I could remove to fix the issue.

If anyone has thoughts on this it would be much appreciated. Thanks!
0 x

User avatar
nevarim
Gnoll
Posts: 655
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
Contact:

Re: [Back online] Ready-to-go Framework for Visual Studio

Post by nevarim » Fri Feb 25, 2011 5:07 pm

remove 3d10 line from plugins.cfg :D
0 x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS

prchakal
Halfling
Posts: 59
Joined: Sun Sep 27, 2009 12:56 am

Re: [Back online] Ready-to-go Framework for Visual Studio

Post by prchakal » Fri Feb 25, 2011 5:44 pm

0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: [Back online] Ready-to-go Framework for Visual Studio

Post by jacmoe » Fri Feb 25, 2011 6:57 pm

myriad wrote:Windows XP
...
"This application has failed to start because d3d10.dll was not found. Re-installing the application may fix this problem."
AFAIK, you need Vista for DirectX 10 - or (if I'm wrong) - a service pack of some sort.
prchakal wrote:You can get DLL here
Please don't offer advice you are not able to verify the validity of.
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

Post Reply