Open-source implementation of Microsoft's XNA 4, for Windows, Mac, Linux, Android, and iOS, among others.
0
votes
0answers
10 views
Advice on Adobe Animate pipeline
I could really use some advice on how I can improve my asset pipeline here. I'm building a little 2D platformer game (and specific engine) in Monogame. The animator I'm working with is using Adobe ...
1
vote
0answers
20 views
converting XNA fx to monogame fx
I am learning game development in Monogame via book for XNA 4.0. In the code below which is for drawing the terrain, I get the error in the comment.
Im using an effect from Monogame content pipeline ...
0
votes
0answers
69 views
Raycasting with a selection rectangle box
I'm currently making a level editor for my game and want to implement a selection tool to make it easier to select multiple voxels at once.
My question is what the most efficient way is to get all the ...
0
votes
0answers
25 views
rendering technic for water in pipeline game
For fun I want to clone a waterpipe game, where the player places pipe pices on a gridfield and after some seconds water starts flowing from the start, through all places pipes and hopely reaches the ...
0
votes
2answers
132 views
Collision code is creating allocations on heap every frame
I've been profiling my app trying to reduce allocations and garbage collection during gameplay.
The following code is SAT collision which i use for hill/ramp collisions, when the player is standing ...
0
votes
1answer
40 views
Monogame/XNA rotating a sprite around its center
I also use Farseer Physics and Artemis ECS. Here is RenderingSystem Process method:
public override void Process(Entity entity, TransformComponent transformComponent, RenderingComponent ...
-1
votes
1answer
57 views
Monogame - How do I make a moving game such as terraria or stardew valley?
Alright so after some long hours and a lot of work I finally understand the basics of Monogame and am able to create a simple game with menu, sounds, the whole lot. But now I want to create a map game,...
0
votes
1answer
27 views
Determine “bounding box size” (not scale) of model in MonoGame
I'm working on integrating some the 3D models I import into my physics system by trying to take their "size" and use that as the side for objects within my physics system. When I say size, I'm ...
0
votes
3answers
97 views
C# Monogame Enemy shooting at random intervals
I am currently coding a simple Monogame Space Shooter.
I have almost finished my enemy shooting behaviour,
but I spent a long time on fixing it and got to the point
where I wanted somebody to help me ...
3
votes
2answers
58 views
Skip processing individual triangles or vertices of the mesh
In my game I have a billiard table, and a floor below the table. In typical situation the table covers 80% of the screen, so only small amount of the floor is visible. And I render the table first, so ...
0
votes
0answers
22 views
monogame - how do I distribute a lib / package with content?
I wrote a UI lib for a monogame hobby project I'm working on, and I want to distribute the UI code / lib as open source for others to enjoy.
My question is - what do I do with all the content that ...
0
votes
0answers
36 views
Monogame: Texture anti-aliasing result in transparent edges
This is a follow-up question on a previous issue I faced with a game I'm trying to make. It's in a 2D isometric perspective and the levels are created from individual tiles. A simple 3x3 map can be ...
0
votes
0answers
38 views
MonoGame - Improving 2D array Spritebatch performance
I'm looking to improve the performance of my Draw() method for my tilemap. I've poked around for a few hours and done things like:
Removed any new calls from the for loops where I'm drawing the tiles....
0
votes
0answers
54 views
Monogame: Unwanted borders/gaps around sprites?
I've been struggling with this problem for quite a while now, and unfortunately haven't found a satisfying solution yet. So, here we are.
I'm working on a 2D game using monogame in an isometric ...
0
votes
0answers
17 views
Entity Transform Matrix Transformation (Movement and Rotation) Monogames
I started of by creating an Entity class containing a Transform property of Type Matrix which stores all the transformations such as Position, Rotation, Scale etc. I was able to move the entity and ...
0
votes
1answer
34 views
Xna c# picking model with Ray mouse cursor select the wrong model
i made a small 3D game and i just try to apply a basic sample from here : http://rbwhitaker.wikidot.com/picking
for picking model by the mouse cursor.
For that i use the Ray object and check if some ...
0
votes
1answer
19 views
Cross-Platform CocosSharp Content Pipeline Project?
Just getting started with CocosSharp and Xamarin.Forms and I wanted to move on from using Circles and lines to draw everything. It looks like setting up a MonoGame Content Pipeline project is the way ...
3
votes
0answers
80 views
How to disable Monogame pixel font antialiasing?
I am using Monogame 3.4 (I have held off upgrading to 3.5) and am on Windows 10. I'm drawing using the PointClamp setting (as suggested in this similar question).
Whenever I render text with ...
0
votes
0answers
82 views
Pixel-correct collision affected by scaling?
So I've come to the point where I need to implement a proper and accurate pixel-correct collision, as using any other form of collision methods such as rectangles, circles and etc, are very unreliable ...
0
votes
1answer
43 views
Texture color change not working on custom effect [Monogame] [C#]
I'm new to custom effects (ex. pixel shaders) in monogame, but I've researched a bit and made some test effects.
I've noticed that the color variable "Color.[color]" doesn't change the color of the ...
0
votes
1answer
57 views
XNA / MonoGame - render transparent background using stencil buffer problem (3d)
I'm trying to render 3d texture quads with the following properties:
With lighting (rule out "AlphaTestEffect").
Transparent background (no opacity levels, just binary opaque or transparent).
No ...
0
votes
2answers
37 views
MonoGame rendering text with black boxes?
I have a UI manager that renders a background image and some images and buttons using BlendState.AlphaBlend. This works as intended. However, when I try and draw some text on top of it with the same ...
0
votes
0answers
38 views
Vertices not colored when using custom vertexDeclaration monogame
I am trying to color the vertices of a Mesh Part object which has been loaded from a .obj model.
But since the obj model's vertex declaration does not have color info defined and only normal and ...
0
votes
2answers
61 views
Correct velocity on collision between two rects
I have two moving objects. The objects consist of a velocity vector2, a rectangle and a vector2 as position (origin in the middle of the rect).
Some rough pseudo code for my collision checking ...
0
votes
2answers
79 views
Monogames Most efficient way of checking intersections between multiple objects
I've created a top-down shooter with multiple objects such as enemy AI (tanks), walls, power-ups etc.
At first I was able to create about 300 AI units which aims to move the player character, checks ...
1
vote
1answer
46 views
draw only on stencil buffer monogame
Exactly as the question says. Is there a way i can draw vertices only into the stencil buffer.
Basically i want to perform some operations on some vertices of a mesh and based on the result, draw ...
0
votes
0answers
32 views
XNA - 2D camera orbit around sprite
OK, I have a 2d sprite in a scene and I would like to know the theory behind the camera orbiting around it with an analog stick.
I know the basic code to get the input from the gamepad, but I'm having ...
1
vote
2answers
121 views
How Should I Go About Updating My XNA Game?
So, I've created an XNA game, but I'm not selling it... it's just a private game to give away to my friends, more of a practice project. But say I find a bug, or think of a new feature...
I don't ...
0
votes
1answer
58 views
only one tile being drawn xna c#
I have been looking at tile engines for the past few days and decided to have a go at my own one for educational purposes. I want to use different textures for the tiles of my map, for example 1 = ...
1
vote
2answers
104 views
How to use Monogame Content Pipeline with XML
I have an XML file that I'm trying to import into my MonoGame project using the content pipeline. I'm having trouble getting the MonoGame Pipeline tool to convert the XML file into a .xnb file before ...
2
votes
2answers
83 views
Why does VertexPositionColor seem incompatible with Monogame?
This question is a continuation of What causes this InvalidOperationException when drawing primitives?.
I've been dealing with HLSL shaders in Monogame over the past few days. It has been extremely ...
0
votes
2answers
54 views
What causes this InvalidOperationException when drawing primitives?
I'm working on implementing a 2D masking effect in my current game. To do so, I have two textures, one for the source image and one for the mask. The source image is just a regular texture, so that's ...
1
vote
0answers
68 views
My Character objects are complex, how should I organize their structure?
I'm using Monogame to make a fighter. I have created an abstract Character class that has basic character functionality such as HP, meter, update boilerplate and such, and will be overridden as each ...
1
vote
1answer
80 views
HLSL texture sampler always returns white
I'm facing in problem in HLSL with Monogame that I can't figure out. The gist is that sampling from a texture seems to always return white rather than the texture's actual color. My pixel shader code ...
0
votes
1answer
46 views
Jitter Physics not working correctly. Going through objects and getting pushed back when touching walls
I am trying to use the Jitter physics engine, however, I can't get it to work correctly. For example, when I touch the side of a cube, it pushes me far back in the opposite direction. While I am ...
0
votes
0answers
65 views
Monogame/XNA 3D Floor/Wall Collision
I am trying to make collision work in my game, however, I am so lost on how to do what I want. I have a player model and a floor model with a BoundingBox around both of them. The floor is just a ...
0
votes
1answer
50 views
Right click a location and move towards it (C# Monogame)
I would like the player to move towards the mouse when the player right clicks. The player does move, but doesn't stop when the player reaches the point.
Here is the code.
void playerUpdate(GameTime ...
0
votes
1answer
36 views
Monogame HLSL GBuffer Depth Mysteriously Colored Red
I was working through an older tutorial listed here, and got it to work for the most part. The RenderTarget for Depth is colored red for some reason, and I've been scratching my head trying to figure ...
1
vote
0answers
49 views
Anti-Aliasing Issues in MonoGame
My anti-aliasing is not working in MonoGame. I'm not sure if I'm doing something wrong. See the image below (rotating the screen -- coordinates are all overlapping/adjacent, so should blend them):
...
0
votes
1answer
46 views
XNA - Isometric View not rendering mesh correctly
New to XNA (3D) -- familiar with OpenGL (but it has been a few years).
I've been working on an engine that should be a 3D Isometric View, but I'm having issues with things rendering. I wouldn't be ...
0
votes
0answers
23 views
Monogame Android FileNotFoundException but iOS works fine
I'm creating Monogame shared game for Android and iOS modificating this tutorial https://www.youtube.com/playlist?list=PLE500D63CA505443B but I got stuck at 11th video.
I need to load file Splash.txt ...
0
votes
1answer
56 views
Migrating from OpenGL to XNA (MonoGame)?
I just started working in MonoGame with 3D code. I've used OpenGL before in the past, and I've also built engines with 2D Sprites/SpriteBatch's in MonoGame.
However, I'm getting extremely stumped ...
0
votes
1answer
31 views
MonoGame - scale down a sprite from the middle
I want to animate a texture's scale. First it's scaled up to 10, and then it gradually goes down to 1. However the texture is drawn at Vector2(0, 0) so it doesn't animate as I had imagined it would - ...
3
votes
1answer
75 views
Is it possible to have a diagonal movement animation in monogame/xna?
Is it possible to have a diagonal movement animation in monogame/xna?
As far as I can tell it's not possible to recognise multiple keypresses (ie "A && W" or "S && D") as unique ...
0
votes
1answer
90 views
How to unit test XNA Game object
I'm doing a hobby game project using Visual Studio 2015 and XNA, via the MonoGame implementation. I wanted to do some unit testing, as I recently discovered this feature in Visual Studio, and want to ...
0
votes
1answer
80 views
Accessing soft keyboard on Android via Monogame
I have a game built in Monogame targeting the Android and iOS platforms. I need to develop a login form for the game. I've begun to roll out my own UI components (text inputs, buttons, so forth), as I'...
0
votes
2answers
166 views
Tile Map Collision in 2D Platformer (C# Monogame)
I am trying my hand at making a small 2D platformer. Currently I am trying to implement collision on a tile map. I have been trying to experiment with different ideas but can not find a way for the ...
0
votes
2answers
42 views
Bounding box messed up for .fbx models
I am trying to make bounding boxes for my models. My code works fine if the model is imported as a COLLADA (.dae) file. When I try to import a model that has .fbx extension, my bounding box messes up. ...
1
vote
0answers
34 views
Generate and then rasterize vector shape in Monogame/XNA
I apologize if this is too broad, but I can't seem to find information on this anywhere (perhaps I am searching for the wrong thing?)
Anyways, I'm making a simple game where the player visits ...
4
votes
1answer
106 views
Make models not see through
All my models are see through and I can't figure out why. For example:
Here's what it looks like when you are not looking through them:
And when I look through one of them:
Why can I see the black ...