friends i am developing a game using Dev C++ IDE.Me know that graphics.h file exist to do graphics programming in TubroC++.But i want to develop win32 program.Can anyone tell me how to use graphics functions in win32 programming.Me want to draw a triangle and then balls in that triangle.Game name is...
I intend to make a remote process to capture screen stream and broadcast it to clients on networknot capturing one snapshot fo the screan..but capturing the stream and showing it on the clients screens as continious stream1st..how can i capture a stream from the screen card ?..should i reserve a ser...
hello frnds.I need a help regarding Bitmap drawing.I have height/width of bit mapand pixel data in separate array(32 bits per pixel)i have created a bitmap of having bitcount is 32;Now i want to create BITMAP of 8 bit per pixel and using same pixel array data.I also have a a color palette but i m...
I get errors while compileing stateing that an error ocurs in this particular part of code:m_pDevD3D->SetVertexShader(D3DFVF_SIMPLEVERTEX);where D3DFVF_SIMPLEVERTEX is defined like this:#define D3DFVF_SIMPLEVERTEX (D3DFVF_XYZRHW|D3DFVF_DIFFUSE)Which is, as I'm perciving it, strange because i...
192 byte By
jparker at 2007-11-20 8:16:25
I am trying to understand the Math of a Camera in Computer Graphics.<br/>Here is the question<br/>If i have a camera a point a, How do I compute the view matrix so the camera looks at point b?
219 byte By
macmoy at 2007-11-20 8:18:43
i think i chose opengl for making graphical games..<br/>can anyone point me to a good(very good and very easy to understand) tutorial?<br/>i'll rili appreciate whatever info you give..<br/>thanks in advance!!!
272 byte By
david123 at 2007-11-20 8:19:44
Dear all<br/>Regards!<br/> I have a drawign editor from the following link,<br/> http://www.codeproject.com/useritems/DrawToolsRedux.asp<br/>I want to change the C# graphics routines to OpenGl, kindly some one to <br/>help me.<br/>Regards
640 byte By
david123 at 2007-11-20 8:19:54
Dear allRegards i attached the code , n which i m facing problems.actually i want 1): to open a DXF file bloack and then drawing , i have done it.2): now i want to save this drawing n a specific format, and then open it when i want just like in liek on the link http://www.codeproject.c...
619 byte By
ali_5680 at 2007-11-20 8:20:02
hiI am currently working on a drawing application using openGL and C#........having a nightmare trying to grasp concept of selection/picking...my application will be drawing 2D(later 3D) objects...the user will be able to select any edge of a polygon and move it around/modify it..I am still confused...
Here is an example for someone who doesn't get what I am talking about. http://ohnoitsaninja.com:1337/prog/slantedelipse.bmpI need to be able to make a slanted ellipse. The standard Ellipse in GDI doesn't support a slanted Ellipse that I know of.Does anyone know of a way of doing this easie...
3215 byte By
madenai at 2007-11-20 8:25:28
Hi,I have this small MFC project which displays a grid on a dialog box.//////////////////////////////////////////////////////////////////////////////////// SimplePlotDlg.h//class CSimplePlotDlg : public CDialog{ . . .public: CBrush Brush;...
I have this little problem. I'm going through this direct x course book and everything would be fine exept the examples in this book use d3d8/d3dx8 whereas I'm using d3d9/d3dx9. In one of the examples the author shows a way of rendering indexed primitives after setting their indexes with t...
274 byte By
SB4 at 2007-11-20 8:26:15
hello everybody,<br/>I'm a beginner programmer in C++ i know this :<br/>variables, functions, files, pointers, string, loops, conditions & little about Data Structures.<br/>now my question is what i should know to be Game Programmer ?<br/>Regards<br/>SB4
958 byte By
Vlad417 at 2007-11-20 8:27:12
i have just started using the allegro library and i'm already confused why my program won't run properly.IDE:Code::BlocksCompiler:GNU GCC#include <allegro.h>using namespace std;int main(){ allegro_init(); install_keyboard(); install_timer(); do{ BITMAP *bmp = creat...
Hi,I'm trying to learn c++ with the goal able to program 2D games like pacman and stuff like mario bros and final fantasy I. Although C++ is new to me, I have done several other object oriented programming languages, like java. However, I never programmed games before.I read an article about ga...
Looking for an existing grpahics package that implements Tensor Node Analysis.Simply stated this is a mechanism where movable points "nodes" (in 3d space) are connected to 1 or more other nodes via a tensor (basically a mathematical bungie cord).Given the nodes initial positions, tensor parameters (...
Hi:<br/>Is there a sample code to generate a fake integrated circuit? The circuit does not have to be electronically correct. But it needs to look like a real integrated circuit.
Ive looked at many codes for it like the ones at nehe, but i cant figure out how to pick out the stuff i need to make it work in my code.Is there some script for text in opengl that i can just copy and paste into my code ready to go?[EDIT] i found glutBitmapCharacter, but it gives me a [linker error...
505 byte By
skapta at 2007-11-20 8:36:57
I am working on this mfc app., it reads a segy format file that is about 550mb and creats an ascii file out of it and I pass a pointer of this file to a cube creation algorithm and subsequently this cube will be displayed.First problem, reading segy ie real slow and when it completes reading, then w...
hiI got the mesurement data and I create the graph... The mesurement data from fiber optical experimentationin this experiment, I do base on the some math formula, like gain,Brollioin Scattering and etc example of my mesurement data and the to create graph from this. x y 26 0.12727...
170 byte By
Entalion at 2007-11-20 8:39:52
Hi,<br/>i'm programming in C++ and i need to implement a 2D human body to rotate and shift in my UI, FLTK.<br/>Any Suggestion?<br/>Thanks<br/>Giu
Hi, I am getting OutOfMemory Error when i am trying to load an image as follows ... Image *image = new Image(L"birdy.bmp"); Status st = image->GetLastStatus();I am working with VC8.0, on XP. I have more than 40GB of memory and i have give my paging for 4025 MB.Do let me know...
205 byte By
dave2k at 2007-11-20 8:40:13
i need an example of how to create a dng image from an image buffer using adobe's dng sdk. i have searched for tutorials and there are none, in fact there seems to be little resources on this format..
7 byte By
messin18 at 2007-11-20 8:41:04
deleted
2310 byte By
dave2k at 2007-11-20 8:41:37
i take a jpeg file and i want to roate it by 45 degrees for example, and then save this new image to file. so far i have been able to work out the new dimensions of the image, and rotate it. the trouble is i need to rotate the image around its center, at the moment it's not doing this. any idea...
Originally, I renewed lines which were visualized according to the users keyboard input with MFC GDI(Graphic Device Interface)functions, such as LineTo() and MoveTo().a. Symptom(Detail)When the application program is hidden behind other program or out of screen, lines, which should be appeared, go a...
Which is correct, ive seen it done both ways,i would say the latter is proper, am i wrong?In the window message procedureWAY_1case WM_PAINT:BeginPaint(...);RenderScene(...);SwapBuffers(...);EndPaint(...);return 0;WAY_2case WM_PAINT:BeginPaint(...);EndPaint(...);RenderScene(...);SwapBuffers(...);retu...
1210 byte By
eriveraa at 2007-11-20 8:50:22
Hi:I am Eduardo, writing from Peru (Lima) and the author of program Secciones ( http://sourceforge.net/projects/secciones/) developed with .NET 2 and CSharp and i realize that you have experience with graphics management, viewpoints, viewports, etc. and I was wondering if you can help me improve my...
1834 byte By
david123 at 2007-11-20 8:50:51
Dear allRegardsfollowing is my code for zooming a triangle, but it is not working , i think some problem in GLlookAt();protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); System.Drawing.Size s = Size; wi...
Hi everyone. I have used OpenGL for sometime now but I wanted to get my hands dirty and write the Hello World perspective based wireframe cube example from scratch. I know that my code is VERY inefficient however, I am writing it this way for my own understanding. Right now, my cube projects as an o...
280 byte By
Vlad417 at 2007-11-20 8:53:54
How much does does gameplay and graphics effect your game experience? and how do either change your opinion about a game? which is more important to you when choosing a game? would you play a game with high graphics but low game play or a game with low graphics and high gameplay?
876 byte By
Spoggy at 2007-11-20 8:59:40
Hi, new here and very stuck at the moment, hoping someone may be able to help.I'm writing a full screen 3D app using DX9 and DirectInput. Part of the app connects to the Internet for updates using Winsock functions. All is okay and works fine apart from when using either Zonealarm or Comodo fir...
512 byte By
james00 at 2007-11-20 9:00:28
Hi, how can I get the date and time when the video was recorded from my dv camcorder? Can this be done using directshow? or is there any other way?Currently I can only get the timecode w/c is the running time from the start of the video but not the date and time when the video was taken as seen in t...
144 byte By
jackytck at 2007-11-20 9:01:46
I'm a newbie.<br/>I want to capture images from a webcam lively using C++.<br/>Any good and generic library can help?<br/>Thanks.
609 byte By
epyk at 2007-11-20 9:02:52
The problem I'm trying to solve, how to get the image or graphics of a program running (i.e. word aim, internet explorer, ect.) and have it show in a Picturebox control as the window of that program. I was thinking of a method that would use a screen capture and that programs x, y location and...
891 byte By
robshere at 2007-11-20 9:05:41
Hai All, In my project I want to load two diffrent type of bitmaps in the same controll.But my problem lies in while resizing.The controll is resizing according to the winodow and the image over it is also resizing using StrechBlt(). Now if I'm trying to load the second image of the...
196 byte By
gamer150 at 2007-11-20 9:06:18
if you have three points that form an angle is there a way to find that angle?<br/>if you have two points that form a line, is there a way to find a third point that would make a given angle?
100 byte By
gamer150 at 2007-11-20 9:09:18
whenever I run a game I make every instant its CPU usage is 100% is there a way to cut down on this?
I'm new to using DirectX and am having trouble figuring out how to let Visual Studio 2005 recognize it is infact there and installed. I have already installed and made sure that the lib and header files are linked, but it still won't compile any of the sample source code that I was given...
it's not decode filter,only process video stream.<br/>the merit of it is 0x800200.<br/>when I render a mediafile using graphedit,it is loaded.<br/>But when I use Mediaplayer,it can't be loaded autoly.<br/>how can I do? If I want Mediaplayer can autoload it.
3327 byte By
dcaro69 at 2007-11-20 9:13:39
Hey,I have a rectangle (a piece of memory) that I fill with argb data. I would like to display it in a window, using direct3d. I have 3 questions about that.1) I've read several tutorials. One solution would be to use the sprite interface. Then create a texture, fill it with data and render it...
735 byte By
vishnupv at 2007-11-20 9:16:02
Hi .I am looking for creation of an application which Can incorporate audio file, to make comments, similar to the captions we give in Images.I am using VC++ 6.0 ,working in Xp. Is there any way to add .wav files into the Jpeg file?. and i tmust work with the normal Jpeg viewer without sound, and w...
Hi, I have one MFC application. Through that application I am creating IVideoWindow. I want to play one video through IVideoWindow interface. I am calling graph and IVideoWindow interface 5 times. First time it shows the video. But from second time it minimizes automatically. video showing is...
2603 byte By
Koiby25 at 2007-11-20 9:21:15
I'll just throw this out here first:struct VERT3D{ // Position D3DXVECTOR3 pos; // Normal D3DXVECTOR3 normal; // Texture coordinates D3DXVECTOR2 tex; // Default color D3DCOLOR col;};struct POLY3D{ // Vertex indicies WORD verts[3];};...VERT3D vertList[OBJ_MAX_VERTS];POLY3D polyList[OBJ_MAX_POL...
386 byte By
ali_5680 at 2007-11-20 9:24:48
hey...need help in 2D drawing ...I want to add drawing ablity for elliptical curves, arcs and ellipses...most of the tutorials i have seen just draw static curves..I want the drawings to be based on points specified by the user but I having a little trouble in drawing circular arcs using three poin...
3476 byte By
lamcntt at 2007-11-20 9:25:10
help me! I want to change alpha mask from d3d to ddraw !But I don't know how do?help me!D3DCAPS9 caps; m_pd3dDevice->GetDeviceCaps( &caps ); if ( !caps.AlphaCmpCaps ) return RES_FAILED; m_pd3dDevice->BeginScene(); //Save the current state m_pd3dDevice->GetTextureStageState(0, D3...
3385 byte By
lamcntt at 2007-11-20 9:25:22
help me! I want to change alpha mask from d3d to ddraw !But I don't know how do?help me!D3DCAPS9 caps;m_pd3dDevice->GetDeviceCaps( &caps );if ( !caps.AlphaCmpCaps )return RES_FAILED;m_pd3dDevice->BeginScene();//Save the current statem_pd3dDevice->GetTextureStageState(0, D3DTSS_COLOROP,...
1165 byte By
robshere at 2007-11-20 9:25:49
Hai All, I'm creating an onscreen keyboard.In that I'm using the techinique of changing the focus from the keyboard window to the last focused window after the mouse click on the keyboard window and then sending the input using the keybd_event(). It is working good with notepad. M...
75 byte By
gamer150 at 2007-11-20 9:29:47
I'm want to start 3D programming with OpenGL but I don't know how
Hi all,I've built a little program to play a video file, with an embedded platform running WinCE 6, using DirectShow interfaces.Basically the core statements are the following:/***********************************************************/CoInitialize(NULL);hr = CoCreateInstance(CLSID_FilterGraph...