Answer Questions
R. Santana Shadow maps
Hi I'm looking for some information about texture shadow maps. I've looked in goole for a sample, but i can't find one. The ones I found, or are incomplete or too complex (because they involved other more complex concepts, like soft shadows). The sample about Shadow Maps in the DX SDK run soooooooo slowly that it is very hard to properly study it (I think that's because it is meant for DX 10). What I'm realy looking, is a sample code as simple a ...Show All
Chris I Beginner VertexBuffer question (C#)
Hi, I'm new to vertex buffers and have been having some frustration with what I think is a beginner problem. Given this code: VertexBuffer vb = new VertexBuffer( typeof (CustomVertex.PositionColored), 36, device, Usage.Dynamic | Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Default); vb.Created += new EventHandler( this .OnVertexBufferCreate); OnVertexBufferCreate(vb, null ); ================ And the follow ...Show All
Tim F Good source (s) to learn Direct X (c++)
Hi, I have begun programming with DirectX and C++ for a while now (not a very long while =)) I've read the 6 tutorials that comes with the SDK and understand them quite well, but where do I go from here Most interesting info I find about DirectX programming for newbies is in managed, but, since I already can programme nicely with C++ (console and windows) I think that would be some kind of a step back, dunno why really... but is there any ...Show All
hte Editboxes
Using the sampleFramework, Is there a way to keep the caret with in the Editbox, I have tried a ton of seting and code with no luck, I even tried to add a scroll bar to the Editbox and failed badly. No I meant the c# I just used the : to mean look in the FocusText() method in the EditBox class. Sorry if I confused anyone. THe c++ example of UI works perfectly, the caret positioning error is only in c#. David h ...Show All
Nagu How do I develop games for the XBox 360?
The starting point to learn how to build games for the XBox 360 is here . In a nutshell though, building games on your PC using the DirectX SDK is the best starting point for building games for the XBox 360. Hi!! Where I can find a SDK to XBOX I Whant to star develop VideoGames in XBOX How I can start The Xbox 360 is not designed to be a stand-alone computer running an operating system. In sp ...Show All
Chandrasekar Jayaraj NEW GAME IDEA
Hello i need help bad, i have a really big game idea, that yet (i think) has not been proposed or done. is there a way i can propose this idea to microsoft(think its probably best company to start with since they produce pc and xbox), and not get my idea jacked.. this game idea should at least i think it should, be a big hit.. so how do i propose, and maybe make a profit Most big (and the smart small ones) gam ...Show All
kingdeadbo DrawImage(img, pts)
Sorry if this is the wrong place for this question but it it related to 3D games programming... I have noticed that Graphics.DrawImage(img, pts) accepts an array of 3 Point objects in the second argument. In the spirit of adventure I passed in an array of 4 to see what would happen (I was hoping it would render an image inside an uneven quad). It did not work but it did throw an exception indicating tht this functionality had not ye ...Show All
jimoctezuma Terrain Rendering
I have a quick question... What are some of the best/simplest ways to render large terrains for games such as a MMO or a FPS like Far Cry I have skimmed over some LOD stuff using quadtrees and this seems to be ok but I was thinking of using an LOD technique that changes with distance from camera. I am not sure what this is called. But i was wondering if this would be a good way to go about it. Thanks in advance. One thing you may wish to ...Show All
GJCreme Multiple Monitors as Independent Displays
Is there a way to use DirectX to write to a monitor on a second display adapter when the monitor is detached from the Windows (XP Pro) desktop The MSDN library contains a topic "Using Multiple Monitors as Independent Displays" which suggests that one can use the GDI function CreateCD or the DirectX function DirectDrawCreate (now a deprecated function). What currently supported DX9 function will let me open the device and use it for ...Show All
jimvrana Why so many big structures in managed directx?
I was told to ask this question here to get an answer: struct Caps 304 bytes struct Material 68 bytes ... These big structures are used as properties and passed here and there. Isn't this a big performance penalty I checked the generated asm code, and it seems these's no optimization to remove the overhead. So anyone knows why Well, I admit they do not executes every frame so their drawback can be ignore ...Show All
richdenis Corrupted texture on Radeon
I'm using C# and managed DirectX to display a mesh with two texture stages. It draws fine on a GeForce, but looks corrupted on a Radeon X300 and also a ATI Radeon 9600 Pro. I think it started when I added a second texture stage to modify the texture color before rendering. You can see the results on both cards here: http://gosub.com/DirectXTextureError.htm Here's how I setup the render states: dx.RenderState.Lighting = true; dx.RenderSt ...Show All
sstackho DirectInput keyboard keys get stuck
I've been using the following two methods to collect and poll keyboard: public void ProcessInput() // called on each frame render { Key[] temp = _device.GetPressedKeys(); // _device is DirectInput.Device Key[] keys = new K ...Show All
St1ck I have some artifacts with fog
When I use Exp or Exp2 fog in vertex mode I have a strange effect with big triangles when I rotate the camera. I concluded that the fog calculations are wrong. When I use Linear fog all is ok. Small triangles also looks as they must. Do you have some ideas what is the problem Do you have range fog enabled It sounds like when you're using linear fog you're getting range fog, but when you using exponential fog you're not. Without range ...Show All
jccondor Creating a very simple GUI
I am trying to integrate a very simple GUI into the project I am working on. All I need is 3 edit boxes to accept values and a button to execute a command. That's it. I have looked at the tutorials included with DirectX, and the GUI example is simply too complicated...I don't want to include a bunch of files I probably won't even need. What's the easiest way to implement a GUI like the one I am describing (By the way , I am writing this in C++. ...Show All
Aquilo HELP!!! DirectX Device error.
I been learning off of Beginng C# Game Programming. Have one major issue i cant get passed. I get a compile error " The Type 'Microsoft.DirectX.Direct3D.Device' Exists in both 'C:\Windows\Microsoft.Net\DirectX for Managed Code\2.0.0.0_x86\Microoft.DirectX.Direct3D.dll' and 'C:\Windows\Microsoft.Net\DirectX for Managed Code\1.0.2902.0\Microoft.DirectX.Direct3D.dll' I have already unstalled the SDK Apr 2006 version and everything f ...Show All
