0
votes
1answer
49 views

x-inverted obj importer in BulletSharp - whats wrong?

See importer C# code at the repository. Screenshot: Left: bullet imported version, right: correct 3ds max version. It's somehow inverted. If you think that left part is just 180 degrees rotated you ...
-1
votes
1answer
67 views

Why doesn't my XNA model render at all? [closed]

I am trying to draw a 3D Model in XNA 4.0, but it doesn't show up. I think I made it correctly, but maybe not. My code follows: Here is the LoadContent and Draw method of my Main class. Spaceship is ...
2
votes
2answers
88 views

Finding a specific point in a graphic model in code

I'm not really sure what I'm asking, so sorry for the bad title. I'm still new to game programming and especially the "game specific parts" like models and graphics. Let's say I have a model of a ...
1
vote
1answer
192 views

Get screen bounds of 3D object

I'm trying to draw a 2D plane that has minimum dimensions to contain a 3D model (a sphere). How do I calculate the minimum size and position of the rectangle to completely cover a 3D model on screen?
2
votes
1answer
145 views

xna model scaling - model is bigger than world

I'm having trouble scaling my model in XNA with C#. The model is bigger than the world itself and I can't seem to scale it down. Below is the code I'm using and an attached screenshot. How can I scale ...
0
votes
1answer
205 views

XNA & HLSL - rendering a model with its original materials (colors)

I am currently trying to code my own HLSL effect file, in order to render an FBX model I made with Autodesk maya, and to which I have applied some materials (colors). before trying to write an effect ...
2
votes
1answer
243 views

Sketchup model renders wrong in XNA

My XNA model renders wrong. It should render like that: But it renders like that: The background doesn't matter. It's just the model that renders wrong. Here is the drawing code: protected ...
3
votes
1answer
405 views

How rotate a 3D cube at its center XNA?

I try to rotate a 3D cube on itself from its center, not the edge. Here is my code used. public rotatemyCube() { ... Matrix newTransform = Matrix.CreateScale(scale) * ...
1
vote
0answers
181 views

3D Animations in XNA 3.1

Well, guys. I'm in a Game Design class at school. Before you ask "WHY ARE YOU USING 3.1 INSTEAD OF 4" -- I would like to point out that C# 2008, and .NET framework 3 is NOT my preferred environment, ...
4
votes
1answer
230 views

How do I get a Model to add a name to it's Texture(s) in the XNA Content Pipeline

I know that a texture's name is not preserved when it's loaded in. I also know that you can give it a name. For example: Texture2D texture = content.Load<Texture2D>("MyTexture"); texture.Name ...
0
votes
1answer
117 views

How stoper one annimation model on XNA?

I do not understand how to pause an animation of XNA. I can "Start" the animation of my model but not stop it. I use SkinningSample_4_0 sample dll Here is my code to use. Here is my code to use. ...
1
vote
2answers
336 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 ...
0
votes
0answers
145 views

Keep 3d model facing the camera at all angles [duplicate]

I'm trying to keep a 3d plane facing the camera at all angles but while i have some success with this: Vector3 gunToCam = cam.cameraPosition - getWorld.Translation; Vector3 beamRight = ...
0
votes
2answers
299 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 ...
0
votes
1answer
447 views

Why does my 3D model not translate the way I expect? [closed]

In my first image, my model displays correctly: But when I move the model's position along the Z-axis (forward) I get this, yet the Y-axis doesnt change. An if I keep going, the model disappears ...
2
votes
1answer
253 views

Texturing voxel faces separately

I am creating a 3D level editor which should be used to generate the very basic layout (level geometry) and a few basic game-logic entities of maps used in my game. So far, I decided to use voxels (i ...
0
votes
1answer
161 views

Can someone explain this occurrence with a fbx model in xna?

Because this is kind of weird to explain, let's show you what I mean. This is in my game. When I import this base ship model, it should be at (1000,1000,1000), but the model acts like it's at ...
3
votes
1answer
296 views

Retrieving model position after applying modeltransforms in XNA

For this method that the goingBeyond XNA tutorial provides, it would be really convenient if I could retrieve the new position of the model after I apply all the transforms to the mesh. I have edited ...
4
votes
2answers
981 views

Rendering a lot of Models at once with XNA

In an hexgrid based game, I render all terrain tiles as a separate model, reusing the same texture objects on all similar tiles. The tiles is a pretty simple model. When the terrain is set to be at ...
3
votes
1answer
947 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
1answer
112 views

Problem displaying model

I downloaded the FBX of this free model: http://www.turbosquid.com/FullPreview/Index.cfm/ID/485548 Yet when i try and display it in my project foreach (ModelMesh mesh in player.Meshes) { ...
4
votes
1answer
427 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
402 views

Rotate player to face direction it's moving in 3D space

I'm making a 3D game in XNA4.0. How do I rotate a model to face the direction that the user is pressing. I assume I need to set its look at to the direction being pressed, but can't figure out how to ...
0
votes
3answers
405 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 ...
4
votes
1answer
500 views

3d Model Scaling With Camera

I have a very simple 3D maze program that uses a first person camera to navigate the maze. I'm trying to scale the blocks that make up the maze walls and floor so the corridors seem more roomy to the ...
1
vote
1answer
796 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 ...
17
votes
1answer
7k 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 ...
2
votes
3answers
3k views

In which software do the professional game developers create 3D Model?

I am just thinking about beginning game development in xna c#. However, I don't know (and no tutorial teaches) how do professional game developers create a 3D Model/Scene. How can we create a ...
2
votes
1answer
3k views

Custom effects on Model in XNA

If I have a Model that is drawn with a different effect occasionally, what is the typical approach to this? Models have effects stored in each of their meshes, and you seem to be forced to use those. ...