MDX 1.1 transform coords from screen to 3d world

684 byte By AlexDR at 2007-12-5 22:13:49
I'm trying to convert the low rigth corner of my full screen app from screen coords to 3d world coords.This is my C# code:Matrix mView = device.GetTransform(TransformType.View);Matrix mProj = device.GetTransform(TransformType.Projection);Matrix mWorld = device.GetTransform(TransformType....

Fast Gaussian Blur

86 byte By Reunion at 2007-12-4 23:57:10
Hi!<br/>Help me please to moke a fast Gaussian Blur filter.<br/>Thanx in advance.

Capture screenshot as HBITMAP with layered/transparent windows

1078 byte By dc_2000 at 2007-12-4 10:39:27
Hello:Here's the code to capture desktop into a bitmap:HBITMAP CaptureDesktop(void){ //Capture desktop into bitmap HBITMAP hBitmap = NULL; RECT rcDt; HWND hDtWnd = ::GetDesktopWindow(); HDC hDtDC = GetDC(hDtWnd); if(hDtDC && GetClientRect(hDtWnd, &rcDt)) { //Create mem DC & bitmap int w = rcD...

MultiThreading in DirectShow Transform filter

3564 byte By HotChick at 2007-12-3 19:25:58
Hi! I've got a problem about using threads to do my image processing in the transform function of my transform filter. My main problem is that when I'm processing big images of large samples, the video renderer seems to drop frames. So I thought of instead of processing a single sample lin...

Creating DirectDraw Surface

