Tagged Questions
2
votes
4answers
211 views
Can I transfer C# coding I do in Unity for practice to another 3d engine?
If I use a C# coding in Unity 4, can I transfer that coding into another non-Unity engine as long as it accepts C# too? I hope this question makes sense. Thank you in advance.
-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) ...
2
votes
2answers
326 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 ...
-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 ...
0
votes
1answer
138 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
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
2answers
248 views
XNA 4.0, Combining model draw calls
I have the following problem: The levels in my game are made up of a Large Quantity of small Models and because of that I am experiencing frame rate problems. I already did some research and came to ...
5
votes
3answers
169 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
274 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 ...
0
votes
2answers
192 views
Why does unity obj import flip my x coordinate?
When I import my wavefront obj model into unity and then draw lines over it with the same coordinates in the obj file, the x coordinate is negated.
I don't see any option in the importer that might ...
1
vote
1answer
351 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 ...
9
votes
5answers
17k 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
vote
2answers
659 views
Where to attach global scripts in Unity?
As far as Iknow in Unity, every script must be attached to an object. But what is the case with global scripts? For example in a tetris-like game to which object should I attach the element spawner ...
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 ...
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 ...
3
votes
1answer
291 views
Finding closest object to a location within a specific perpendicular distance to direction vector
I have a location and a direction vector indicating facing, I want to find the closest object to that location that is within some tolerance distance (perpendicular distance) to the ray formed by the ...
1
vote
1answer
506 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:
...
7
votes
3answers
239 views
Sort Polygons in order - not working?
I'm fairly new to programming in a 3d world.
I'm trying to create a canvas where all the objects are drawn in order of furthest-to-closest and from bottom to top - so they don't overlap each other, ...
1
vote
1answer
167 views
3D/perspective Top down shooter bullet issues
I'm developing a top-down shooter with multiple levels (ground for ground units, middle level for buildings, top level for air unity).
The problem is the collision. Though I can make the collider ...
0
votes
4answers
708 views
XNA transparent objects?
I've working on a voxel like game like Minecraft, but I'm not sure how I should handle alpha. I've got the world split into chunks and I render each chunk, I have things like leaves which have alpha ...
3
votes
1answer
1k views
How to create a 3D world with 2D sprites similar to Ragnorak online?
As far as I know Ragnorak Online is a 3D game world with 2D sprites overlayed. I would like to use this style in a game I am making in Unity, so I would like the player to be able to select little ...
1
vote
3answers
2k views
3D XNA Tracking Camera
I'm trying to implement a camera that tracks a 3D model in my game. I've taken a look at this MSDN article on creating a 3rd person camera, as well as experimenting on my own; but I don't get the ...
0
votes
1answer
292 views
flicker when drawing 4 models for the first time
i have some models that i only draw at a certain moment in the game (after some seconds since the game has started). The problem is that in that first second when i start to draw the models, i see a ...
3
votes
1answer
1k views
How do you split indices and vertices if their quantity goes over the limit?
I try to draw a flat surface of 500x500 squares which are built out of four vertices by two triangles.
There are 1,000,000 vertices and 1,500,000 indices.
The Reach profile of xna, limits primitives ...
2
votes
3answers
816 views
How to convert screen space into 3D world space?
I am trying to make a 3D model to look at the mouse position. Currently I have this code:
MouseState mouseState = Mouse.GetState();
Matrix world = Matrix.CreateTranslation(0, 0, 0);
Vector3 source ...
3
votes
1answer
676 views
Creating a Model out of Math primitives
Here is a litte sample that I drew in Blender to visualize what I am planing to create:
Cone with spheres sample
I already have the code to generate the cone and the spheres as mentioned in my ...
2
votes
2answers
337 views
Rotating a planet around a ships axis
I have a planet rotating around its own axis (like regular planets, and Pluto) and a spaceship that can fly around in space.
The idea is to lock the player (ship) in a deadzone "above" the planet and ...
4
votes
2answers
695 views
What is road map for Windows 3D game development in C#
I used WPF 3D to make a demo program a while ago. I'm now want to give some other things a shot but find working in WPF 3D ... confining. I have looked at Managed Direct3D but read that it's dead. I ...
4
votes
1answer
347 views
3D models overlapping each other
I have a problem at the moment when I draw some models to teach me more about 3D game programming. The models at the moment overlaps each other from some angles witch makes sense since the game at the ...
0
votes
1answer
292 views
Display crosshair that is diplaying where the ship is aiming at
I am creating a 3D asteroids game. I got the bullets, asteroids, and ship all done. They work perfectly. Now I want a crosshair to display where the ship is pointing at. The crosshair will be a 2D ...
2
votes
1answer
360 views
Xna GS 4 Animation Sample bone transforms not copying correctly
I have a person model that is animated and a suitcase model that is not. The person can pick up the suitcase and it should move to the location of the hand bone of the person model. Unfortunately the ...
1
vote
1answer
689 views
Inaccurate 3D model collision using XNA
I am creating a classic game in 3D that deals with asteriods and you have to shoot them and avoid being hit from them. I can generate the asteroids just fine and the ship can shoot bullets just fine. ...
0
votes
3answers
316 views
Model won't render in my XNA game
I am trying to create a simple 3D game but things aren't working out as they should. For instance, the mode will not display. I created a class that does the rendering so I think that is where the ...
1
vote
2answers
2k views
XNA: draw a sprite in 3d, is that possible?
since now I always used sprited to draw in 2D:
spriteBatch.Draw(myTexture, rectangle, color);
(I suppose the texture is binded internally to 2 triangles and then scaled.)
Now, I'm porting my game ...
1
vote
1answer
694 views
Model not rendering correctly XNA
Basically i am trying to render a model yet it seems to draw polygons that should be behind something, in front of it. So i end up seeing some faces that should be behind something, totally covering ...
14
votes
1answer
4k views
Orienting a model to face a target
I have two objects (target and player), both have Position (Vector3) and Rotation (Quaternion). I want the target to rotate and be facing right at the player. The target, when it shoots something ...
0
votes
1answer
562 views
Messed-up triangles when using VertexPositionColorTexture with BasicEffect
image of the problem
I used Microsoft's BasicEffect tutorial here and the code sample here: go.microsoft.com/fwlink/?LinkId=198921 and got everything to work fine. Next I changed everything to use ...
6
votes
4answers
2k views
What good 3D graphic rendering engines are out there?
I couldn't find good overview of those and decided to ask experienced people. I'm writing in C# and want to learn some 3D graphics stuff. I used to write some 3d scenes and shaders 4 years ago in ...
13
votes
2answers
1k views
Is it clever to use some engine to start game developing?
I started C# programming in order to develop games with XNA later (I always wanted to create some awesome 3D-based RPG or at least a functional one). I read a good book for C# which is ...
14
votes
1answer
4k views
Creating a 3D map for XNA?
Is anyone aware of a nice 3D map tutorial (how to import and use the map) using XNA without any engine but not limited to an external application (like Tiled for 2D maps) ?
I did a search arund here ...
2
votes
1answer
275 views
What options do I have for a 3D game without graphics but yet maintaining physics for later?
I don't believe I expressed well the title for my question so if you believe you can change it for a more suitable title please do so or drop me a comment.
Currently I am starting a 3D game with C# ...
6
votes
5answers
1k views
How should I start playing with 3D?
One of my hobbies (aside programming, of course) is 3d modeling (completely amateur, using 3ds MAX) and I'd like to mix programming with 3d modeling (what a marriage!). So I've read a little about it ...
