Tagged Questions
1
vote
1answer
68 views
XNA draw 3d graphics in 2d game
I am programming a simple pool game in XNA. I am using Farseer for simple 2d physics but I want to use 3d graphics. My problem is I can't get the rendering to work.
I have one model for the ball and ...
-2
votes
1answer
73 views
Cannot get 3D mouse coordinantes [closed]
I'm using viewport.project() to find my mouse position in 3D space. I have my projection, view and world matrices defined in the same area that they are used to draw the model. Code is below:
NOTE: ...
-1
votes
2answers
102 views
XNA moving towards 3D point, RTS style
I looked around to see if this question had already been asked- maybe it has, maybe it hasn't, I don't know.
I'm trying to make a 3D RTS game. Right now we're trying to get the basics on the table. ...
0
votes
1answer
94 views
XNA doesn't sometimes draw 3D models properly [closed]
I am developing an 3D platformer game with XNA framework and I am experimenting some errors in drawing. Here is some images of the errors, that appears in 3D models and in planes:
In the first ...
0
votes
1answer
83 views
Changing textures on a Model messes up antialiasing? (XNA)
Here is a code sample:
blockModel = game.Content.Load<Model>("Models/Cubes/Cube"); //this is a .fbx file, made in blender
absoluteBlockTransforms = new ...
-1
votes
1answer
71 views
XNA 2D Particle in 3D world [duplicate]
Is it possible to make 2D-sprite particles in a 3D world that always face towards the camera?
-1
votes
2answers
95 views
3D turret tracking in XNA 4.0 [duplicate]
I've beeen going through Reimer's flightsim tutorial and wanted to expand it by adding anti air turrets shooting at the ship. Im still new to programming in c# and xna and also a bit horrible in maths ...
0
votes
1answer
120 views
How to make a cube mesh and texture for XNA use?
I have a very specific question which I feel should have a very short answer, but which I can't seem to find despite Googling on and off all day.
I'm trying to start with 3D graphics, and I read up a ...
1
vote
1answer
82 views
Moving an object toward another object on sphere knowing their quaternions
I have a sphere centered in world origin. On the sphere surface I have two objects and I know their quaternions (rotation around sphere).
Currently my movement works on Vector2 inputs (cannot change ...
-2
votes
1answer
88 views
Help me debug my 3-d collision code [closed]
I have been havaing a problem doing 3-d collision in a game i have been trying to make for several weeks now. What i am trying to do is prevent a PlayerModel object from colliding with Obstacle(cube) ...
1
vote
1answer
75 views
How do I export Daz3D characters into an XNA format?
How do I export 3D animated characters created in Daz3D studio to a format suitable for inclusion in XNA video games? I'm looking for instructions on how to make sure weight, bones, vertices and ...
0
votes
1answer
138 views
xna: Methods for having sprite characters in 3d game?
Methods for having sprite characters in 3d game?
I am making a game much like Doom. The world is 3d but objects and characters are 2d sprites. I am not asking about billboarding objects. I am asking ...
1
vote
3answers
155 views
XNA seams between 3d primitives in tiled terrain
Every time I draw two primitives side by side, in this case two quads, I always get this seam-like tearing effect right along the sides of them. I'd like to think there is just an easy fix, but the ...
-1
votes
2answers
159 views
3D game demo in XNA [closed]
Does anyone know of a decent 3D game tutorial with source code?
I'm really new with 3D development for XNA and have found that the best way to figure out how to code for something is to look at ...
2
votes
2answers
322 views
3D Collision Detection with XNA
So I'm trying to implement some collision detection in XNA. I'm aware of the Bounding Spheres, but I worry with the accuracy, most items in my game are cubic in nature, so it seems very square-peg in ...
0
votes
2answers
106 views
XNA Game arhitecture, sharing vertices between objects
I'm practicing primitives rendering in XNA and I want to create something like pipe or tunnel.
I have base class called PipeSegment from which I inherit classes like RotatingSegment and NormalSegment ...
-1
votes
2answers
132 views
Collisions and camera tilt in XNA C# 3D Game
I am working on a game programming class project and need some help. I cannot find a good tutorial on how to get these 3 frictionless spheres to collide with each-other, the surface and the walls of ...
-4
votes
1answer
211 views
Great tutorial for 3D XNA [closed]
I have finished learning 2D XNA and created a few simple games.
I want to learn the stuff below. Please recommend tutorials, books etc.
3D programming with concepts.
Game planning, Stages planning, ...
0
votes
1answer
136 views
How to make racer map?
Hi everyone does 3D racer games use heightmap to build tracks or programmers just use easier solution ? I need to build only track space(road) without fill all hectares with trinagels and more ...
1
vote
1answer
475 views
XNA 4.0 - Transparent 3D model
I have a little problem with my 3D model (.fbx) rendered in XNA, look at screenshot.
Screenshot:
It should be a lego brick, which was modelated in Blender, then exported to .fbx and added to XNA ...
2
votes
3answers
301 views
2d shapes in XNA 4.0?
Having some experience of XNA but none of 3D programming. I have an idea i want to realize but i have not decided to do it in 3d or 2d. Im not sure which one will be best in XNA.
I want to have a ...
1
vote
1answer
117 views
how to move the camera behind a model with the same angle? in XNA
I'm having difficulty moving my camera behind an object in a 3D world. I'd like to have two view modes:
for fps (first person).
external view behind the character (third person).
I've searched the ...
1
vote
1answer
73 views
XNA 3D coordinates seem off
I'm going through a book, and the example it gave me seems like is should work, but when I try and implement it, it falls short.
My Camera class takes three vectors in to generate View and Projection ...
3
votes
1answer
72 views
If I use my own normal values, should I turn off winding order culling?
I've discovered that I managed to program a series of boxes with indexed vertices in such a way that every other triangle (Half of each face) has a backwards winding order.
As a result, XNA is ...
5
votes
1answer
184 views
Why does my VertexDeclaration apparently not contain Position0?
I'm trying to get my code from calling each individual draw call down to using at least a VertexBuffer, and preferably an indexBuffer, but now that I'm attempting to test my code, I'm getting the ...
0
votes
2answers
199 views
3d vertex translated onto 2d viewport
I have a spherical world defined by simple trigonometric functions to create triangles that are relatively similar in size and shape throughout.
What I want to be able to do is use mouse input to ...
5
votes
3answers
168 views
Depth is disabled - How to turn on?
In XNA 3.1 is there any other way to disable depth in 3D Worlds using DirectX models other than
GraphicsDevice.RenderState.DepthBufferEnable = false;
?
The reason for my question is I have quite a ...
0
votes
0answers
272 views
C# XNA 4.0 multitextured cube [closed]
So I am following this tutorial on how to draw a cube in XNA and I ran into a problem. Ok so my shader can only have texture right? I need to have a texture on the front and back of my cube. So I ...
1
vote
1answer
350 views
Rendering a 2D Sprite in 3D space
I am currently working on a game in XNA 4.0 where I want to implement 2.75D, like in Paper Mario. I feel like it has something to do with z-buffering a Texture2D and drawing that, but I really have no ...
2
votes
1answer
220 views
Does XNA 4 support 3D affine transformations for 2D images?
Looooong story short I'm essentially trying to code Mode 7 in XNA. Before I continue bashing my brains out in research and various failed matrix math equations; I just want to make sure that XNA ...
1
vote
1answer
182 views
Viewport.Unproject - Checking if a model intersects a large sprite
Let's say I have a sprite, drawn like this:
spriteBatch.Draw(levelCannons[i].texture, levelCannons[i].position, null, alpha, levelCannons[i].rotation, Vector2.Zero, scale, SpriteEffects.None, 0);
...
0
votes
0answers
307 views
3D Graphics with XNA Game Studio 4.0 bug in light map?
i'm following the tutorials on 3D Graphics with XNA Game Studio 4.0 and I came up with an horrible effect when I tried to implement the Light Map
http://i.stack.imgur.com/BUWvU.jpg
this effect shows ...
9
votes
5answers
16k views
Visual Studio 2012 and Game Development
Alright, I think it's a simple question, but I got difficulties to find some answers around.
I already read that XNA wouldn't be in Visual Studio 2012. I recently learned to use XNA, but since I ...
-1
votes
1answer
738 views
Asset missing problem XNA
I'm using VS2010 with XNA 4.0 and I'm trying to load an FBX model with texture on the screen. The problem I'm having is this error:
Missing Asset: C:\Users\ChocoMan\Documents\Visual Studio ...
2
votes
1answer
2k views
Should I use XNA or Unity to build a video game? [closed]
My friend and I are planning to make a video game (like Slender) where the character is stuck in a building, when lightning strikes, and the lights go out and your objective is to find the back-up ...
1
vote
1answer
202 views
Highlight edge on 3d cube in directx
I want to make a 3d editor in DX9/XNA for a project I'm working on. I'm just thinking through how I would go about certain tasks and I'm stuck on one particular thing, which is crucial to making the ...
1
vote
0answers
407 views
Microsoft XNA code sample wont work with blender model
I downloaded this code sample and integrated it into my game
http://xbox.create.msdn.com/en-US/education/catalog/sample/mesh_instancing
It works with the model that they supplied, but throws and ...
3
votes
3answers
678 views
Textureing subdivided Icosahedron in XNA, seam problem
*Look below for the updated source code*
I have started to to make some different types of objects and create them by code in XNA. Right now I have finished the code for creating a Icosahedron. And ...
2
votes
1answer
166 views
Overlapping vertices on sphere?
Iv started up doing some programming in XNA as Iv been doing C# for several years and would like to start do some 3D work with C# and XNA framework.
Right now Im trying to build a sphere by code. It ...
0
votes
1answer
237 views
3d world vertex translation to go to 2d screen coords
My technical english is a little rusty so to avoid misunderstands please be patient with me :)
I will try to be brief and clear
Situation:
- I have a 2d sprite character on the screen
- I've just ...
0
votes
0answers
213 views
Map 3D space to 2D screen space?
Could some one help me to understand this code and explain it?
It's about converting from 3D space to 2D position, so that I can use it in another Effects (.fx) files, but I am a bit confused.
float ...
0
votes
1answer
222 views
What data structure should I use for a 3D platformer game?
I am developing a platformer game with XNA framework like Metroid but in 3D. Now I have to draw models and I have the question of the title. I read many post and I know that the main data structures ...
5
votes
2answers
1k views
3D terrain map with Hexagon Grids
I'm working on a hobby project (I'm a web/backend developer by day) and I want to create a 3D Tile (terrain) engine. I'm using XNA, but I can use MonoGame, OpenGL, or straight DirectX, so the answer ...
1
vote
1answer
505 views
Drawing 2D Grid in 3D View - Need help with method
I'm trying to draw a simple 2D grid for an editor, to able to navigate more clearly around the 3D space, but I can't render it:
Grid2D class, creates a grid of a certain size at a location and should ...
0
votes
1answer
185 views
Weird appearance for a 3D XNA ground
I wanted to add a ground so I can know the position of a helicopter in the world. But the ground appeared in a weird way:
http://i.stack.imgur.com/yTSuW.jpg
The ground had the following texture:
...
2
votes
1answer
431 views
When to use Euler vs Axis angles vs Quaternions?
I understand the theory behind each but I was wondering if people could share their experiences in when one would use one over the other
For instance, if you were implementing a chase camera, a ...
5
votes
2answers
210 views
I need advice on creating animal 3D walk cycles in XNA
I want to purchase a number of 3D models from TurboSquid and animate them in an XNA game.
I wrote a lot of games from 1985-1999 and have recently become involved with XNA. Now I would like to port ...
0
votes
1answer
335 views
Attaching two objects and changing their world matrices accordingly
I'm having a hard time wrapping my head around the transformations required to bind two objects together in either a two-way or one-way relationship. I will need to implement both types.
For the ...
-4
votes
1answer
702 views
2D top down game - XNA or Unity? [closed]
Hey I want to develop a top down 2D game, probably with Sprites (although 3D models with a fixed camera is an option too).
I know it's not a very specific question - but generally speaking which is ...
0
votes
1answer
109 views
Map a fbx model between 2 VertexPositionColor Positions
I have created a VertexPositionColor position and drew it in the XNA like this
VertexPositionColor[] backbone;
backbone = new VertexPositionColor[2];
backbone[0].Position = new Vector3(0, 22, 0);
...