772 byte By mark yang at 2007-12-1 0:35:03
How DDraw surface can be create in 32-bit ARGB format ?All I found ddsd pixelformat must be correctly initialized..Here is my 'out-of-work' code..This only create RGB32 mode surface. Alpha value ignored completely..What can I do that ?I need some sample code... hr = DirectDrawCreateEx(NULL...

DirectX and OpenGL - what to start with

501 byte By typeR at 2007-11-29 14:56:34
HelloI want to learn how to write simple 3D games. My problem is... i dunno what to start with? As to my programming skills - I know Java very good but my C++ skills are rather poor. I don't know windows API programming for example. My first question is: what is the difference between DirectX a...

playing quicktime on DirectDraw surface

107 byte By wingstech at 2007-11-27 0:19:30
Hi:<br/> Do you where I can get the source code on playing quicktime on directdraw surface? Thanks.

Where to use OpenGL, Directx, Visuall C++

624 byte By DCSSR at 2007-11-25 11:57:25
I am a novice programmer, interested in furthering my horizons, and am now wanting to tackle a simple graphics project with a rotating wheel at a very high speed. My questions are very simple. I have spent some time trying to become knowledgeable about OpenGL, Directx, C, Visuall C++, Assembly lan...

Transformation Problem

1187 byte By utkseth at 2007-11-25 11:55:20
HII have a circle with multiple lines passing through the center. Currently i am able to select and grab the circle as a whole( along with the lines) and the individual lines and move them around space.I want the motion of the lines to be restricted to the plane in which the circle is currently draw...

Reference article on drawing rotating object

160 byte By DCSSR at 2007-11-25 11:55:15
Anyone know of good reference / sample code for using Visual C++ to draw very high speed rotating objects such as a wheel rotating at 5,000 rpm.<br/>Thanks

texure mapping made easy

389 byte By fawzma at 2007-11-25 11:55:01
just wanted to share a method I have come up with to texture-map. I've included a flash 9 demo as well as the class source and darkbasic pro source. Move the blue dots around to change the triangle and u.v coordinates, as well as the brightness and time scale.Calling it Time Texturing for nowht...

What is the GABOR FILTERING?

102 byte By thund at 2007-11-25 11:53:40
Hmmm.. Tell me, what is the Gabor Filter??<br/>ANd, explain me the formula Gabor!!!<br/>Please...

FBO & RTT problem

3768 byte By misscelan at 2007-11-25 11:52:22
Hi,Im having some problems trying to render my scene to a texture.Here is my initialization code glGenTextures(1, &textura_fbo); glBindTexture(GL_TEXTURE_2D, textura_fbo); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,...

2d plotting on raw machine

965 byte By senyorc++ at 2007-11-25 11:50:49
I have a 32 bit ARM system on chip. So its got a color LCD controller. I have the choice of installing an OS that its supposed to use, but I choose not to. Instead, I would like to put my newly obtained c and c++ skills to use. The device has an LCD panel to it, 640 by 480, and I can write code to...

SDL under Windows.h

118 byte By Lazze at 2007-11-25 11:50:41
Hello<br/>How do I create a SDL Surface to draw some pixels on under a win32 window?<br/>Thanks<br/>// Lasse

Copying an entire Mesh

288 byte By ^Johnny2Bad at 2007-11-25 11:50:07
Hi,<br/>I need too know how too copy a Mesh along with all it's textures and materials. Has anybody got a simple way too do this? I have been playing with CloneMeshFVF, but can't find a reference too copying the materials etc over too the new one.<br/>Cheers,<br/>Jonathan.

DirectX

250 byte By Jec86N at 2007-11-25 11:49:47
I'm having a problem with managing the DirectX for starting out in gaming. I'm having problem starting it out with the code. Can anyone give me a few tips or pointers or show me how to set up the beggining code for directx in Visual Basics.

Aero and system memory surfaces

705 byte By Orange_Segment at 2007-11-25 11:49:45
Dear All,Currently Im testing a DirectDraw application under Windows Vista Ultimate. Basically the application does the following: creates the primary and auxiliary (offscreen) surfaces then in a loop fills the offscreen surface with data and blits it onto primary surface. Also a clipper is used to...

Streaming

98 byte By amit_srms21 at 2007-11-25 11:49:42
hi,<br/>can any one tell me how to do streaming(convert bitmaps into a video file)<br/>Thanks

OpenGL vs. DirectX?

71 byte By mahpiyaate at 2007-11-25 11:49:33
I want personal opinions on this. Which one is better for making games?

Desktop capture

253 byte By amit_srms21 at 2007-11-25 11:48:22
hi,<br/>I want to capture the desktop events and want to save it as video file ,plz tell me how to do this ......I have code to capture the the video from device...if u have any example to capture Desktop pl z share with me..<br/>Thanks in Advance

Making something Jump in DirectX

1006 byte By cky83 at 2007-11-25 11:48:02
right now i have something like:void movey(int interval){ float k; int h = 0; for (int i=0;i<m_nCount;i++) { int j=m_pObjectList[i]->m_nObjectType; //3 is the enumerated type that coicides with the HERO object if (j==3) { k=m_pObjectList[i]->m_structLocati...

Directx Problem

6716 byte By amit_srms21 at 2007-11-25 11:46:08
hello, i am a beginner in Directshow i am working on Microsoft Directx SDK(2006) but getting lots of error in header files ,i thinki have some problem in settings and not included all the files ,plz canu tell me wat file i have to include for this ...i am getting following error -------Configuratio...

Graphical Interface: Not Visable

624 byte By codeguardian at 2007-11-25 11:44:15
I am trying to create a graphical interface and have a problem they never seem to appear. I have tried to use MFC CListBox class to create to interface. CListBox listBox; RECT rc = {5,5,180,140}; listBox.Create(WS_CHILD | WS_VISIBLE | LBS_STANDARD,rc,m_pMainWnd,ID_LB_ANIMLISTBOX); listBox.AddStrin...

Invert Pixels

334 byte By greeneggsandham at 2007-11-25 11:42:42
How can you invert all the pixels on the screen, not just once but continuously? One of the problems you run into with this is that the second time you want to invert it goes back to regular. A example that works is with windows magnifier, to try press Win + r then type in magnify. Then on settings...

Getting into DIrectx, what compiler?

396 byte By spleblem at 2007-11-25 11:41:07
so i have been learning some c++ using dev c++now im getting into to directx, and i have read on the net that dev c++ isn't good for directx and i have found that it wont compile lots of codesit all ways has annoying errorslike no new line .ectso i was wonder what a good complier would be or ho...

Window event handling in X and Win32

899 byte By Lindley at 2007-11-25 11:40:07
I'm trying to create a window to draw to using OpenGL. For various reasons I don't want to use GLUT, and none of the other windowing systems I've seen so far appear sufficiently lightweight to be useful in my context.I'm primarily working in XP64, but I'm looking to port to...

How to draw a over-line on characters

200 byte By lilnelse at 2007-11-25 11:39:14
I want to draw some characters with underline, strikeout or overline, I've known how to get the first two, but how to do with the overline, please?<br/>I'm using VC++ 2005, GDI+.<br/>thanks~

XRender image scaling

971 byte By aewarnick at 2007-11-25 11:39:00
All I want to do is a simple scale when the image is drawn. I don't know how this transform matrix works, but I think it looks right. But the image never stretches beyond a square. I just want the image stretch to the width and height I tell it to. What am I doing wrong?double xscale= (doub...

GDI+ shadow + blur

732 byte By giaur at 2007-11-25 11:38:41
Hello,I need to add blurred shadow to polygon. I know how to paint shadow, but I have no idea how can I add blur Effetct to it.My code looks like this:Gdiplus::Graphics graphics(hdc);SolidBrush b(Color::Red);SolidBrush bShadow(Gdiplus::Color(128,0,0,0)); GraphicsPath g, g_shadow;for(int i=0;i<5;i...

How to wait for the vertical sync with IDirectDrawVideoPort::WaitForSync

1424 byte By tetoro at 2007-11-25 11:36:07
Hi all!In my current project on windows, I have to animate some 3D objects at about 60fps. To get rid of the tearing problem, I want to synchronize with the screen vertical refresh.Because of some particularities of the 3d engine used, I can't use SwapBuffers() function so I guess the only solu...

2D Point Rotation around 0,0

470 byte By John_M_Gough at 2007-11-25 11:34:18
Hi all, im working on an ai project and need to be able to rotate my ai creature, ive used polylines to create the image of my creature, its center point is 0,0 and each vertices are centered at 0,0 and the center point is changed to move the creature around the 2d plain. i am having trouble rotatin...

" THE BOUNCING BALL in C++"

6079 byte By lucamarcus at 2007-11-25 11:34:14
Having looked at the code for the "bouncing ball" which was said to be "hello world" of Win 32. I have been trying to do the following:1. Make the this ball move in a predefined rectangle (one ALREADY drawn) even before the ball starts moving2. I also would like to make this ball to change color te...

Drawing Dialog.

328 byte By John_M_Gough at 2007-11-25 11:33:24
hi, im strating an AI program simular to "smart sweepers - v1.0" and i need to be able to draw onto a canvas.I have no idea about drawing lines or anything, that comes next. i just need to learn about setting up a section of the screen for drawing single dots on. if anyone can explain how to set up...

problem with FrameRect function..

218 byte By haggit at 2007-11-25 11:29:16
The function works properly in display mode. I can see a nice frame. <br/>but in the print preview the frame disappears!!!! Sometimes I see a part of it, but not all the frame.<br/>Any help will be appreciated...

direct3d error

769 byte By c1t1z3n at 2007-11-25 11:28:43
HiI was following some tutorials on programming directx, and everything was going fine until I got this:Error 1 error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "bool __cdecl initDirect3D(void)" (?initDirect3D@@YA_NXZ) WinMain.objError 2 fatal error LNK1120: 1 unre...

ANimation with Turbo C

1358 byte By Jacko123 at 2007-11-25 11:26:27
Hello All, I'm writing a graphics application using Turbo C. The application is a simulation of "Car service".Explanation: There is a car service center in the high way. The cars arrive one by one and get serviced at the service center. What I did? Presently, one car arrives, gets servic...

Setting DC resolution

548 byte By Pavel Kotrc at 2007-11-25 11:15:56
Hi, I would like to create a screen device context with a specific resolution, say 300 dpi (I don't know if I am using the correct words, I just want the GetDeviceCaps( hDC, LOGPIXELSX ) method to return a value of 300). Is there a way to achieve? I read the particular resolution from the print...

Windows Mobile PlugIns

232 byte By Kushi1 at 2007-11-25 11:08:57
Hello,<br/>Can any body give me a sample coding for Windows Mobile PlugIns using RAPI (Remote application programming interface ) .I m new to this concept. Plg give me basic idea about how to write PlugIns? plssss.<br/>Thanku.

Best 3-D Engine?

249 byte By bfr at 2007-11-25 11:07:19
What is the best 3-D engine? I'm looking for something that besides being powerful and fast, I'd prefer if it were cross-platform. I've read about OGRE, Irrlicht, and some others, but I don't know which one I should stick with.

sample 3-D mushroom or fairy

464 byte By sweet_babylhyn at 2007-11-25 11:06:24
Is there anyone one in the forum that have sample 3D-mushroom or a fairy that is moving. I have to place it in the my main form using vb 6. I already search in the internet but all I searched is a 3-d mushroom and fairy that is steady. The one I need is moving even if it moves simple.I have to pres...

OpenGL in SDI Application

443 byte By HockeyKing at 2007-11-25 11:01:08
Hi I am writing a OpenGL Application and I want to put it into a SDI Application.I have used a tutorial on code guru to get the SDI kind of working, but I cant figure out how to resize the openGL window when the SDI window is being resized.I have placed my whole openGL SDI application on http://www.e...

Managed DirectX - Loader Lock problem

348 byte By ^Johnny2Bad at 2007-11-25 10:59:13
Hello,I am using Visual Studio 2005 .net 2.0 and am trying too use managed directx. Unfortunatley whenever I try too initialize directx I recieve a loader lock error from the MDA.How do you switch it off? Or what is the correct way of initializing directx so this error does not occur.Thanking you in...

DirectX & Shaders, Sharing GPU between surfaces of differents devices...Posible?

4008 byte By AlexDR at 2007-11-25 10:57:27
Hello, I'm developing a 3d application that needs to run in a secondary monitor in full screen mode, and at the same timeit must be displayed in a preview window in the first monitor (to be more precise in a picture box over a windowed form).To solve this I've implemented 2 solutions by no...

AVIFileOpen handles leak, and more

880 byte By HTS at 2007-11-25 10:57:03
This is very strange, and I hope any of you could give me a hint - we have an application, and 2 dlls - avi dll, and image processing dll. The avi dll uses vfw package to create avi files, and the image processing dll uses ipp for image processing (ippcore.dll, ippcv.dll and more). The problem is...

Direct XNA - totally lost

415 byte By ^Johnny2Bad at 2007-11-25 10:56:30
Hello,I am interested in developing some Direct XNA, but am having difficulty getting it going, maybe some of you could point me in the right direction.1. Is XNA purely developed with C#?2. What is the installation procedure for XNA?3. I have a win 2003 box with visual studio 2005 .net (sp1), is thi...

Recording a non-downloadable video

524 byte By GordonFreeman at 2007-11-25 10:55:46
Hi.I would want to write a little program that can record a video wich is been played on another window.It can be useful , for example, for storing on the hard disk some videos that can be only watched on internet pages, but can not be donwloaded or you can not determine the url from wich they come....

GDI not drawing in window

1835 byte By tk6 at 2007-11-25 10:54:42
I'm trying to port an existing code-base to Windows GDI but I'm getting a very strange bug. When testing the application it normally draws correctly when it started but after doing a lot of drawing(There's one object that redraws itself every time it's updated which when being po...

GDI+ WM message confusion

1095 byte By links at 2007-11-25 10:54:29
I'm learning Win API programming and I'm currently trying to figure out some GDI+ stuff.I want to create a duplicate of Internet Explorer 7's install window.First I draw some text by handling the WM_PAINT message (NoBackground.PNG).Now I add my background PNG by setting WNDCLASSEX �...

convert 48bpp image data into Gdiplus Bitmap

781 byte By dave2k at 2007-11-25 10:54:12
I have the following:image = new unsigned short[iw * ih * 3];// populate image Bitmap* pB = new Bitmap(iw, ih, PixelFormat48bppRGB); Gdiplus::Rect rc(0,0,iw, ih); Gdiplus::BitmapData bd; Status st = pB->LockBits(&rc,ImageLockModeRead | ImageLockModeWrite,PixelFormat48bppRGB,&bd); memcpy(image, bd...