Answer Questions
Fritz Klein Pixel Perfect collision Detection
Hi, Do anyone Know how to realize the pixel perfect collision detection in vb.net Direct3d Sprite class (2d game) I tried to use lockrectangle but i can't find any example of usage. I have this code for dx7 but i cannot translate to vb.net directx9 Anyone can help me Thank you dx7 code (not mine) Public Function CheckForPPCollision(DDSurf1 As DirectDrawSurface7, DDSurf2 As DirectDrawSurface7, RECT1 As RECT, RECT2 As RECT, Blit ...Show All
markse Floating point texture in D3D
Can anyone give me some real sample code for using Floating point texture in DX9 with a GFFX or later card I read resouce from nvidia website saying that I need to use nvidia extended surface format. But how can I exactly use it in managed DX9 Very thanks since it is urgent for me now. There is nothing special for using float point textures, just make sure it is supported by target hardware. Th ...Show All
Brave Belzebuth HLSL: receiving a handle to a struct
Hi! I'm having trouble receiving a handle to a structure in a hlsl file. This is the structure: struct VS_SIMPLE_INPUT { float4 pos : POSITION; float3 normal : NORMAL; }; And I try to receive the handle like this: pEffect->GetParameterByName( NULL, "VS_SIMPLE_INPUT" ); It doesn't work, I get a NULL ptr. Can anybody help me Thanks Robert and Etienne! ...Show All
Ben Weber Dynamic for-loop in HLSL Pixel Shader
Hi there, does somebody know if (how) it is possible to use a for loop in a HLSL pixel shader with a dynamic count For example: int count = 5 / a; for (int i = 0; i < count; i++) ... I didn't manage, whatever I tried the effect creation fails. Even with shader model 3. Nico Suddenly it works! I don't know what I made wrong before. Anyway, when compiling a shader with a dynamic for loop there is a lot of preprocessin ...Show All
Talljames DirectSound issue: any help appreciated
I realize this question is going fairly ambiguous, however the nature of the problem is somewhat similar. I'm developing the sound engine for a project, and the sound engine initially worked fine within the project. I took a break from the project, and when I came back the audio no longer played. Currently, when PlaySegmentEx is invoked, S_OK is returned... however absolutley no audio is audible. I am currently able to seperate the engine into i ...Show All
VFP avid fan The COM-based CORE engine (a lot of questions)
I'd like to discuss a creation of the core engine for our future projects. I chose this forum not accidentally, I hope that professionals (especially from Microsoft) will help me in my questions. First, I'll say a few words about the core engine. It provides system, input, video and audio core techniques. Also, it has a pluggable system. The main COMponent 'MWCore' (from 'MWCore.dll' server) is only the bridge which connects the parts listed ...Show All
jhammer Changing Colors of Vertex Buffer
Greetings: I have an issue that I have been unable to resolve by searching google, but that's probably because I do not yet enough enough about DirectX to know what to search for. I have an application that's very simple from a graphics perspective. I have a series of verticies stored in a vertex buffer. Using DrawUserPrimitive and various transformations, I am able to render the contents of my buffer according to my plans. My issue is ...Show All
Andreas_R Managed DirectX Help: Tile map has seams when zoomed in.
Im having quite a bit of trouble with zooming in on a map of tiles I am drawing with DirectX (not DirectDraw). Drawing the actual tiles works fine without a zoom: http://img409.imageshack.us/img409/2241/goodciv2pp5rv.jpg But if I apply even a little bit of a zoom I get seems: http://img409.imageshack.us/img409/3628/badciv2pp6pw.jpg And this is driving me crazy. I am using the Sprice to draw everything, and I am setting is transform like ...Show All
Avner Distorted texture after lost/reset device
Hi, I'm drawing a textured mesh using DrawIndexedPrimitive, using an effect interface. After a windowed/full screen toggle the texture appears distorted. Interestingly when I draw another mesh in wireframe mode in the same render call the problem doesn't occur. Can somebody help Nico Man I feel your pain, nothing looks out the ordinary to me which probably means I'm missing the same thing as you... The on ...Show All
wesd Global Variable and Register don't connect in HLSL
I define this gloabal variable in my Shader fx file: float MyTime : register(c0); And my pixel shader (in asm format in my fx file) I use the c0 register I thought I could Set the value of MyTime in my cpp code and that the c0 register would use that value...but apparently it's not working Now I use a workaround and use dlc t0.x to use the vertex shader output texture But what is wrong with the register(c0) that when I set this glo ...Show All
Seth M. Livingston Visual Basic vs Visual C++
This is a question that has long lingered about my mind - Which language is better for DirectX, Visual Basic or Visual C++ I have been using Visual Basic for a long time now so that is the language that I am used to. I have dabbled some in Visual C++, but it was Version 3.1, so in all fairness, I haven't really learned Visual C++. As far as Visual Basic is concerned, I'm running version 6.0 Professional. The problem is that there aren't ma ...Show All
Rodneyk i need help! pls I want to begin to write games
I need documents to learn to use directx in c++ or vb, to not knoweverything about directx, thanks for its attention and hope can help me, and sorry for mi english I would say that the best way to start out is to start small. Making triangles spin and see how you would interact with the system if you had controls. The rest is just hard work and alot of research. Finding out how the "device" works and what needs to be done with re ...Show All
windiswebwerkstatt 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'm sorry if it seems like I'm hijacking this thread. I just thought it more appropriate to keep the number of MC2-specific threads as low as possible. It seems I've stumbled across yet another MC2 E ...Show All
Lisa Slater Nicholls 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
RubenzTC mesh texture color
im using a effects file in my project but it seems when I render some meshes the colors are not comming out right, my render loop is very basic so nothing there should be the problem, so my guess is its in the .fx file here is what I have float4x4 worldMatrix; float4x4 worldViewProjection; texture sceneTexture; sampler g_samScene = sampler_state { Texture = <sceneTexture>; MinFilter = Linear; MagFilter = Linear; Mip ...Show All
