I up the level of the previous watercity into another step.
By integrated it with the winform. In this way you can create the tool-set for your 3d-app, game, and whatever you can imagine. With the flexibility from the serveral controls in windows programming, you can add many and many options to change your 3d app’s settings.
Personally I like to do with this way, integrating with winform can greatly higher the app’s usefulness.
Beside the good thing, while you are developing and integrating your xna app with the winform, I have found some annoys, it’s the design mode that usually erases my custom control’s code, so I have to recode it again and again.
I don’t know how to fix it. But my solution is this, “try to put your custom control to the main form at last step”, this way you should really get going with your project. If you can’t find that problem, maybe you can tell me that too ;)
Another thing to keep in mind that, this project is not optimized yet, the framerate I have gotten so far is far from what is called ‘good performance’, you have to try to set some winform’s settings to reach that peak, there must be some ways to workaroud this because I get very framerate from my normal fullscreen xna compared to this one.
I have posted this question on xna creators club already, if I found that solution I will tell you later.
Below you can see the example screenshot from my tool, it’s the watercity scene along with some settings at the right.
You can download the full project from the link below too.
Note: I have created it with Visual Studio C# Express 2008, with the XNA Framework 3.0.
Download project file: watercityinwinforms






Like











First thing to note also, in the project file you have downloaded.
You will see ‘Content’ project alongside with the main project.
For ‘Content’ project, you can see that even if you edit anything, it doesn’t take in effect. This is because ‘Content’ project built, but output in another folder.
In order to workaround this, you have two options.
First, go and copy that folder and paste it in main output folder.
Second, edit the content-project file named “Content.contentproj”, and find the following lines.
and
You have to modify them like this
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <XnaPlatform>Windows</XnaPlatform> <OutputPath>..\bin\x86\Debug\</OutputPath> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <XnaPlatform>Windows</XnaPlatform> <OutputPath>..\bin\x86\Debug\</OutputPath> </PropertyGroup>This will tell the builder to output it into the default output folder.
Sorry for your inconvenience.
Author is GOD.
Thanks moko.
Becareful out there moko. :)