Answer Questions
Olman Q Almost got it, just a little more...
OK so I just about got the dx device to run but got stuck, here's my code: vc++.net Device __gc * dxdev; // Create rendering device PresentParameters __gc * dxpp; dxdev = NULL; dxpp = new PresentParameters(); dxpp->SwapEffect = SwapEffect::Discard; dxpp->Windowed = true ; PresentParameters * dxapp __gc [] = {dxpp}; dxdev = new Device( 0 , DeviceType::Hardware, pb, createFlags::SoftwareVertexProcessing, dxapp); dxdev->Rend ...Show All
Wale M - MSFT Sample Framework
I've been looking over the sample framework (empty project) and I can see a lot of useful things in there that would be great if I didnt have to reinvent the wheel, mostly in terms of handling input and GUI code, but... Even though the sample framework code has a lot of comments, it's still very hard to follow and feels like it's all over the place. I realise we all have different coding styles but I was wondering if anyone has some kind of ...Show All
Panason1 SDK contents "redist"?
Hi. I thought I'd release the source to some of my toy D3D10 experiments, but I'm unsure about a couple of license aspects regarding the redistribution of DXSDK content. I've searched the included license agreement as well as the web, but I've been unable to find an official view on the matter. The issues are: a) I've used DXUT, so for anything to compile I would need to include either the DXUT sources, or a precompiled static DXUT lib. b) ...Show All
unFalln MC2 Editor
I can not see the MC2 Editor being part of the XNA project. When I build/rebuild MC2 the editor files are not updated. What do I do wrong or How can I make changes and updates to the MC2 editor I just spotted this post. I hope I misread something, either in your post or in the code itself. If not: are you seriously suggesting to use gos_Malloc to allocate the resource, then pointer (not eve ...Show All
.net sukbir VC++ 2005 Express & MDX9(October 2005)
Hi everyone, Can you please tell me if it possible to Managed DirectX 9 (October 2005) from within Visual C++ 2005 Express My code stumbles at a simple line: PresentParameters^ presentParameters = gcnew PresentParameters(); I can compile and build, but when I try to run this code, the debugger gives an error (pointing to line above): An unhandled exception of type 'System.IO.FileNotFoundException' occurred in myapp.exe Additional informatio ...Show All
Waynest Disable FSAA for some primitives each frame? (disable it temporarily)
If I set my device to use 4x FSAA for example, can I temporarily disable it when rendering primitves or somehow make primitives that isn't affected by the FSAA I have a graphical user interface that render text and quads with point filtering, that way making it "pixel perfect". Much like blitting a sprite but I'm using triangles instead. However this method breaks miserably when I add antialiasing, since the pixel precision is lost and ...Show All
Diego F. Build background out of multiple bitmaps
I'm using MDX+VB and am trying to build the background map of a simple overhead game. I'm using tiles, though the map doesn't scroll, so I can make custom maps out of ascii files. I'm using the Sprite class and the Draw2D function. I am completely clueless on how to copy two bitmaps (just two tiles for now) into one texture. The methods I see for creating textures don't seem to have destination rectangles, so I could get one bitmap loaded, bu ...Show All
Question_Answer Video Card support
What video cards will be able to support DirectX 10 Well I can't be 100% sure, you will need someone from MS for that but every presentation I have seen says "you will need new hardware" and as Jack said nobody has any of this new hardware yet so I doubt the "new hardware" is generally on sale. None that you can buy today - Direct3D 10 (there is no such thing as DirectX 10) requires new hardware. ...Show All
David Citron HLSL pixel shader: possible to not set output color?
Is it possible to somehow not set the output color in a HLSL pixel shader without getting an error message It is possible with a CG shader. The effect is a transparent surface at pixels where the output color is not set/computed. Nico Thanks for your suggestion. Maybe I will try that some time. At the moment I just render one object, so I simply set the output color to the background color. ...Show All
Alireza Naghshbandi What is in DX9 that is similar to Selection in OpenGL
I just start to trun from OpenGL to DirectX. I'm writing a program that requires user to select 3D objects by mouse clicking. In OpenGL this is easily done by Selection mechanism. So what is the best way to achieve the similar effect in DirectX 9 In the Microsoft DirectX SDK there is a sample application that has a rotating Tiger. You hover your mouse over the tiger's polygons and it highlights them etc. I for ...Show All
Johnny Richards Direct3D Screenshot?
Does anyone know what Direct3D functions I should look at if I wish to be able to take a screenshot of the desktop. I don't really care to get the contents of my application but rather the entire desktop as it is presented to the user. Direct3D doesn't have any functions to capture the desktop - it only knows about the surfaces under its control. Not sure of the native calls but in .Net its a few lines of c ...Show All
Luigip The Game Programming from Scratch
I'm Professional in VB6,VB.Net 2003,VB 2005 and i want to start in game programming but i don't know from to start study. Some friends tell me to study DirectX, but i found it hard to self study and there is no books in vb and DirectX (Almost), Anybody have any idea to start in it in simple way I personally love to dig through sources of some of the free engines available and from a design perspective it helps alot. Also it's a good id ...Show All
spottedmahn Inverse fonts
What is the prefered way to render inverse fonts I need to render some text where most of the caracters are black one white, but some are inverse (white on black). Are there any prefered ways of doing this Tomas. Just what i needed, thanks ! You can invert the colors of your font texture during rendering by using the texture stage argument D3DTA_TEXTURE|D3DTA_COMPLEMENT. Then draw the box with a ...Show All
tellievt 32 bit address Error
I get the following error after trying to compile Microsoft's code in Watcom: The instruction at 0x69c16ed0 referenced memory at 0x00798000. The memory could not be read. Error [E14]: Cannot execute (wlink): Error 0 The error I was having before was a .lib problem and that is fixed. I do not know how to force Watcom's complier to read a 32 bit address it says it can not read. If any one knows how to make Watcom's complier read that address ...Show All
Jocke Intellibis Let the user input before do remaining process
I would like to create a function that do some process, and then wait and let the user to click something on the screen. After the user click something, the function do the remain process. How to do it e.g. public void func() { . . . do something . . . // Wait the user to click . . . do remain things . . . } Thank you We need a *lot* more information before we can give you a good answer to this Given the ...Show All
