Answer Questions
HBOne Rotating an entity problems - (Not camera)
Hi, I'm trying to create a rotate(float pitch,float yaw,float roll) function for my entity class, (The camera one works fine) but despite it working sort of, the model locks up at certain angles(I.e becomes very stiff and hard to rotate, like gimble lock but worse) Here's the function in question [code] public void Rotate( Vector3 Rotation) { Matrix m1 = Matrix .CreateRotationX( MathHelper .ToRadians(Rotation.X)); Matrix m2 = Matrix .CreateRotationY( MathHelper .ToRadians(Rotation.Y)); Matrix m3 = Matrix .CreateRotationZ( MathHelper .ToRadians(Rotation.Z)); LocalRotation = m2 * m3 * m1; Update(); } [/code] I've tried every order possible, doesn't make any differenc ...Show All
Frances83 .X File Information
Hi, I am attempting to write an application that exports mesh vertex and polygon face information to the Direct3D .x file format. I've read the DirectX documentation, and, have saved initial trial meshes to file using the interfaces provided by the X File APIs. Unfortunately, the official documentation only seems to hint at the true capabilities of this format. The best source of information that I've been able to locate online is this chapter from Richard Thomson's book, "The Direct3D Graphics Pipeline", 2004. http://www.xmission.com/~legalize/book/download/21-X%20Files.pdf I've read elsewhere that this file format has an amazing set of features, but the Microsoft documentation describes it in only a ...Show All
ld NEW Getting Started Tutorial
As our first tutorial we have created a getting started tutorial to get people up and running. We make some changes to the Space War Starter Kit including changing the keyboard controls. Please let us know what you think Submit@XNASpot.com http://www.xnaspot.com/Tutorial_GettingStarted.aspx Thanks This is awesome man! Good job! Nice, thats just what we hoped people would do with spacewars. ...Show All
blabus How much of a 3D engine will be included in the XNA Framework?
In the DX samples there are the samples framework. Will that be built upon or will there be a separate 3D engine included or downloadable - What I am looking for is some kind of scene graph - Lighting and materials - Shader loader, constant setter etc. I am guessing since Torque are releasing their engine for this we will not see a full featured engine included but will there be an embryo that is more than the DX sample framework Regards Joachim exal wrote: - It would be great with a white paper regarding scen graphs and other structural information to help out with the implementation We have plans for a lot of white papers, and will be continually adding more after l ...Show All
seco Where is the download?
It is 12:48 pm here (GMT + 1)... in Nuku'alofa (GMT + 13) it is tomorrow... So where the hell is my download link :-D I imagine when they said the 30th, they probably meant some time during business hours... EvilOneSD wrote: Hmmm... the holy grail is here on my desk. Btw... it's "tomorrow" now... What, you have one too :p It's been "tomorrow" here all day... heck, it's almost the day after here! Hmmm... the holy grail is here on my desk. Btw... it's "tomorrow" now... It's just gone Close of Business 30/08/2006 here in Oz. Please Santa, bring it on!!! In Nuku'alofa ...Show All
Lei Jiang Save As for an entire project?
Greetings! When I create a new project in MS Visual C# Express, a full set of folders (bin, obj, Properties) and files are created. I'd like to be able to "source" my projects, but can't figure how to use Save As so that Express will create new folders and files using whats currently open, just with a new name. Hope that makes sense. Thanks! Perhaps because classes, properties, methods etc has turned my mind to mush! Thanks, all! File -> Save All it saves here, or other place you save... My Documents\Visual Studio 2005\ Projects\WindowsGame1\bin\Debug\WindowsGame1.exe you just create a shortcout from this exe file!!! Hope would b ...Show All
Andrew Mackie CreateTexture MipMaps
Hi, If I change the MipLevels below to 1, everything works just fine; However, I also want to create my own mipmaps for the texture and somehow attach them to the texture. I guess my question is, how do you attach mipmaps to the texture I tried adjusting the miplevels to 3. If I use a 4x4 I should have a total of 3 miplevels: i.e. 2x2, 1x1. An Array of 5x5 should be enough. Do I have to play with the SlicePitch I thought that was only for 3D textures. The error I get is: First-chance exception at 0x77c46fe2 in mipmap.exe: 0xC0000005: Access violation reading location 0xcccccccc. Unhandled exception at 0x77c46fe2 in mipmap.exe: 0xC0000005: Access violation reading location 0xcccccccc. A snippets of code is provided below. Thanks ...Show All
Michael Vanhoutte How to import a 3d Model in XNA framework?
Can anyone explain me howto import a 3d model in an XNA project In which format I have to export my model from 3ds max 7 It fails! it gives the following error: Mesh format clone failed :-( Thanks X-Tactic for te converter...i'll try it... I created a .X to .SWM converter. x2swm - http://astaroth.beatbuggy.net:8080/Downloads/x2swm.zip It's not properly tested, so let me know if it works ok. The SWM is fairly simple. Here's how its structured: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=685166&SiteID=1 As far as I know, the current BETA has no loading routines for 3D modell formats. It seems they are part of the content pipeline which will be implemented later, so you must ...Show All
Scheinka reduced texture color depth
Hi! I can't figure out an issue, and it is somewhat critical for the visual quality. I modified my skybox component to use the content pipeline. This means that the content pipeline should take care of loading all thextures defined in the .x file. And it does that, but the problem is that when i run the program, my skybox textures look as if their color depth has been reduced to 16 or less bits per pixel. For the skybox I used a .x model that contains a cube with faces pointing inwards. I took it form an SDK sample, and modified the textures. I even tried making all textures into .dds What should I try next Did anybody encounter this problem also The quickest way to work around this is to add the mode ...Show All
cfuess Visual C# 2005 Express, DirectSound - WAV data
Hi Is there a way to get into the data from a wave file Sure I can play sounds, add effects too, but I wanted to draw a waveform so I wonder if there is a way to put a wave file into some table/array. This would help me to make an FFT of a signal. Some example would do Greets! There are no built-in features of DirectSound that will help you write your own FFT or do waveform analysis. Thanks, it helped a lot, but I was wondering if it is possible using Direct Sound. Somehow This project can help you find out how to read a .wav file, this project has an FFT implementation... ...Show All
Mateusz Rajca Some Halo-like video clip I found...
I was a heavy critic of managed games and performance but I'm finding less to argue about these days and finally made the switch. This is not mine but it's a video clip of one of Halo's multiplayer maps that I found on YouTube. The textures are a bit blurry but I doubt the art is the concern right now. It just proves Halo is within reach with C# :) I think that is quite awesome and worth sharing. Enjoy... http://youtube.com/watch v=PjAyMZkMckA Very slick. Thanks for sharing! Roguebot wrote: I'm assuming he imported the models in from Halo Custom Edition into 3ds Max then exported them as .x or .fbx files. I wanna know if the collision is per polygon or wha ...Show All
Paul Fuhrmann Direct3D mobile and Macromedia Flash
Hi! Does anybody know if Flash 7 (mobile edition) takes advantage of MS Direct3d mobile to bust the performance in Flash apps We are testing an application on Win CE device and the performance of the flash app has been being really poor. We expected an improvement after installing Direct3D, but the performance was the same (poor). Any clue Thanks in advance There is no connection between Flash and mobile Direct3D. You should contact Abode for recommendations on improving performance of Flash-based applications on ...Show All
ClydeCoulter Internet and network gaming
Im still green as far as programmers go. I need to know, is there a way to get two copies of my game to communicate over a network using only C# and XNA or am I looking at integrating it with a different language. Also for internet gaming, will I need to set up a server for my game or is there somewhere I can subscribe to (or ultimately better "FREE") where I can set up a chatroom and main access point for those who want to play my game. I also want to keep gamefiles on a central site if possible, kinda like Blizzard does with Diablo II, in order to cut down on cheating. Lastly covering cheating itself, does anyone have any hints on how I can protect the internals of the game so people cant hack it (imposible I know) but ...Show All
John Clien .xnb files are huge
Hi! Our 2D game is getting huge because of the non-compressed .xnb files all our graphic are stored as by XNA. A single background image in 1280x720 pixels is using 3,5 MB ! What can you do to get file sizes for graphics down See here Hi Jim! Could you please explain more on how to do that (or link to a guide) Maybe I need to explain myself better. When the background images are stored as compressed jpg's they are about 75 KB in size for at 1280x720 resolution. When they are published in our XNA game they are about 3.5 MB in size (in xnb format). So the question is how to compress images in XNA when deploying games ...Show All
Tridex Create Vector from Angle
I have an angle of rotation in radians. Is there an easy way to convert this to a vector, as I have a 2D sprite ship I want to be able to rotate, and move in the direction of the rotation Simon Can you precise what kind of movement you are tolking to Because "the direction of rotation" has two meaningful values only - clockwise and counter-clockwise, relatively to rotation axis. Do you mean something like this public Vector2(float angle) { X = (float)Math.Sin(angle); Y = (float)Math.Cos(angle); } MattDavey wrote: Do you mean something like this public Vector2(float angle) { X = (float)Math.Sin(angle); Y = (float)Math.Cos(angle); } ...Show All
