Answer Questions
Rodrigo Vieira Maximum Range for Mesh.Intersect Function?
I am testing for intersections from a point into a mesh at a specified direction, but it only returns hits usually if they are less than 100. I have gotten a 101 before, but, never greater than that. Is there some sort of maximum range for the intersect function I wouldn't imagine there being one, but, if so, how does one extend it Here is my code, in case someone spots an error elsewhere: Function HitMesh( ByRef AnotherMesh As CZoo ...Show All
heyheyhoho Direct Music examples
Anyone know how to obtain the Direct Music samples mentioned in the Dx9 docs The docs direct you to the <sdk>/Samples/C++/DirectMusic directory which doesn't exist (for me, anyway). Since DirectMusic has been deprecated its not been in the last few SDK sample. I would try to download an earlier one ( SDK links ). I can't remember when they were dropped but try Summer 04 The ZMan wrote: DirectSound still exists, Dire ...Show All
dv83d "Ensure that DirectX SDK is correctly installed"
I just downloaded C# Express, and then installed the DirectX SDK from February 2006, from Microsofts homepage Then I loaded the Simple2D_2005 sample (running it from the sample viewer), and it worked as it should. Then I installed the samples source code, opened it in C# Express, but when I run it, I get the following msg: "Could not find required media. Ensure that DirectX SDK is correctly installed" I have tried to uninstall DirectX ...Show All
Scott Kao Draw on a Surface
i need to draw on a D3D surface with a System.Drawing.Graphics what is the best way anyone can give me an example thx Bye Did you try Surface.GetGraphics method It returns a Graphics object. ...Show All
CamelbackCinema Moving around in my 3d map..?
Hi there! I have created a test 3d-map (X-format) and this maps materials and textures is loaded onto a sceneMesh. Then I move around adding/subtracting values to three floats: x , y and x in the following code: device.Transform.View = Matrix.LookAtLH( new Vector3(0,0, z+10.0f), new Vector3(x,y,z), new Vector3(0,1,0)); When you press Left 1 is added to x and Right subtracts 1 from x . Up subtracts 2 from z and Down adds 2 to z ...Show All
_Raj_ .NET 2.0 application template
Hi! How to create an application template like the one presented here: http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx , but for .NET 2.0 I'm new to the whole .NET thing and it's quite confusing for me. I tried to follow the steps in the tutorial mentioned above and just changed reference to Microsoft.DirectX (which should i use: "version 2.0.900.0 runtime 2.0" or "version 2.0.0.0 runtime 2.0.50727" ), but should i also us ...Show All
Henry Ma vmr9.h
I'm trying to view a video in my game but get this error. My friend tried the same code, but generated no error, my SDK is aug 2005 his SDK is dec 2004. Please help d:\-=Source=-\DirectX\CruS\When Angels Fall\Game.h(7) : fatal error C1083: Cannot open include file: 'vmr9.h': No such file or directory Ok.. So I downloaded: dx90_sdkextra_directshow.exe did not include the right files.. wrong download can someone link me to thi ...Show All
Dudley McFadden Frame buffer vs Frame buffer
I want to read the pixels directly from the frame buffer, i-e whatever is on my screen, I want to read that. Now I have been using glReadPixels, it read pixels from the frame buffer of opengl... i-e whatever I render myself, I can capture it only... I am trying to access the graphics card buffer and read pixels from there using opengl... what should I be doing Just in case, this isn't an OpenGl forum and I doubt that questions fro ...Show All
garmhappy LoaderLock was Detected?
I'm alittle stumped here... I'm trying to play an MP3 file with directx in vb 2005 express, it worked fine in vs 2003, but seems to not want to work in this version of VB :/ Heres what it says... DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since do ...Show All
Capitan Cavernicola Texture in box
Hi guys, I would like to make a world. So I made a box and my cam is in it. Now I would like to attach a texture that represent the sky in the box. How can I do that Pieter Germishuys wrote: This is also refered to as sky boxes and sky domes. This is really a cool technique and allows the viewer to have this feeling of open-ness even if the viewer is in a box. What you will do is flip the faces of ...Show All
SDK1985 Point Sprite are displayed at the correct place
Hi, I'm using point sprites in a 2D engine, based on some tutorials. It works quite well, but point sprites are not centered on (X, Y), instead of that, (X, Y) is the lower-right corner. The code is something like: result = lpDirect3DDevice9->SetFVF( D3DFVF_PARTICLEVERTEX ); result = lpDirect3DDevice9->SetRenderState(D3DRS_POINTSPRITEENABLE, TRUE ); result = lpDirect3DDevice9->SetRenderState(D3DRS_POINTSCALEENABLE, FALSE ); result = ...Show All
Lovericky Only square textures?
I just found out that, when converting from a bitmap to a texture, directX appears to stretch the bitmap into a square. This is a problem, because if I don't want my external images getting stretched out of shape when they're rendered to the screen, I have to add "empty space" to the bitmap files so that the bitmap is a square. But I've been determining the size of an object on the screen based on the original bitmap that was loa ...Show All
Technologist Reading a Vertexbuffer from a Mesh
This has been driving me nuts. It's so simple... but not working. I have written to vertex buffers before, no problem. But, for some reason, I can't read an existing one from a mesh. Keep in mind, I have recently upgraded to the newest version of Managed DirectX. Perhaps something has changed I would like to dump vertex buffer into an array so I can get the locations of all the vertices. (Eventually, I ...Show All
Aerofluff Question on ID3DXEffect::SetArrayRange
Hi, I'm currently adding shader instancing to our engine. After I changed the single world matrix in the effect file to a matrix array, I noticed a heavy performance drop. The fps went down by almost 30%. After some investigation I found that the fps changes with the size of the matrix array, so the effect framework seems to always copy all elements of the array, not only those that were actually set. I then wanted to optimize this using the ID3 ...Show All
Randomize Floating Point arithmetic difference between VB and C#
I am in a bit of state at the moment, I am really surprised at what I have found, please see the two code samples below. The first is Visual Basic and yields a result of: 100040624.0 the second C# and yields a result of: 100040629.0, which is correct. This error is causing my Line Circle intersection function to fail!! Oh my God have just spent the last two years writing my app in VB and now have to convert to C#. Dim a, b, c ...Show All
