Answer Questions
Lattwell Vertex Buffer Question
I was wondering if it is possible to change the size of a vertex buffer after the buffer has been created The reason i ask is I am making some terrain that is made up of smaller grids but the number of vertices in the buffer need to change all the time because i do not want to always render all the vertices. Any help is appreciated. Thanks in advance. Instead of recreating a vertex buffer everytime you have different amounds of data, you s ...Show All
sdwillia Problem with Directx 9 alpha blending
I wrote an effect file to do alpa blending. I soon noticed after working more on it that there are points in the blend where polygons are being skipped or somthing.. What happens is i enable alpha blending liek so AlphaBlendEnable = 1; DestBlend = 6; SrcBlend = 5; then it looks like the polygons that are beign blended are going strieght to the back (not even showing the objects behind them just takign the transperencies streight to the backgro ...Show All
Phillip Knezevich Q: WGF
I would like to ax you something about future of DX: I finally learnt DX just recently and successfully created few DX games and demos. But since DX9 is the last version and the next "big thing in graphics" will be WGF, is it wise to continue learning DX I mean, is it worth it WGF will definitely have totally different API and I will have to learn it all over again :( Im seriously thinking about OpenGL ... I have some experience in that area ...Show All
AileenMack Getting rendered graphics (quickly) from the card
I had a thread about thins some days back, but for some reason I can not write into it now. I am faced with the task of rendering some graphics with directx and then copying that graphics into another card which generates a video signal. I need to feed it a new frame 25 times a second. The size is 720*576 The rendering does not have to be any faster that this. I have tried two methods of geting the pixels, and both are much too slow. On ...Show All
Lakshminarayana Where to find TextureLoader ?? [Derek Pierson's tutorial]
Hello, I'm studying Derek Pierson's tutorial I have found on < http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx >. I had to do some changes since I'm still using VS 2003 with .Net 1.1. I installed DirectX SDK from December release. At some point, in article 4, there is this code (several times...): _leftFaceTexture = TextureLoader.FromFile ( _device, @"..\..\..\Resources\Left.tga", -1, -1, - ...Show All
ShellShock Textures flickering
Hi, I have a scene with some sprites in it. I am using alpha blending on the sprites for transparency and everything is working pretty well however whenever the sprites are more than a certain distance from the camera the textures start to flicker (different pixels vary in intensity). I have tried using two different forms of texture loading: myTexture = ResourceCache.GetGlobalInstance().CreateTextureFromFile(dev, "..\\..\\Textures\\myTex ...Show All
Dede Fragment linker and ps_1_x
Hi, I have encountered while implementing a dynamic shader-library that the fragment linker while using AddFragments fail when the pixel_fragment is compiled with ps_1_x profile target... My question is if there is any particular reason to why the fragment linker does not support ps_1_x fragments Or if it is a feature that is to be implemented any time soon Best Regards, Magnus Hi, is there any solution now ...Show All
Rod A. Normals
Ok another noob question. I am programming a Cad system and at the moment just playing around with how I am going to do the zooming. I am not using lighting at the moment but I want to get things right now, to future proof by app. So I am worried about messing up my normals for the lighting. From what I have read the world matrix will definitely do this, so I was wondering if I use the projection matrix (I am using Matrix.OrthoRH) to ...Show All
Str4fe Direct3D mesh intersection function
I have been using the Direct3D mesh intersection function and it seems that it must internally use some kind of acceleration structure--it is way faster than the unaccelerated mesh intersect functions I have written, but I have not been able to find any documentation about this. I am using it in a raytracer and was wondering if using bounding boxes and an acceleration structure internally in the mesh would do any good or if it already uses th ...Show All
Paul Cyr What replaces the OLD "D3D.ServiceMouse"
I'm trying to update two old Windows 95 DirectX programs. They both contain a feature that allows the user to click on a displayed 3D object and have information displayed reguarding that object. These programs are not games. The programs used the "D3D.ServiceMouse" generating a "Picked" event. This interface was deactivated in Windows 2000 and Windows XP. What replaces this interface Is there an example, in Visual Basic, ...Show All
Nataraj S. Narayana 2D Direct3D Sprite Rotation (such a basic problem :( )
Sup, ( sorry in advance for the poor written quality and the dumb n00bish question, I'm at work and not supposed to be onthe internet. There's a lot of quick alt-tabbing going down when the boss is about!! Gotta be quick) Right, I'm getting well annoyed with this; I have found various sites on the internet that describe how to succesfully use sprites in Managed D3D (and c#) and perform transforms on them... I just can't seem to get it ...Show All
Nitstheone Scaling (Shrinking) Sprite Chops Off Texture...
I am using the October 2005 Release of DirectX 9.0. When attempting to Scale a Sprite I am running into some very odd behavior. When "growing" the Sprite the Texture stretches and maps fine. When "Shrinking" the Sprite the texture apparently does not shrink - and it gets cut off. I am setting the Transform properly on the Sprite, applying SpriteFlags.AlphaBlend to Sprite.Begin(), and using Sprite.Draw(). Is anyone else ...Show All
shaney Game Development
Hi As a developer i guess we are always looking for the newest latest trends and technologies, as am i. Post suggestions here so the lesser informed can follow up on new ideas and techniques Fuzzy[Spoon] Look at sites as: Gamedev Gamasutra IGDA Journal of Game Development ...Show All
dpdoug Texturing Cube Faces Separately
I am trying to texture the faces of a cube independently using Managed Direct X. The cube is first created by using the Mesh.Box method. Its vertices are then converted to a PositionNormalTextured format and the texture location then set. This works are the moment because all but one face is set just to use the first pixel of the texture which the program has already set to theses faces background colour. The face I want texture ...Show All
danparker276 Problem in debugging MC2Dbg.exe
While debuging the MC2Dbg.exe there exist the following error please tell me where should i keep this dll to remove the error STOP : Could not find 'mc2res.dll' Address : 0x006374D8 Location : MC2DBG! (+0x2364D8) Thanks in advance Meenal This is done by right clicking on the project and going to properties. Look under the "Debugging" tree item and you'll see a "Working Directory" parameter. You may also wan ...Show All
