Answer Questions
Mike V. @ AHL Texture Format Problem
I have very strange Texture format problems. First, I use Format.Unknown for loading textures: ImageInformation info = TextureLoader.ImageInformationFromStream(s); texture = TextureLoader.FromFile(device, path,info.Width, info.Height,(int)Usage.RenderTarget, Usage.None, Format.Unknown, Pool.Managed, (Filter)D3DX.Default, (Filter)D3DX.Default, 0, ref info); I have some images in .jpg and .png formats(1024x768 all).On my computer (GeFo ...Show All
Shrilata Directx SDK January 2006?
hello everyone, can anyone tell me if there is any possibility of a January version of the SDK 2006 planned to be released Thank You thanks to your question.thank you very much. You can expect DirectX SDK updates in a 2 month cycle. Since the last one was in December 2005, you can expect one in February 2006. I hope this helps. Take care. dxfoo wrote: I agree somewhat, although I'd rather ...Show All
GS3422 64Bit and HAL devices
How can i use a HAL device in 64bit compiled applications Also all directx samples in the x64 bin run in REF mode only ... Has this something to do with my graphic card or with the SDK It looks like your graphics driver is disabled. What HW do you have I'm using ATI radeon 9550 ... tnx, for info. I checked, on dxdiag it shows hal is enabled, but when i run the directx6 ...Show All
Dhaval-Patel Vertex Buffers and CPU/GPU Memory Locations
Hello, I really enjoy figuring out how DirectX works, and I am very fascinated with the whole proccess of memory management and moving textures/resources from system ram to video ram. Here is my question related to the previously mentioned subject: Lets say you create a non managed vertex buffer, you lock it, and then you copy data to it. Does this mean that the data is copied immediately to the GPU It isn't clear to me from the doc ...Show All
Paul Johansen Can I develop the DX10 and DX9.0c application use VC++ 6.0?
Can I develop the DX10 and DX9.0c application use VC++ 6.0 My develop environment is VC++ 6.0 and installed VSSP 5.0. The .NET Framework is not required for DirectX applications to work, unless you're writing against the Managed DirectX libraries. VC++ 6 hasn't been supported by the DirectX SDK for quite a while now. If you go back far enough you can use DX9, but I think it was somewhere around ...Show All
Ariff missing type specifier
hello i have recently bought a book on producing games with directX. and when i compile some of the code in the later part of the book i keep on getting this error when building. Compiling... Core_Graphics.cpp c:\program files\microsoft directx sdk (february 2006)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800 c:\documents and settings\derek\desktop\programming\bookcode\gamecore\core_system ...Show All
Edi Buslovich Forms.Keys vs DirectInput
I know its probably just me, but is there any reason that OnKeyDown can only process one key down at a time I should add that I am used to using DirectInput for this kind of thing, but I see that it's being recommended not to use it any more, so I tried using OnKeyDown, but when I hold down 2 keys at once, only one gets processed even though my code looks like: if (e.KeyCode = Keys.W) moveforward(); if (e.KeyCode = Keys.A) moveleft(); ...Show All
Vikramaditya dxwebsetup wierdness - deployment with app
Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0) This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine. 2 main problems here already: 1 ...Show All
jerry111 Render final scene to Texture in Shader [FX Composer]
I want to save the final rendering of my shadowed scene to a texture (see below). I would like to know how to render to an 800x600 texture directly in the shader. I am using the FX Composer from NVIDIA. I would've thought I could simply add the following as the final pass of the shader: pass Bg < string Script = "RenderColorTarget0=TexFinal;" "RenderDepthStencilTarget=TexFinalDepthMap;" "RenderPort=;&quo ...Show All
Kawish The best way to handle the render loop?
I have been through many tutorials, and have seen many variations doing things a number of different ways- I want to know what is the best way, or preferred way, or "Official Microsoft way", to handle the main render loop specifically for C# and the latest DirectX. Some use the Application.Idle event handler to call the render method. Some use the standard Paint method to call the render method, followed immediately by a call to ...Show All
xiewob DirectInput SHIFT+INSERT
hi I use DirectInput for keyboard, receiving data through GetDeviceState, why when I press right shift, and then insert. the right shift acts like it is not being pressed, while it is.. (left shift works ok though) In direct Input the Right Shift and the Left Shift is not the same key... DIK_RSHIFT DIK_LSHIFT http://www.paradoxalpress.com/Docs/DX9_out/Keyboard_Device.htm ...Show All
yann sugere Tint a sprite red
I've had good success in tinting sprites a certain color by using this code: _sprite.Draw( _texture, new Rectangle( 0, 0, (int)_width, (int)_height ), new Vector3( 0.0f, 0.0f, 0.0f ), new Vector3( (int)_left, (int)_top, 0.0f ), Color.FromArgb( 255, 255, 128, 128 ) ); // Reddish tint The problem is, black parts of the sprite don't change at all, which is really bad, because some of my sprites are silhouettes; an ...Show All
rwiethorn Using Text
I found that it would be really useful if I could get the pixel length of any string in DX that I want to display (I'm using 2D) so I can keep it withing bounds of a textbox for example. Does anybody know a way of doing this If not, does anybody know another way to achieve the scrolling in a textbox Much as I hate to bring further bad news... if you are using DirectDraw for your 2d graphics then note th ...Show All
Ken Paulson C++ or C# ??
I've been programming professionally for 8 years - all web and business programming in ASP, ASP.NET, and Java. I have a very solid knowledge of OO application development but I'm simply not challenged. The apps are all the same - build database, put front end on database to present data, allow data to be edited/updated, allow data to be deleted. Wash-rinse-repeat. I've been a gamer since I was 8 and I still play games like mad (own a PSP, DS, ...Show All
asbailey multiple object with different colors
i'm drawing 3 object, they are created from the same class so they are identical. i try to alter the color, so they have 3 different colors. the result is that the color of the first object is used for the other object aswell. this is some of the render function myGraph[ 0 ].GraphBorderColor = Color.Red; myGraph[ 1 ].GraphBorderColor = Color.Green; myGraph[ 2 ].GraphBorderColor = Color.Gray; for ( int i= 0 ;i< 3 ;i++) ...Show All
