33 Commits

Author SHA1 Message Date
Konstantin Koch
55ab328f79 Updated BasicEffectSample, DualTextureSample, KeyboardSample and MultiRenderTarget. Also reduced the memory usage for multiple rendertargets
Also did some Refactoring for Classes that implement and use
INativeBuffer.
The memory usage reduction for rendertargets resulted in some
refactoring of the directx texture classes.
Also added DebugNames for some DirectX resources in case of a debug
build.
2015-09-30 21:31:15 +02:00
Konstantin Koch
805b7032be Fix AudioSample
Convert AudioSample Project file from XNA to ANX and don't throw an
exception if a PCM encoded Wave File should be loaded because it can't
be converted to PCM.
Additionally, the Visual Studio extension will now automatically filter
out unsupported platforms, atleast for now, otherwise the build breaks.
2015-09-06 01:11:09 +02:00
Konstantin Koch
c22baa8417 Fix Alpha value for Fonts and fix buildCache invalidation.
Kerning for the Font in the SampleContent project is deactivated for as
this is not supported by our FontProcessor yet.
2015-09-05 14:48:26 +02:00
Konstantin Koch
a8588a30a5 Update ContentCompiler, make Visual Studio Extension work without having Anx Framework installed.
Make ContentCompilerGui compatible to recent changes in pipeline and did
some usability changes.
Make the Visual Studio Extension work even if the ANX Framework is not
installed additionally..
Improve that the path for assembly refernces in a content project
doesn't get automatically updated, only if the reference is actually
saved, this is so you can specify a relative path yourself.
Fix missing icon for ContentProject when it was opened with Visual
Studio.
Made create_shaders.bat directly executable under windows by fixing the
directory separators.
2015-09-03 23:43:55 +02:00
Konstantin Koch
17d0771b03 Placed the importers into different categories for the "importing existing files" dialog in Visual Studio.
Fixed a performance problem in the Visual Studio extension where no importer or processor was selected for an asset.
Fixed that the asset names for Uri encoded in the build output.
Fixed that errors when serializing assets get logged.
Sped up ImporterManager.GuessImporterByFileExtension, which caused performance problems if many assemblies are loaded into the current AppDomain.
Made the AssimpImporter library deploy the binary files again (hopefully just a temporary solution until we've found a better way.)
Provide a extension for TargetPlatform enum for getting the DisplayName of an entry.
Changed that ProcessorManager.GetProcessorDisplayName doesn't throw an exception if no processor with the given name exists, which now mimicks the same behavior as in importerManager.GetImporterDisplayName.
2015-04-26 19:47:26 +02:00
Konstantin Koch
8287c54432 Included the Visual Studio extension and made the necessary changes to make it run.
Replaced the old VS templates with ones that offer more flexiblity.
Started replacing the Content Project for the samples with our custom project type.
Inlcuded a basic not yet working AssimpImporter.
2015-04-08 14:50:03 +02:00
Konstantin Koch
f081f8632a two commits were missing, both by KorsarNek:
"Removed the SupportedPlatformsImpl classes and replaced them with a new SupportedPlatforms attribute on the assembly level.
Removed a few class constructors which could cause problems when loading a game.
Made ResetElapsedTime in the game class reset to 0 instead of TimeSpan.MinValue.
Removed the restriction in the InputDeviceFactory for which InputDevices are supported.
Added a Logger for Metro which works with the current Logger implementation.
Changed that when a platform is recognized that is higher than Windows 8, it gets treated like Windows 8, not like Windows 7.
Due to the SupportedPlatforms change, the assembly loader is now faster in finding out which assemblies contains addIns. For not Metro system, it's also added that a warning gets written if an AddIn references a different ANX version than that of the running assembly.
OpenGL and DirectX have been updated to the newest versions.
XAudio system uses now the same SharpDX version as all the other systems.
ParameterBuffer for WindowsMetro gets now correctly created by considering the size constraints for constant buffers.
Fixed an erroneous finalizer in the xaudio system.
Made the metro projects convert to Windows 8.1, as Windows 8.0 is not supported by the newer SharpDX versions. It's now also necessary to use at least Visual Studio 2013 to build the Metro versions.
Made the samples work again on Windows."

"Fixed the creation of the swap chain for windows metro and removed the dependency of the Metro Rendersystem onto the Metro Platformsytem.
All occurrences of WindowHandles have been replaced with a custom WindowHandle type which should work out of the box in most cases, but does still represent a breaking change to XNA.
The ProjectConverter for Metro was adjusted so that with just changing the way the application is initialized, most projects that worked with ANX before should now work under win rt. The sample SimpleNoContent does now work out of the box for win rt, after a project conversion.
The application name for win rt apps is now a guid, the display name stayed the same though. That's to be more compliant with the way win rt apps are normally created.
The default namespace and namespace of the classes for the Sample "SimpleNoContent" is renamed from "SimpleModernUI" to "SimpleNoContent".
With the new way win rt apps are initialized for ANX, it's necessary to first create the WindowsGameHost for WinRT with a handler how to create the game instance and give that to the CoreApplication object to run it.
Also took care of a few annoying bugs when working with win rt and ANX where no InputDevices could be created on the first frame (Issue #1164 ) and that it wasn't possible to use the localfolder of the application on the first update and all the other stuff for which an instance of the Application class was necessary."
2015-03-29 13:48:33 +02:00
Glatzemann
2eb7923339 - fixed reading of SpriteFont's (DefaultCharacter handling was wrong)
- fixed handling of DefaultCharacter in FontDescriptionImporter (no handling)
- set DefaultCharacter in SampleContent's Debug font
2015-03-15 01:12:02 +01:00
SND\AstrorEnales_cp
663dff347d - Added a new Sample to test all AlphaTestEffect behaviours
- Working on some tests
2015-03-15 01:11:46 +01:00
Glatzemann
3d7ad3ae8f fixed issue #1023 (MultiRenderTarget not working) for DX10 and DX11 RenderSystems 2015-03-15 01:11:15 +01:00
Glatzemann
d8c0b96121 - finished sample Primitives (codeplesx issue #531). Problem was a semantic issue in shader. For DX10 and DX11 you have to change POSITION0 o SV_POSITION.
- removed a unnecessary Unmap call after initialing the VertexBffer in DX10 RenderSystem
2015-03-15 01:11:09 +01:00
Glatzemann
56488848f2 - fixed issue #1005 (wrong model rendering due to vertex buffer offset problem)
- added new models for testing
2015-03-15 01:10:57 +01:00
SND\AstrorEnales_cp
0ef016dc71 - Finished Dx10, Dx11 and Metro AlphaTest.fx and EnvironmentMap.fx shader
- Implemented AlphaTestEffect and EnvironmentMapEffect classes
- Added a lightmap.png and improved the DualTextureSample to show the real deal
- Removed old Metro configurations from csproj-files and converted them anew
- Added DualTextureSample to SampleCatalog.xml
- Fixed a compile error in the PsVitaGameTimer
- PsVitaConverter now removes the not available System.Net reference from projects
2012-09-09 07:55:45 +00:00
SND\AstrorEnales_cp
0fc4409e58 - Fixed the Texture2DReader to correctly fill the texture with the mipmaps
- Implemented Mipmap textures for Dx10, Dx11, GL3. Metro is implemented but has still some problems with mipmaps (probably cause of the vm)
- Added Sample dds texture
- Fixed compiler error in MetroGameTimer
2012-09-08 09:07:23 +00:00
Glatzemann
55fac0cc5a - refactored and fixed game timing and timers (bug #988)
- minor updates in ModelSample
- added new media file: ANX Logo mesh (vertex colors, FBX-Format)
2012-09-01 11:20:05 +00:00
SND\AstrorEnales_cp
1a429e25d5 Added AudioSample and testsound.wav as a testcase for SoundEffect and SoundEffectInstance which now work with the OpenAL SoundSystem. 2012-08-29 13:04:22 +00:00
Glatzemann
b2bd44289f added some ContentPipeline stuff (upcoming own implementation) 2012-08-14 07:42:00 +00:00
SND\GinieDp_cp
2cd5e8b803 - Fixed the ModelSample
- Added texture rendering to ModelSample
2012-03-10 22:29:29 +00:00
SND\GinieDp_cp
5659159780 - added a SimpleEffect.fx to test the model rendering
- fixed model implementation
- enabled all NotImplementedExceptions on BasicEffect again
- disabled property setting in BasicEffectReader, until BasicEffect is implemented
2012-03-10 11:52:21 +00:00
Glatzemann
7b1c3d402c - added the RenderSystem.Windows.Metro with a bunch of new files (NOT WORKING currently)
- changed many things in ANX.Framework core assembly to make it compile using VS2011 and .NET 4.5 for Win8 (not finished yet)
2012-02-21 07:52:20 +00:00
Glatzemann
7571b20a9f added MultiRenderTarget sample (currently XNA only as proof-of-concept) 2012-01-30 16:17:27 +00:00
Glatzemann
746582483d - Changed Primitives sample to ANX now (currently not working)
- fixed VertexDeclaration constructors (params keyword)
- VertexDeclaration: calculation of VertexStride implemented
- fixed issue #548 (GraphicsDevice.Viewport StackOverflowException)
- small improvements in EffectTechniqueCollection
2011-12-27 08:19:27 +00:00
Glatzemann
89319f93f5 fixed XNA version of primitives sample 2011-12-27 06:03:48 +00:00
Glatzemann
dfa2a4665a Finished the Primitives-Sample, but there are still rendering errors in hardware instancing part. The sample currently works with plain XNA to have a working base. 2011-12-16 09:21:39 +00:00
Glatzemann
403fc7064a removed RenderSystem Metro from build script because it breaks packaging 2011-12-05 21:21:02 +00:00
Glatzemann
53b77d0e45 added Cube.fbx model to SampleContent project
some work on Primitives sample
2011-12-05 14:44:39 +00:00
Glatzemann
a2baf45eff - added StencilBuffer sample
- added new media files and licensing information
- some work on GraphicsDeviceManager to solve issue #461
- RenderSystemDX10: implemented DepthStencilBuffer handling
- fixed default size of GameWindow and BackBuffer to 800x480
2011-11-29 13:05:37 +00:00
Glatzemann
190f334122 added a new sample: KeyboardSample to investigate issue #455
fixed issue #455
2011-11-21 19:33:09 +00:00
Glatzemann
711d4aa68b created StockShaderCodeGenerator tool (sscg)
removed old shader files
included sscg in pre-build events of RenderSystem DX10 and GL3 to generate shader files before compiling
2011-11-15 12:11:24 +00:00
Glatzemann
40c951e02b added licensing information to tools files
added a shader folder for the stock shaders
started the StockShaderCodeGenerator tool
added a tools solution file
added a bin folder in tools folder for precompiled tools and changed tools project files
removed StockEffects content project from solution and added the effect files to the shader folder for reference
2011-11-15 06:46:22 +00:00
Glatzemann
91a7451f97 - static CompileShader method of GL3 render system now returns simply the shader source provided by the ContentImporter. This should be enough to compile a shader during runtime.
- added a SpriteEffect_GLSL effect file, but it still contains HLSL code
- started translate function for Keys in ANX.InputSystem.Windows.XInput. Still many keys to do
- fixed issue #449 ("debug GetCurrentState of Keyboard"). Keyboard input now working (see WindowsGame sample, Escape to exit)
2011-11-15 05:46:08 +00:00
Glatzemann
593f33b541 SpriteBatch: fixed some issues with sizing when the sourceRectangle parameter was set
SpriteBatch/SpriteFonts: rendering of SpriteFonts is finished now
Added test cases for Vector2 static Transform
Added test cases for Matrix: CreateRotationX, CreateRotationY, CreateRotationZ, Multiply and CreateTranslation
Matrix: Fixed a bug in CreateRotationY (wrong result)
2011-11-02 16:01:05 +00:00
Glatzemann
8326720ee3 initial import 2011-10-31 05:36:24 +00:00