Questions tagged [monogame]

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, Windows 10, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

Recent versions of MonoGame includes a bundled content pipeline. This eliminates the need to use the XNA 4 Content Pipeline, which is not available for all platforms. The new MonoGame pipeline allows for management of assets completely independent of XNA.

Information:

Code:

Questions or Problems:

1862 questions
0
votes
2 answers

Plug-in for Monogame on Visual Studios

I create a brand new file in visual studios, MonoGame Windows Project. Then I run it and I get an instant error. What is the problem? Error states: An unhandled exception of type 'System.DllNotFoundException' occurred in…
nameishi
  • 43
  • 1
  • 8
0
votes
0 answers

Set world dimensions for primitives

I'm new to the 3d scene and I'm having issues regarding setting world dimensions for primitives. I'm creating a cube primitive and mapping a texture onto it. Everything works as it should, but I want the primitive to be 32x32x32 pixels on the…
CodingMadeEasy
  • 2,257
  • 4
  • 19
  • 31
0
votes
0 answers

AccessViolationException with Awesomium generating a bitmap for XNA

I am trying to render the Awesomium headless browser in a BackgroundWorker. However, when i try to copy the buffer using CopyTo, i get an AccessViolationException saying that i am trying to access protected memory. This is my first time using the…
UDXS
  • 40
  • 1
  • 6
0
votes
0 answers

Monogame Gaussian Blur Effect Results in solid color texture2D

I am developing a game in monogame and recently converted from XNA, and my blur effect stopped working. After successfully getting it to run without errors (and not changing any of the code logic) images that should be blurred turn into a solid…
0
votes
1 answer

MonoGame/XNA Mouse Offsets

I am trying to use Mouse.GetState() for my menu selection. Currently, it will only highlight if I hover over a region left and up from where the menu is. I used DrawString to display the mouses coordinates and found that the 0,0 point wasn't in the…
Cody
  • 117
  • 1
  • 13
0
votes
2 answers

Getting null errors even though Im using the variable

I'm trying to learn MonoGame and I'm trying to do basic stuff and I've figured most of it out on my own but I'm getting a null pointer and I'm not sure why. I'm trying to get MainMenuScene to just draw a texture but in SceneManager currentScene…
0
votes
2 answers

drawing png to SpriteBatch is not working

I just started working on MonoGame , and I was just trying to load simple Sprite at the Game class as follow : public class Main : Game { GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Texture2D test; …
Abanoub
  • 3,623
  • 16
  • 66
  • 104
0
votes
1 answer

Initialize thread won't print anything

Printing works fine in other methods but it won't work in the initialize() thread. Does not matter if I put it before or after the base.Initialize. protected override void Initialize() { // TODO: Add your initialization logic here …
grey00
  • 469
  • 2
  • 13
0
votes
1 answer

How do I deploy an Android MonoGame game to an Android phone?

I recently created a game using XNA 4.0 for Windows Phone. I was able to deploy it to a physical device running Windows Phone 8 by connecting the device to my computer and deploying the project's XAP file with Windows Phone Application Deployment…
Ben
  • 1,299
  • 3
  • 17
  • 37
0
votes
1 answer

MonoGame Windows OpenGL project "Could not load asset as non-content file" Asset is set to Copy Always

Recently I have been having some troubles loading assets as Texture2D. I have tried changing the path to "..\assetName", "assetName", "assetName.png" and "..\assetName.png" (as suggested by one of the answers to this question but neither of them…
0
votes
1 answer

Monogame - Making the camera stop when my player collides

I have come to a position with my 3D game where I am now trying to perfect the camera. What I ultimately want is a working first person camera that stops when it collides with a wall. I assume you do this by having the camera move with a model and…
jayelj
  • 47
  • 6
0
votes
1 answer

Monogame builduing content runtime

I'm making an editor similar to Unity. I'm using WinForms and I'm embedding a MonoGame window in a form like shown here. Everything's working fine, but now I need to add new content to the project and I need that to be made runtime. I've looked into…
Rokner
  • 169
  • 2
  • 13
0
votes
1 answer

SpriteFont makes 3D DAE models go invisble-ish and bad looking

I am making a 3D game in Monogame and I am still very early on the the development of it, I am currently making a health system for the player so that when the player (currently a ball) hits the other ball text saying "You have died!" pops up. I…
jayelj
  • 47
  • 6
0
votes
1 answer

Sprite won't render at all?

The classes look like this: Game has-a Player Player has-a SpriteInstance SpriteInstance has-a List Each render step, Game calls Draw() on Player. Player calls draw() on SpriteInstance. And draw() looks like this: public void…
Sky
  • 220
  • 2
  • 14
0
votes
1 answer

Model moves around with camera, instead of staying still

I am creating a Monogame first person shooter game, at least learning to do such and I have hit an issue that I cant seem to figure out. I have a first person camera with mouse + keyboard input, and a floor that I can move around over, so…
jayelj
  • 47
  • 6