1
vote
1answer
97 views

Resolution independent game world in 3D

I'm developing a game similar to Don't Starve - 2D billboards in a 3D world. Now I have encountered a problem with resolutions. I want the player to be able to change resolution, but I don't want to ...
1
vote
0answers
40 views

XNA Library DrawPrimitives throwing primitiveCount error

I downloaded the project from here http://silverlight.bayprince.com/tutorials.php?tutorial=13 and tried adding a new OBJ file with a few thousand vertices listed. The classic teapot works but when I ...
1
vote
0answers
60 views

How would I warp a mesh with code?

I recently asked a question about putting a camera at the head of a 3D human model here and it worked out rather well and whatnot, but there is still a problem that bothers me: How would I ...
0
votes
1answer
61 views

Volumetric Lighting projects models

I've been trying to implement Volumetric Lighting using the code from this tutorial but I've run into some issues, even after basically copypasting the shader code. I'll just show you what's going ...
1
vote
1answer
105 views

Tile textures on 3D models. HLSL shader code maybe?

I'm making a game in C# with XNA. I'm now applying textures to models. However if I change the scale of the model, the texture stretches with it. How can I make the texture tile over the model instead ...
1
vote
0answers
52 views

XNA - Strange Texture Rendering Issue Using XNA BasicEffect [on hold]

I have been reading and working through Riemers 3D XNA tutorials to expand my knowledge of XNA from 2D into 3D. Unfortunately I am having rendering issues that I am unable to solve and I need a point ...
2
votes
1answer
62 views

XNA 4.0 - Strange edges with multilight shader

I am generating a light, a depth and a normalmap to calculate the lightning at each pixel with multiple lights. On both rendertargets, i set the preferredMultiSampleCount parameter to 16 samples ...
0
votes
1answer
65 views

3D Background for a Verticle Shooter: Making it loop?

I know how to scroll a background using spritebatches + 2D background images, but how would I do it with a 3D model?
0
votes
1answer
224 views

XNA 3D Unable to Position Bounding Sphere

I have a collision method which seems like it would work, and it does, but the bounding sphere is always at 0, 0, 0. How do I fix this? Any more code and or details are avaliable upon request. Any ...
0
votes
1answer
136 views

How to rotate model, around its own center?

I have a 3d Model that it wasn't made from the origin of the 3d program, lets say that it was built at (100, 100, 100), I know how to rotate a model, but around the model origin point, (0, 0, 0), now ...
0
votes
2answers
132 views

Creating a collision shape for a complex model

I'm currently creating the collision system for my 3D XNA game. To check collisions with models (especially complex ones) like trees or other plants, I thought about rendering a low poly version of ...
0
votes
1answer
216 views

(XNA) 3D Model Rotation Angles

I'm currently in the process of making a 3d "semi" top down game, the camera comes in at a very high angle near 90 to show off the 3d models. I have a main character which can move in 4 axis (up, ...
1
vote
1answer
113 views

Automatically zoom out the camera to show all players

I am building a game in XNA that takes place in a rectangular arena. The game is multiplayer and each player may go where they like within the arena. The camera is a perspective camera that looks ...
1
vote
1answer
398 views

Correct rotation with Quaternion

I have some problems with a rotating marble. I've tried it with Matrix.CreateFromYawPitchRoll and Matrix.CreateRotation but there were some problems, I think it's due to the Gimbal lock effect. So, ...
1
vote
1answer
121 views

“retro”-look in 3d-XNA-game

In my XNA-4.0-game (which somehow is a bit like MineCraft), I have got some big cubes with small textures (16x16px) on it. By default, XNA just scales them up smooth so there aren't any hard borders. ...
0
votes
1answer
160 views

Performance of XNA 4,0 static vertex buffer / VertexPositionNormalTexture in F#

Good afternoon, I have been toying with the VertexBuffer in XNA just to see what it is capable of. I have done some very minor 3D work in the past, so the concepts are not completely foreign to me; ...
-1
votes
1answer
73 views

Creating and drawing models efficiently

As I am learning the basics of game programming (in xna), I want to start creating simple 3d models and draw them (I'm already able to draw, control and animate them). I want to create the following: ...
0
votes
1answer
166 views

XNA ModelMesh.Draw vs GraphicsDevice.DrawIndexedPrimitives

I am using XNA 4.0 and I wonder if drawing models with multiple meshes is better by filling the vertex and index buffers first and calling GraphicsDevice.DrawIndexedPrimitives() or by simply using ...
0
votes
1answer
194 views

Collision Issues

When I run the collision code, there are no errors, but when I shoot the enemy nothing happens..... Any problems that are blindingly obvious? Class Level Variables public Model model { get; ...
-1
votes
1answer
228 views

3d Wall sliding collision

I'm working on collision for walls in my game and the way I currently have it I get stuck walking into a wall. I'm trying to make my character slide on the walls but still collide. My character moves ...
0
votes
1answer
150 views

Using a Vertex Buffer and DrawUserIndexedPrimitives?

Let's say I have a large but static world and only a single moving object on said world. To increase performance I wish to use a vertex and index buffer for the static part of the world. I set them ...
1
vote
2answers
216 views

What am I missing? (Converting 2D mouse coords to 3D space)

I'm making a networked game which has a birds-eye view and I'm trying to convert the 2D mouse coordinates into 3D space. Right now I have a perfectly flat grid and it intends to remain perfectly flat, ...
4
votes
4answers
810 views

Face-Click Detection ( like in Minecraft )

I am working on a box-based game engine like minecraft and I was wondering how to detect the "clicked face" when placing blocks. I have created this engine in C++ ( DirectX / D3D ), C# ( XNA ) and ...
2
votes
2answers
348 views

How can I actually understand Instanced Geometry Rendering - so that I can implement it the way I need it

I'm stuck trying to implement instanced mesh rendering in my project. Particularly because I am failing to understand how certain components actually function - and how the drawing routine is actually ...
2
votes
1answer
302 views

XNA 4.0 Multiple Textures on same Vertexbuffer

I have been messing around with XNA for a long while now, but have never really done much more than just copy/pasting tutorials and editing those. Since a bit I have been trying to really start to ...
1
vote
1answer
149 views

How to grab textures from a texture atlas to be applied to 3d objects

Fairly basic question, but I'm having trouble on finding information on this sort of thing for beginners. I'm just trying to make cubes with different textures on the sides as a starting point. I have ...
0
votes
1answer
99 views

3D drawing precision problem. XNA

I have a simple scrolling camera positioned 2000 units about the 3D 'floor' that moves forward by 1 unit every frame and looks down on the floor at a point that also moves forward by 1 unit every ...
1
vote
2answers
89 views

Moving models with a matrix

Currently I have a playerWorld matrix which holds the position of my player, just a simple sphere. When I press a key to move the model, it does some crazy thing and flies off the screen really fast, ...
0
votes
1answer
98 views

XNA 4.0 thick triangle strip to fix aliasing issues upon rotation

My triangle strip based lines are disappearing intermittently when I rotate my camera around the X axis. I was advised that this is due to aliasing issues and that "At a certain angle when its edge ...
1
vote
1answer
207 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
105 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
345 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
136 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
124 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
151 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
353 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 ...
2
votes
1answer
223 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
98 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
109 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
191 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
336 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
233 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
443 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
132 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 ...
0
votes
1answer
298 views

Collisions and camera tilt in XNA C# 3D Game [closed]

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 ...
0
votes
1answer
236 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 ...
2
votes
1answer
840 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
762 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
182 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
90 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 ...