Answer Questions
cbegg OpenGL Rendering Context + DisplayDevice (not window) Device Context?
Is it possible to use a Device Context for a Display Adapter (not a particular window's DC) with OpenGL The primary reason I am trying to do this is that I want to render OpenGL on multiple monitors, but the monitors are not necessarily members of the Windows desktop monitor group (and thus cannot have windows on them). Here's some of my test code. Everything seems to work until I call wglMakeCurrent(). dc = CreateDC( _T(" ...Show All
Joshna about material
When no light ,we can't see the texture.have a point light ,we can see the texture .So the material how to set I am assuming you are using C# and Managed DirectX. You can set the Material as follows. First you need to actually setup a material... This example shows a white material. private Material material; material = new Material(); material.Diffuse = Color.White; And then finally setting the material to the device which means that al ...Show All
HidekiAI1 DX version
Hi all How do you check what version of DirectX you have installed Thanks The first easy way is to have a look at the directory names in the program files directory of your machine. For managed code you can look at the post on the ZBuffer as it lists the sdk version/release that each of the managed assemblies hook up to.. I was more thinking along the lines of what version of the SDK I hav ...Show All
u771381 DirectXSetup returns -20
Hi, hope someone can help me on my test environments, the installation is successful when installing manageddx files, which are needed for my app. I have to install during my installation these manageddx files from the redistributable sdk (April 2006) This is installed fine on my test environments (plain vanilla images) but when it comes to finally installing it on my dev box, which already has these files installed, I get err ...Show All
BryanMiller Mesh Intersect Confusion
EDIT: Let me make my question simpler: How do I shoot a ray (using the Intersect function) from one mesh to another mesh Original Post: I recently found out that the Mesh.Intersect function requires you to transform the ray by the inverse of the Mesh's matrix. I can kinda understand how this works with picking, but, I am trying to shoot a ray from one mesh to another with an arbitrary direction. Now I'm dealing with TWO matrice ...Show All
Kejpa Single or Double for vector floats?
as i'm new to this. i was wondering if your only allowed single floats for vectors etc in directx. most of the code i've seen only has single float values. as i wanted to use the following unit scale 1.000 = 1 meter, 0.100 = 10cm, 0.001 = 1mm. with a max value of 99999.999 i think i'll need double floats for using this. so would i get away with this If you need a large range and continuous precision its worth ...Show All
inetnerd commercial use
Does utilization of DirectX &/ Direct3D in a commercial product require a license or royalty fee Thanks for any help. Sorry for the newbie question. If there is a more appropriate place to ask this let me know and I'll move it there. Hey, thanks Jack. That's what I was looking for. You as the developer don't have to pay any sort of royalt ...Show All
Karthik Raman Vertex shader problem
Hey, Ive been trying to add a vertex shader to my engine(right now its just running a pixel shader). Currentlly if I activate the vertex shader the world gets drawn distorted(a small random red box with a triangle going out to infinity). Heres the simple vertex shader im using. struct VS_INPUT { float3 position : POSITION; float4 color0 : COLOR0; flo ...Show All
hackman_3vilGuy download sdk
where can i download the directX sdk I've looked all over the Microsoft site and all i can find are updates. This is really fusterating thanks. I'm new to game dev. In order to simplify things, you can always visit http://msdn.com/directx/sdk and it will point you to the most-recent SDK. In the future, you should use the full-qualified URL like Daniel used, as it it guaranteed to be an obsolete URL within ...Show All
Tarkan G. Should I share one VertexBuffer for multiple objects of the same type?
Hi, Imagine I'm creating a 2D game that uses sprites represented as billboards in Direct3D. Imagine it's a space shooter that contains multiple objects of the exact same type (some generic enemy ship, for example). Wouldn't it be inefficient to store a separate vertex buffer for each ship It seems as though it'd be better to share one vertex buffer for all the objects. Here are the two general approaches I can envision, using shared versus n ...Show All
Michael Vainer a simple line
New to directx, I don't need any textures or anything, but i need to make a simple wireframe model. And would like to know if there is an easy way to draw a 3d line just using 2 points as input(hopefully, as this is what im used to) { {x, y, z}, D3DCOLOR_XRGB(red, green, blue) } f means they are single precisions floats rather than the doubles that most languages default to. DirectX uses single precision for s ...Show All
Biju S Melayil ID3DXFont and DT_WORDBREAK
Hi, DrawText() in DX9 does not work the same way as DrawText() in GDI does when used with the DT_WORDBREAK flag. Punctuation marks in DX9 are wrapped incorrectly: This is a small text . The full stop is wrapped onto the new line. Parenthesis are also wrapped although there is no whitespace between the parenthesis and the preceding word: This is another (bla bla ) text. This behaviour can be seen in the Text3D sample of the SDK when the window is ...Show All
kubaw Problems with maya x-file converter.
I've been able to successfully convert maya 6 models into .x files using the maya 6 plugin however when I try to substitute these files for the .x file in the basicHLSL sample it fails when loadMesh calls computeNormals. All the .x files from the samples media folder work fine but anything that I create myself fails. These files work fine in the .x viewer. Is there something I should know What is the difference between these files Any help wo ...Show All
NeedsHelp What differences are they between emptyproject and emptyproject_2005?
apart from the MDX 1.1 and the MDX 2.0beta dll. is there any other differences. i ask because i see emptyproject framework uses dxmut.cs but the emptyproject_2005 uses wdxmut.cs. i'm wondering if i can use the emptyproject_2005 framework and just replace the MDX 2.0 beta dll with the MDX 1.1 dll. will the framework still work i saw somewhere that said the emptyproject was for .net 1.1 and the emptyproject_2005 was for the .net 2.0. if thats the ...Show All
LianYun 3D game tools
I want to create a simple flying game using DX and C#, what are some of the tools people here use to place objects into world space(to get the coords), my idea is to use a manager I created to manage my resources then once I find a good tool to use to get world coords I will create a class that will tie into my rendering loop that will grid out my world for rendering. thanks for any help or Ideas You would have ...Show All
