Answer Questions
Terry Downing XNA 3d models invalid texture
Hello, I wish to use my 3D models I've created in 3D Studio Max. This is possible using the export function. XNA can handle the FBX format. However, employing this exported model gives the following error: Error 2 Invalid texture. Face 0 is sized 367x480, but textures using DXT compressed formats must be multiples of four. It is hard to believe all of my textures should be of the format multiples of four. This leaves a lot of the available 3D models in the dark. Is there any way of avoiding this error Or am I missing something Thanks in advance. Thank you, I'll keep this in mind. Obviously this is the way to create models otherwise it'll only cause more troubles in the future as I read your post... ...Show All
marcyduan Where'd fedit go?
I've been tasked to mess around with Force Feedback, and fedit is gone in the latest DirectX SDK release. Bring it back, please. You should email this request to directX@microsoft.com for proper consideration. ...Show All
RDSC The future of 3D grahics programming with managed code (Microsoft technology)
Hi! I would like to ask some information about the future of 3D graphics programming with the managed code. Yesterday, I came across an article where I read that Microsoft(MS) will stop the developoment of DirectX with the managed code, with the managed code I mean C#, Whidbey C++ and VB. The question I have in my mind is : "What's next ". I have been developing numerical simulators during the last two years. My preffered language is (Managed)C++. The reason I chose Managed C++ is that - I thought that - I can use the MS technology in other parts of the developement, in addition I develop a code which is consistent with the C++ norms, altough Whidbey C++ is violing the traditional C++ syntax - I would not predict this two years ...Show All
Stelresort CreateDevice hangs in multithreaded environment
Hi, I'm working on a multithreaded renderer on DX9. I've ensured that the window used by the device is created on the same thread that is calling CreateDevice to avoid the deadlocks mentioned in the SDK documentation. I have one very weird behaviour: the very first time (read the first one after a computer reboot) i launch my application on a multicore machine (running 2000/XP/Vista), the CreateDevice will hang if want a fullscreen presentation. If i want a windowed presentation, it's all fine. Everytime i'll restart the app it will work fine. Any idea why i could get this weird behaviour Thanks in advance, /David ...Show All
Roberto Garavaglia How to do a screen fade?
Has anyone come up with a nice slick class that does simple fade-in and fade-out to black screen transitions I started working on one and it continues to get more complicated and was curious if anyone else had already done this. If you have are you willing to share your code, or explain how you approached it Thanks. Mike My solution would be to render the whole scene to a texture an render the texture with 2 triangles to screen. With the color variables of the triangle vertices you could change the overall color of the scene (fade to black, fade to red for hits). This technique also allows you to apply realtime fullscreen HLSL effects like grain, glow or blur. Dra ...Show All
chronozphere Sprite scaling and blending
OK, I've searched through a couple posts here and didn't find anything that fixed the problem. I'm scaling sprites to draw GUI controls and I'm getting funky results. Here's what I get (blown up 6x to show the problem). I'm drawing the box in chunks - upper left 4x4 pixels, upper right 5x5 pixels, left border, right border, lower left 4x4 and right 5x5 pixels, and upper and lower middle sections.I don't think I have to explain what the problem is. I've tried setting texture filtering, destination blending, but nothing seems to affect it. Here's the sprite I'm using to draw. Maybe I just need to get some sleep. Jim Perry wrote: Sorry for the bad explanation. No, like I said, I think I was just being dense. Typica ...Show All
KatyG Game Distribution
I am trying to get a very simple 2D XNA game to run on other peoples machines; but when I send them the relevant files, they all complain of getting some form of error report. They all claim to have the requirements (XNA Framework, latest DirectX and .NET Framework 2.0) installed, but it seems something, somewhere isn't doing its job. One of the people in question only has a Radeon 7000, so it is understandable why it isn't working. But the other two have a GeForce 6800 and a 7300GS which should be more than enough! I have tried both ClickOnce installers and binaries from both Debug and Release directories. They all worked fine in folders on my machine, but on other computers the installers installed fine, but just throw up a windows error ...Show All
Christie Myburgh Log file component
I knocked up a quick log file component based on the C++ one available in the Peon Game Library. It has four levels of importance but uses a bit mask so that more than one type can be used at a time. If something tries to use a log level that is not wanted it will not be written to the file. The levels are Info, Debug, Error and Fatal. Info is the default level but this can be changed using the LogLevel property (LogLevel = LoggingLevel.Info | LoggingLevel.Error etc.). After adding the component it would be wise to open the log file stream using OpenLogStream so that other components can use it as quickly as possible. Calling CloseLogStream in the game's OnExiting method would be advised too. There is a interface service defined so that i ...Show All
Kerry_Dixon How replay music in XACT??
I want to replay Music(ex : BG) using "cue->play()" or "SoundBank->Play()" func is played Once.. How replay Music forever answer plz.... Thank you for your kind answer!! Ah~~~~~~!! Thank you~ !! When authoring the content, you need to set the "LoopEvent" property of Sound >Track # >Play Wave to "Infinite". To do this: 1. Open the SoundBank that contains the sound you want to loop forever. 2. Select the sound (in the top left window of the SoundBank). 3. Select the "Play Wave" event for the track within the sound that you want to play forever (in the top right window of the SoundBank). Note that most sounds will only have a si ...Show All
kabukimaster Creators Club Benefits
"Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." Am I missing something here Where can I get access to these 'specialized starter kits' and 'samples' Have I been deceived into buying this subscription If so, is there some way I can get my money back Maybe I'm missing something... "Both subscriptions provide aspiring game developers with access to ... specialized starter kits" "The Creator's Club isn't for getting ...Show All
thedewd The woes of boxed objects (and foreach)
Here's another post by someone who has learned everything through mistakes, not learning it right in the first place . :) I've been working on some nasty GC issues on Xbox360 for some time now, and through RPM and CLR Profiler I've started to make some sense of things, so I thought I'd let everyone in on my experience so that the next guy (or gal) with these issues can have some info. So here's the story: Remote Performance Monitor showed 240 boxed value types per delta. Having no idea how I was creating boxed objects (or what they are), I ran the CLR profiler--as it would happen, I had 4 foreach calls per frame--for a postprocessing effect. According to CLR Profiler, the foreach calls were creating System.Collections.Generic.List<T> ...Show All
mksql Can I use standard tcp/ip protocol on XBOX360?
I want to make a mmo card game, and I already have a server, and I want my program running on xbox360 connect my server on a pc server running windows. Can I use standard tcp/ip Xbox XNA has no networking at all in version 1.0. Assuming 360 is like regular X-box: Even when it has networking, the "TCP" protocol they use is actually overloaded on top of UDP, to make NAT punch-through easier, and to work well with X-box Live voice communication. Last, the entire X-box Live network is a little bit like a VPN that tunnels through the regular Internet, and ends up in Microsoft data centers. If you want to run a server for an X-box title, I believe you need to partner with Microsoft to get into th ...Show All
SavitaHK Racing!
I have completed most of the game logic of a 3D xna racing game. However, there is still much to do in the graphics department (shadows, lighting, better-looking models, etc), but, like many other programmers, I am not that great at art. And, I have yet to add any sound effects. However, please check out the game and give me some feedback so I can make my game better. Link to homepage: http://xnamatrix.com (ugly, i know, but i just threw it together in the last ten minutes). Direct link: http://xnamatrix.com/bin/puzzle_setup_0.0.1.7.exe I hope you have at least a bit of fun playing it! I'm not sure if you've realized this or not, but in your latest build where you have a mini-map, it only works if you have two or ...Show All
peternik rotating in degrees
I'm not very old and haven't learnt phisics or radians so how could i convert degrees in to radians so i can just use degrees to rotate my sprites. I understand radians might be easier to use if i wanted to constantly rotate my sprite but all i want to do is rotate it X degrees i found this: http://upload.wikimedia.org/math/1/6/2/162fb4bdc4be8fa862b77a4ac5ecbba6.png it might help but i don't know how to reverse it so x degrees = y rad thats what i needed thankyou or... float rad = MathHelper.ToRadians(deg); -Mike correct me if I'm wrong but would i use something like this double Rad = Deg * (Math.PI / 180); ...Show All
Zulbaric C# and how it works with XNA
Howdy guys and gals, I just downloaded the Visual Studio 2005 and the XNA thingy. Can't recall which one. I've never done anykind of C programming before. I'm wondering if say I found a tutorial or book on how to use C# for games. Would the examples work in the XNA program Thanks for any feedback. Excellent, thats the answer I'm looking for. Thats pretty cool that there coming up with a book for the XNA stuff. Thanks for the info man. XNA is just a Framework focus to develop games for Windows XP (and higher OS like Vista) and the XBox 360 console. Is designed to work with C# Express edition only (for now, i guess). A very good book to start is "Beginning C# Game P ...Show All
