Open-source implementation of Microsoft's XNA 4, for Windows, Mac, Linux, Android, and iOS, among others.

learn more… | top users | synonyms

3
votes
0answers
51 views

(Monogame) Camera does not travel the way it is rotated

I've implemented camera control with mouse and keyboard. My problem is that camera goes crazy when I'm using mouse and camera does not travel the way it is rotated. Could you explain me why and how to ...
3
votes
0answers
69 views

No collision with CompoundPolygon Monogame/Farseer

I want to create a body based on its texture. But the body I created just falls through the floor instead of colliding and resting on it. My Code: using FarseerPhysics; using FarseerPhysics.Common; ...
2
votes
0answers
54 views

Mouse Interaction in 3D space (ray)

I use this code public static Ray CalculateRay(Vector2 mouseLocation, Matrix view, Matrix projection, Viewport viewport) { Vector3 nearPoint = viewport.Unproject(new ...
2
votes
0answers
34 views

Multimonitor Support in MonoGame

How can I support multiple monitors in mono game ? As far as I know I can not override OnPreparingDeviceSettings and in GraphicsDeviceInformation class there is no DeviceName property in Adapter. ...
2
votes
0answers
462 views

Monogame working with Krypton

I am trying to make a simple 2D game engine using Monogame and the Krypton 2.0 lighting engine. So far I have succeeded in rendering a light but I am unable to generate any shadows from any hull's. ...
1
vote
0answers
26 views

Monogame + Render Target + antialiasing doesn't work

Is there any proper way to use antialiasing, while rendering to a RenderTarget2D and using Monogame? I do this: renderTarget = new RenderTarget2D(GameData.GraphicsDevice, pp.BackBufferWidth, ...
1
vote
0answers
40 views

Farseer Engine Texture To Polygon Center of mass bug

I am new to Farseer Engine used with MonoGame so I decided to do some test with the API to see the results and learn. If I understand, in Farseer the Position property of a Body object is located at ...
1
vote
0answers
51 views

SignalR Monogame Lag

I'm creating a C# multiplayer game in Monogame using SignalR to update the enemy players positions. This is my proxy.invoke: proxy.Invoke("UpdateEnemy", LocalShip.Position, ...
1
vote
0answers
181 views

How to use OpenTK (OpenGL) with MonoGame?

So I've been making a snake game using MonoGame (DirectX Only). I added movement, controls, feeding and growing in length. I wanted to add smooth animations to the game because the snake is just made ...
1
vote
0answers
40 views

Can't play sound in Monogame

I'm new in monogame so I have some problem with play sounds in my game. I have a variable: SoundEffect _soundEffect; In LoadContent() method I'm doing this: _soundEffect = ...
1
vote
0answers
50 views

OpenTK crashes with Mono

I've implemented OpenTK as a secondary renderer which would let me support Mac/Linux only to realize that for some reason, even without any modifications (new MonoGame project), the application would ...
1
vote
0answers
82 views

How should I store battle effects?

I have battle effects that can be anywhere from 50-150 frames (running at 60fps). I need to be able to draw each frame of the battle effect as an additive layer onto my game. A frame could look ...
1
vote
0answers
92 views

Drawing objects in view of camera only in XNA/MonoGame

I am working on a Tower defense style game on mobile that uses a tile map and I am trying to determine the best way to draw overlays of those tiles. In my game, I go into build mode to build towers. ...
1
vote
0answers
47 views

How to create offsetting lines that draw across the screen in Monogame?

I'm trying to create an effect on the screen like the gif below. Basically lines that are offset by 1 pixel draw across the screen from either side which then eventually creates a solid color. I'm ...
1
vote
0answers
141 views

Cant load model from Content in latest Monogame version

Using MonoGame 3.4, I'm trying to display a simple textured basketball. Within the Game1 class, I've created Model mModel. My Initialize function contains all the proper Matrix information. When I ...
1
vote
0answers
54 views

Textured trapezoid in Monogame DirectX

I'm working on a 2D game, so most of the graphics are sprites. However, some elements are drawn using trianglestrips in Orthographic projection. The thing is that I can't do a 3D projection because ...
1
vote
0answers
48 views

Texture shader using model's texture

I'm trying to get a model rendered in monogame using a texture shader. I'm using the code from this tutorial project: http://kgiannakakis.github.io/MonoGameEffects/ I created a simple textured cube ...
1
vote
0answers
330 views

How do I distribute MonoGame games in Windows?

I'm using VS2013 and MonoGame to create a simple game. The things is I can't make it run on others PCs. I've tried to copy Content to the Release folder using the "always copy" option in VS2013; ...
1
vote
0answers
226 views

How do I port a simple 2D Monogame to MacOSX

I have made a simple Windows Monogame project (using the DirectX template). What are the steps to port my game over to MacOSX? If I need to change my Monogame project so that it uses a OpenGL ...
1
vote
0answers
95 views

Monogame 3.3 SoundEffect play Freezes

After using Monogame 3.3 with Xamarin Android, SoundEffect.Play method freezes the game. I try to convert wav files 8bit mono, 16bit mono no changes. This error on Samsung T101 android 4.0.3 but ...
1
vote
0answers
264 views

tex2Dlod to limit max mip level to use for a texture (atlas)

I'm developing a 3D multitexturing terrain engine in C# on Monogame (XNA) plateform. I would like my engine works on Windows XP or upper, so on DirectX 9c minimum. Monogame allow me to build a DirectX ...
1
vote
0answers
115 views

Equivalent to Draw() method in Unity project?

I have been using xna/monogame before this. So I read tutorials about unity, made some classes, loaded some sprites, everything "seems" to be going good, but I can't figure out how to add things into ...
1
vote
0answers
147 views

Getting back to game page from xaml page problem. (Windows Phone 8.1)

I have implemented a xaml page where user can submit his score. I have managed to get the user to the xaml page, after 2 hours of struggling but I do not know how can I navigate the user back to the ...
1
vote
0answers
83 views

SpriteBatch passing textures to GPU

How exactly (or, how often) are textures passed to the GPU shaders in MonoGame/XNA? I am asking because I was profiling a MonoGame/XNA application and noticed that the memory controller load (using ...
1
vote
0answers
113 views

Game Center Leaderboards in Monogame

Do anyone know how to integrate a Game Centre leaderboards for an iOS game using MonoGame framework? I have searched high and low yet I haven't gotten any luck of finding articles or tutorials that ...
1
vote
0answers
39 views

Monogame render between constraints

I have, in MonoGame, a project for which I require the game to not use the full screen depending on the resolution. The game elements etc all behave as they should (So they bounce off for example ...
1
vote
0answers
708 views

How can I use custom shaders in Monogame?

I wrote a shader in XNA and I want to use it in a Monogame Windows Phone 8 project. I converted my Effect1.fx file to Effect1.mgfxo. But the program doesn't work correctly. The screen of my emulator ...
1
vote
0answers
187 views

SpriteFont not found in Nuclex Framework

I am using MonoGame to port my XNA Windows Phone app to iPhone. All is well except that my fonts look distorted/smudged on the iPhone. Turns out this is due to the way that MonoGame builds the ...
1
vote
0answers
258 views

Strange rendering issue with monogame/WinGL with HD7670M

I'm having some strange rendering issues with latest monogame/winGL code as seen below; As you can see the xna and tomspilmans WinDX port seems just okay. I'm having this problem on my laptop ...
1
vote
0answers
937 views

Need help transforming DirectX 9 skybox hlsl shader to DirectX 11

I am in the middle of implementing a skybox to my game. I have been following this tutorial http://rbwhitaker.wikidot.com/skyboxes-2. I am using MonoGame as a framework and in order to support both ...
0
votes
0answers
17 views

Mesh Collider in Monogame

I try to implement a few complex objects and want to achieve that they collide based on everything the player is able to see. Therefore I am not able to use the basic BoundingSpheres. Has anybody an ...
0
votes
0answers
17 views

HLSL texture not reading from register S1

I made a simple post processing shader, that draws scanlines. This all works perfectly. I wanted to make it a bit more interesting by applying a shadowmask instead so I wanted to pass a texture to the ...
0
votes
0answers
16 views

SharpDX.SharpDXException error when using vector as parameter

I placed a GraphicsDevice and width/height into the new RenderTarget2D parameters as it ask for but it keeps throwing an error. Does any one know why? Error: Additional information: HRESULT: ...
0
votes
0answers
21 views

Clip on model XNA

I'm currently doing my water plane system (with waves etc...). Actually, I have a heightmap with a waterplane on it; refraction and reflection working perfectly, but now I want to add objects. So ...
0
votes
0answers
55 views

Side-Collision for Breakout game where ball moves fast

So I've been trying to make a breakout clone, which is my first attempt at a graphical game, I ran into some problems, and was hoping that this community could help me. I've got most of the mechanics ...
0
votes
0answers
13 views

How to do an xBR or hqx filter in MonoGame?

I have been trying to implement an HD filter (xBR or HQX) in my MonoGame game project but so far got no success. I have checked out this question, but the shaders provided in the answers don't seem to ...
0
votes
0answers
51 views

Game crashes when sound is finished

I'm trying to code a simple audio playback test game (which will be used in my actual project), and everything works fine, except for the fact that after the audio has finished playing, the game will ...
0
votes
0answers
54 views

Water reflection xna

I'm actually trying to do the reflection map for my water component, but even following the riemer's tutorial about reflection map the formulas provided doens't work. ...
0
votes
0answers
74 views

How to convert a mouse's “On screen” position to “World” position C# Monogame

So the problem is this... I have a top down game, where you click on the screen to select which unit you want to control. You left click to select, and right click somewhere else to tell it where to ...
0
votes
0answers
20 views

Trigonometric movement cause problem when holding player inside bounds

In my game I have a Player class. Here is what it looks like. public void Update(GameTime gameTime) { // Controls kb = Keyboard.GetState(); if (kb.IsKeyDown(Keys.W)) ...
0
votes
0answers
33 views

Shader questions with regards to the SpriteBatch in XNA/MonoGame

So I've finally decided to create my very own GUI system. And I'd like it to use shaders for pretty much all rendering. Think "WPF/Direct2D Brushes". Except to my knowledge, using shaders with the ...
0
votes
0answers
36 views

Rendering water with Hardware Instancing xna/MonoGame

I was wondering if rendering in XNA/MonoGame will be better using Hardware Instancing. For example, I have my editor and when I click anywhere on my map, i'll add a plane with a water texture. If I ...
0
votes
0answers
15 views

Farseer 3.5 RevoluteJoint Breaking

I think I'm missing something completely and the solution is unbelievably simple, but I'm at a loss at the moment. I'm trying to build a stylized car, with a rectangle as car body with two circles as ...
0
votes
0answers
61 views

MonoGame RenderTarget2D mipmapping fades textures when zooming out

I recently ported my XNA game to MonoGame. Unfortunately, some of the textures are being faded when: They are scaled-down from 32*32 to 16*16 When the camera zooms out, the texture fades from ...
0
votes
0answers
46 views

Illegal characters in Path: Error while building SpriteFont MonoGame 3.4

I used XNA for a long time everything was working fine, but now with the new MonoGame thing they added a GUI for Content Managing, and I found it pretty cool but it doesn't work like intended. I'm ...
0
votes
0answers
27 views

Writing a VB Template

As I'm having all these problems with Fonts and Sounds basically not working at all in the XNA template I found for VB, I'm thinking of trying to convert over to Mono. So, two questions I suppose; ...
0
votes
0answers
39 views

Error loading MonoGame Fonts

I'm getting to the end of transposing the MonoGame Asteroids tutorial app to VB, all going very well until I got to the font. I would assume the VB Syntax would be myFont = Content.Load(Of ...
0
votes
0answers
73 views

Monogame Vertex Shader Hassle

I'm currently creating a game in Monogame 3.4. I've written a relatively simple pixel shader in HLSL which works perfectly fine under Windows DX. When I use the same shader under Linux (OpenGL), ...
0
votes
0answers
45 views

Shader that only shows edge of textures and hides rest

I'm wondering if anyone has a name for this type of shader, has an example of how to do it, or can point me in the right direction for creating one. This is a picture of the no shader / wanted ...
0
votes
0answers
65 views

Custom game loop entirely in the Update method

I am attempting to implement a custom game loop in XNA/Monogame. I know that one can re-implement the Game class using WinForms (with the caveat of having to also redo the content manager, etc.). I ...