Answer Questions
Ryan Garaygay FX Composer and DirectX Extensions for Maya (and Sas?)
I am writing my effect files with FX Composer, it's a really helpful tool. I'd like my artists to be able to apply the various effects from within Maya 8. In another thread, someone very helpfully provided a Maya 8 version of the DirectX Extensions, but I am still encountering some difficulities. The documentation of the DirectX Extensions are extremely sparse and I can not seem to find any independant tutorials or anything on it. I'm beginning to wonder if anyone else really even uses the extensions and why or why not. In any case, I'm able to load an FX file and it shows the parameters, but I can not get any sort of binding to work. I've tried normal semantics, I tried a SasBindAddress annotation, and a few other things, but not ...Show All
Daffodils XNA 2D Collision Detection using Quadtrees
I've seen a few posts on collision detection, and though I'd post an article on how to write a collision detection engine for your game. Take a look at: http://mbebenita.blogspot.com/ I'll follow it up with some source code as soon as I get a chance. Michael B. The link does not work :( Will there be any sample code How can you separate the bullets in different regions Is that we use generic list to store the bullets in each region If so, assume there are 1000+ bullets moving in each frame, will the update process slower than just checking all the bullets thank you very much I don't see this situation as a problem. Suppose objects A, B, C overla ...Show All
Jon Braganza Managed C++ /clr:safe and XNA 360 seems to work...
Thought people might be interested to know, that i've successfully ran Managed C++ code compiled with /clr:safe on the 360. I'm not completely sure there aren't any corner cases where an invalid IL opcode will be generated but so far I haven't been able to do it. Some notes from my blog here : http://blog.deanoc.com Once I'm happy its working 100% I'll put an example project and a guide how to do it. Deano nice! good job :-) though it won't sway me from my precious C#, perhaps it might help a hardcore c++ person give it a chance ...Show All
MikeHiland GetVariableByName returns value?
when i call effect->GetVariableByName it always returns a value, i never get NULL back even if what im looking for does not exist, how can i check if a variable with a certain name exists (without having to iterate over all variables in the shader) calling IsValid on the returned pointer does the trick ...Show All
Richard78 Question regarding best way to design my engine
Currently I have a system (quite basic) with a character moved by a 360 pad, a level with about 10 objects in and I'm wondering the best way to handle my game logic. My Question is really this - I like the way that in Xna the Update and the Draw are seperated - however to use them as I would *assume* they are intended, draw *should* only really draw things, and Update should be where the game logic is updated: To use what i think Xna wants me to do is //Pseudo code void Update() { foreach (LevelObject lo in LevelObjects) { CheckForCollisionWithMainCharacter(lo) } } void Draw() { foreach (LevelObject lo in LevelObjects) { Draw(lo); } } Which seems slightly innefficient to repeat the same loop twic ...Show All
MarcoB PNG Alpha Channel
I've imported a semi-transparent PNG to use for a sprite but the alpha channel isn't taken into account. It just renders as a fully opaque texture. How can I enable alpha channel support andyfraser wrote: I suspect you need to add SpriteBlendMode.AlphaBlend as a parameter to SpriteBatch.Begin. I tried this but it just ended up making the colours a little lighter. The image behind the sprites didn't shine through, as it were. Although, while I think about it, the image behind the sprite was being rendered in a different SpriteBatch. Would this make a difference Use only one Spritebatch and see what happens. nobodyman wrote: Are you seeing this b ...Show All
cpf GSE - IDE Problem
Installed VC# Exp and GSE on Dell XP SP2 already satisfactorily running VS2005... Can create and run WinApps with no problems...however when I create a WinGame, the project files (.sln, .cs, etc) get created, Game1.cs displays in the VC# IDE, but Solution Explorer is blank(-contains no project tree)...can compile and run empty project....however if I click on Game1.cs, VC# IDE craps out with a "VC# has encountered problem and has to close' dialog box. Downloaded an XNA project off a web site and experienced screwy results when I loaded it...loads, compiles, runs OK but nothing displayed in Solution Explorer....however, can load individual files and navigate thru or modify them without IDE crapping out... Have no idea what's g ...Show All
dhayashi "The project type is not supported by this installation." with Beta 2
I've installed VC# Express (side-by-side with my VS Std) and then XNA Game Studio Express Beta 2. When I start a new project I can see no XNA templates, though. When I try to open an existing example (built with beta 2) I get the error message "The project type is not supported by this installation." I've not had XGS beta 1 on this machine. I've tried uninstalling both XGS and VCS and reinstalling to no avail. Please help. How can I get XGS to work /Mikael Please let me know if this is already what you tried, but I should have specified a slightly different approach for your case. After running vcsexpress.exe with the /log option, I know you cannot create a new project because there are ...Show All
Raulsassaa vertex shader 1.1 problem
hi all, i have been trying to learn vs3.0 and ps3.0 , and i found out tht ps3.0 takes its input from vs3.0 .. so that implies tht i shud b learning vs3.0 first.. now the problem is tht i hav written a minimalistic program for a vertex shader.. using vs1.1 but it doesnt give the output... fixed function version of the same program is running fine... bt the vs programme shows a blank and cleared window.. the code is as follows : # include <d3dx9.h> LPDIRECT3D9 d3d = NULL; // pointer to the IDirect3D interface LPDIRECT3DDEVICE9 d3dd = NULL; // pointer to IDirect3DDevice interface, this is the // device we use for drawin stuff, basically the graphics card on the machine LPDIRECT3DVERTEXBUFFER9 d3dvb= NULL; ...Show All
Wicket Single Solution - Multiple Project configuration help
I've done some looking around, here and through google, and I still can't seem to fix my problem. I wanted to make a single solution, which contained two project...each project was identical except one was targeted towards windows while the other was targeted to the 360. I can't get this to work, as sometimes my project will build and debug on windows, and sometimes it will build and deploy to the 360. Most of the time though, it just builds and gives me a 360 connection time-out message or just does nothing at all. I've been looking at the solution properties, and it seems feasible to set up GSE to have one solution, with two projects each targeted to different platforms, with the user able to pick which platform to build and debug before ...Show All
asimsenyuva new to directx
Hi eveyone, i am new to directx and i want to be a game programmer.Please tell me where i can find useful tutorials for a beginner. thank you Another good list of resources is available in the GameDev.net DirectX FAQ: http://www.gamedev.net/community/forums/showfaq.asp forum_id=10 We are going to really need more information.. For example what languages are you interested in.. and experience you have. One way to start is to start scanning these groups as this question has been ask hundreds of times in different ways, you might also want to look at the XNA Game Studio Express group on this site. for genera ...Show All
ccg420104 Howto reset the default position of a model?
When i load a couple of x files and display them, they are placed on various locations on my display. This has something to do with the position of the objects in the original 3DS file i exported them from. right now i am using Vector3 .Subtract( Vector3 .Zero, MyModel.Meshes[0].BoundingSphere.Center); to calculate what the position in my world should be, but this has to be done for every frame and model. How does someone 'reset' the default position of a model to Vector3.Zero thanks for the info. I gues the only way then would be to somehow find a way to correct te x file. I tried the custom content processor way, but when i am in the overriden Process method, there is no way i can access the model, and ...Show All
RavindraPatil Trying to move ContentManager to another class
After successfully building the "How to Render a Model" example in the XNA docs, I am trying to move: myShip = content.Load<Model>("media\\ship"); to a separate class and I was getting: Error 1 The name 'content' does not exist in the current context so I changed it to: myShip = Game1.content.Load<Model>("media\\ship"); and then I got: Error 1 'Game1.content' is inaccessible due to its protection level so I changed ContentManager content; in Game1.cs to: public ContentManager content; and now I get: Error 1 An object reference is required for the nonstatic field, method, or property I'm stuck now. Ideas Thanks! Greg the Content Manager is actual ...Show All
dimitrod SpaceWars walkthrough
I remember a user posting a website that showed how to get the game to accept keyboard commands (by uncommenting some code I believe) and messing with some of the gravity and shooting values. Where is it, or some other SpaceWars tutorial http://www.xnaspot.com/Tutorial_GettingStarted.aspx That's the one, thanks! ...Show All
jturpin Grr, my game wont play, WTF!!!
its coded right, but ist says this, for game.run(); "Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater." what the hell does that mean, and what do i do about it shokthatlovinggamer wrote: I recomend buying an ATI Radeon grfx card or an Nvideo Gforce or whatever it's called lol o well idc what can i say i just play the games. and btw don't listen to half of the guys who posted here lawl i doubt they have even had any REAL experience with dealing with graphics cards for REAL Gameplay. My xfire is gbshok if u need something and if u don't have xfire and u consider urself a gamer then ur noob rofl see yall round'. Wow! Just, wow! The first tw ...Show All
