How hard is it to work with graphics in C++?

1474 byte By Mr. Mojo Risin at 2007-11-20 7:13:35
I have this final project for my C++ Data Structures class. I was thinking about making some game like Poker(maybe something else). I have learned nothing about graphics in C++ though and before I start working on this project, I need to know how complicated this is to do. Is there an easy to use...

OpenGL Performer. Loading VRML (.wrl)

1588 byte By fersegundo at 2007-11-20 7:14:51
Hi all,I need to load a VRML model with OpenGL Performer. Is it possible?I'm using Visual C++ (Windows XP), Performer 3.2.2So far, I've tryed this: pfdInitConverter("wrl"); pfConfig(); // Create a scene pfScene *scene = new pfScene; // Create a lit scene pfGeoState for...

New to the genre: Question

1325 byte By icwfrock at 2007-11-20 7:15:43
Hello, I hope everyone is doing well tonight.I have a few questions about how to get started with Visual C++. I am currently attending college for Video game design, but the class actually won't open up until fall quarter. So I thought I might try to learn a few things, and get a little head st...

How should I go about modifying images?

585 byte By _Cobra at 2007-11-20 7:15:46
I'm making a program that should modify an image based on user input - text, trackbars, comboboxes, etc. I want to take an image of a map from my computer, modify it based on my input, and then save it as a new image (not changing the original image). I was wondering what I should use to do t...

(OpenGL) Dynamic palette

2894 byte By GabrielBianco at 2007-11-20 7:16:17
I'm trying to find a way to render a full screen quad with a large texture and have the pixels go through a simple transformation. The variables used for the transformation are changed dynamically, so we need to reapply the transformation everytime they are changed.I know of a few ways to do it...

Can anyone recommend a good, current book on beginning c++ 2d graphic programmin

309 byte By Mr. Mojo Risin at 2007-11-20 7:16:20
I know the basics of ANSI c++(console programming), but now I would like to learn Windows programming and graphics. Also, any good book on the basics of Windows game design in C++ would we welcome too. Something that will be up to date with Visual Studio 2005, with example source code, etc.thanks...

OpenGL in Parent Dialog

567 byte By paradoxresolved at 2007-11-20 7:17:38
Hello all,This is my first post to this forum, though I've been around the C++ and Visual C++ forums for some time.I found a series of tutorials for OpenGL on NeHe.gamedev.net. The very first tutorial shows how to create a fullscreen window having OpenGL capabilities. Could someone please dem...

help me..compile error exit : redefinition

363 byte By Mr.Code at 2007-11-20 7:17:46
hi all,i have a compile error:d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(256): error C2381: 'exit' : redefinition; __declspec(noreturn) differsit's probably a conflict of header files between an exit function in stdlib.h and an exit function in glut.h!!how...

exiting D3DX full screen mode

856 byte By jmnewc at 2007-11-20 7:19:02
In a Visual C++ application how do you exit full screen mode and have windows restore the desktop? I dont want to exit the application just fullscreen graphics mode.After much experimenting I found adding the following code shut down 3D full screen mode, redrew the application framework, and returne...

Triangle

417 byte By Azrul at 2007-11-20 7:19:09
Could someone look at the program that i wrote..Just a simple program, however if I used diferent datasets, the triangle will be render but if i used a datasets consist of the x,y,z value ranging about 400 - 800 for x, the triangle will not be render or maybe out of the view extend.might be the prob...

Why is the texture not appearing?

14482 byte By paradoxresolved at 2007-11-20 7:19:20
Hello. I have a simple dialog box that has OpenGL in it. I am trying to draw a simple rectangle with a texture on it. The rectangle appears but the texture does not. Can anyone please tell me why?(Note: all bitmap and texture loading functions return successfully)// header file// GraphicsEngineD...

virtual globe - web browser cross

846 byte By platenica at 2007-11-20 7:20:46
I'm not a developer so I don't know if the following is possible... I would like to develop somehow or be part of an effort to develop, a virtual globe which unlike Google will provide access to the web. It would be a cross of a web browser and a virtual globe program. The novelty: It will...

gnuplot and visual c++

348 byte By Lithium at 2007-11-20 7:23:31
Hi.I know this is not the best forum to ask gnuplot.. but I shall just ask my question here.How do I pass command like "plot sin(x)" to gnuplot through visual c++? I have tried fprinf(pdi, "plot sin(x)") but that does not seem to work. pdi = _open ("wgnuplot", "w");Any suggestion is greatly appreaci...

bounding box of rotated rectangle

205 byte By dave2k at 2007-11-20 7:24:27
i use gdiplus to rotate a rectangly by a certain number of degrees. i want to save this rectanlge to file but before i do this i need to get the 4 coordinates of the bounding rectangle. how can i get this?

? Deriving Formula of a Plane

266 byte By Synetech at 2007-11-20 7:24:41
Hi,<br/>I've got a set of data points which all lie in a plane in three dimensions and I need to figure out the formula that defines the plane.<br/>What I need is a way to calculate the Z coordinate of a point, given the other two.<br/>Any ideas?

openning a book with OpenGl

694 byte By *net* at 2007-11-20 7:25:27
Hello,I need your help plesae:(I have read a lot of lessons in OpenGl but I'm very beginner so, I couldn't understand !I want to put a book on a table and when I press the mouse on the hard cover page it is opend,,and the same thing when pressing the page insidethe book but as realistic a...

Bitmap on a method: What do I really need?

6211 byte By toratora at 2007-11-20 7:25:39
HiI'm trying to use code for an encoder from a project I found here on dev-archive, but I'm not sure how to use it. This is the first method I need to use://// Convert from RGB24 to YUV420//int ConvertRGB2YUV(int w,int h,unsigned char *bmp,unsigned int *yuv){unsigned int *u,*v,*y,*uu,*vv...

GDI+ DrawString works incorrectly?

628 byte By Ugi at 2007-11-20 7:27:07
In general Gdiplus :: DrawString works fine but when I tried to draw string like this: "fffffffffffffffffffffffffffffffffffffffffffffffff" or "iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii" etc.the result was something like this:"ffffffffffffffffffffffff f f f f f f f f", so one part of string and a...

Texture in OpenGL

290 byte By Hard Disk at 2007-11-20 7:27:23
Hello,<br/>I need your help plesae ,,<br/>I have read a lot of lessons in texture in openGL , <br/>But , I still have confuse :(<br/>Could you , please , give me a simple example of texture in openGL ?!!!<br/>I hope you could help me , I don't kow from where I should start!

DirectX Consol Output

399 byte By BossOfTheGame at 2007-11-20 7:27:31
I've been used to java programing for awhile, and when I needed to find out what was going on I just printed something out to the console. Now, that I ahve started to work with DirectX and OpenGL (I still can't figure out which one is better for a larger scale project) I found myself wanti...

opengl experience gauge help :(

1784 byte By Zero99 at 2007-11-20 7:30:17
hey im trying to add a experience bar in my opengl game. ive spent about 4 hours trying to get a experience bar to work... the way im doing it is drawing a quad and expanding the right side compared to how much experience i have... but my head right now is killing me because i dont want it to go pas...

loading several models

1022 byte By Zero99 at 2007-11-20 7:37:01
hi. im having some trouble trying to figure out why my opengl scene frame rate drops down dramatically when i load several models (milkshape). im using Brett Porters model animation tutorial. the models im loading are not all that complicated but, for every model i seem to be losing roughly 1.5 fram...

[directdraw] writing image (as RGBA data) in a surface

1116 byte By dcaro69 at 2007-11-20 7:37:46
hello,I'm trying to port the engine of a canvas library [1] from Linux to Windows. I precise that I'm not at all an expert of the Windows API's (I'm a Linux coder).What I want to do is the following: I have created a window, and I have a image as a pointer to a uint32_t data (4 b...

How do I draw with GDI+ to an IDirect3DTexture9?

1179 byte By koderkub at 2007-11-20 7:38:07
I've figured out how to render to a texture, which is super cool. But I'd also like to know how to render GDI+ directly to a texture. I've been banging my head against this and looking all over the web for documentation that describes how to do this, but I admit I'm at wits end.I...

3d math question

487 byte By messin18 at 2007-11-20 7:40:04
Given a position (x,y,z) and y rotation of that position (so what direction the object at x,y,z is facing... how can i determine if another point (x,y,z) is in front of it?I can probably just ignore y and make it 2d. Can someone point me in the right direction to solve this? I know the dot product...

Graphic engine for math graphics?

1537 byte By mthorman at 2007-11-20 7:41:30
I have done quite a bit of work in Matlab. I picked up C# last year and have done some extensive programming there too. I would like to rewrite some of my matlab 3d surface programs in c#. As a math teacher, I am not to terribly interested in game programming, rather the ability plot a mathematic...

Advice on taking a computer graphics course or not, how much math?

2601 byte By voidflux at 2007-11-20 7:42:12
Hello everyone.I need to pick some cse electives and computer graphics is one of the possible choices. The course will be using OPENGL and here is what it will be covering:Course Objectives This course provides students wit...

Screen coords of HDC

401 byte By chrisochap at 2007-11-20 7:43:25
What is the best method to calculate relative screen coordinates within a client window for a given HDC that is used in API calls such as TextOutW, ExtTextOutW, TabbedTextOutW, etc? I've put together an API hooking module for a project & I need to be able to find exactly where on a client scree...

Help needed reading .wrl file (VRML)

1153 byte By Simon666 at 2007-11-20 7:44:26
Hello,I have a vrml object at http://users.ugent.be/~skdmeule/Object.wrl. I am trying to extract all the facets (triangles or squares) composing this surface. For this I am reading in all the coordinate points and putting them into an array.For the facets I am reading inside IndexedFaceSet { coordIn...

changing Image resolution

227 byte By resumurof at 2007-11-20 7:45:48
Hi,<br/>Im using GDI to open an image ,modify and save to other formats like (JPG,JPEG)etc...but im unable to change its resolution .....is their any sample or source where i can change the images resolution ...pls provide me..

particle collision/response

625 byte By mgrossman456 at 2007-11-20 7:46:41
hi ive been working with opengl for a bit now, but i am not incredibly experienced with programming in general. Right now im working on a particle system that is supposed to simulate the introduction of particles into a chamber through a nozzle like device. I use a cylinder for the nozzle, and basic...

Help with code Please

3314 byte By gammaman at 2007-11-20 7:47:14
I am trying to learn some basic graphic programming n C++ since I have taken two courses and understand the basics of the language. I took this block of code from a tutorial. This code when ran displays 2 colors on the screen. I am just not sure where in the code the colors "blue and yellow" are...

Creating VBOs

810 byte By Zero99 at 2007-11-20 7:48:19
Alrite, so here my problem, im trying to get VBO's and this is what i've done so far: #define GL_GLEXT_PROTOTYPES//#include <GL/glew.h> #include <gl/glew.h>#include <GL/glut.h> #include <gl/glu.h>#include <gl/glaux.h>#include <gl/gl.h>#include <gl/gle...

creating the banner on the desktop which should show command line arguments

315 byte By p.vidhya at 2007-11-20 7:48:52
hi i want solution for one of my task,my task is to create a banner on desktop which should display command line arguments like scrolling is it possible in VC++. i need to get the arguments from command prompt only.please it is very urgent.if any body know how to do this,please reply as early as pos...

How to modify pixel per logical inch..

1381 byte By pvfasil at 2007-11-20 7:52:33
Hey Friends...I was trying to modify a device context using a handle of the type HDC in VC++ . I tried to use two methods, ResetDC as well as CreateDC by providing needed information along with an object of DEVMODE*. This is my code.VOID DoThis( HINSTANCE hInstance ){ bool result; int logpixelx;...

Making an object follow the mouse cursor in 3D space

1864 byte By Eggman002 at 2007-11-20 7:53:52
Given the following situation:Perspective Projection Matrix.Arbitrary View Angle.Let P = an arbitrary point in the world.I need to be able to click the mouse near P, and drag it such that the P.X changes, but P.Y and P.Z stay the same. In addition, P needs to stay the same distance (relative to the...

CsGL question??

63 byte By ali_5680 at 2007-11-20 7:54:36
hey...<br/>does csgl provide support for GLUT mouse functions??

DirectX 8 vs DirectX 9

390 byte By BossOfTheGame at 2007-11-20 7:55:38
I have a book that teaches DirectX 8, and I'm far into it. I was wondering what the main differences between the two APIs are. I know that dx9 includes dx8, but are there some features that the author of the book might advocate that are obsolete in dx 9.(I know 10 is out, but I don't have...

Create Contour from many separate segments

82 byte By truongptr at 2007-11-20 7:55:50
Hi all,<br/>How to create contour from many seprate segments?<br/>Thanks

HELP: I need to display a Selection Rectangle

615 byte By vgramanathan at 2007-11-20 7:56:38
I am writing an image processing program for which I need to crop the image. I need to display a selection rectangle for this purpose and update its dimensions in the OnMouseMove() function. Also I need to repaint the window because the previously drawn rectangle should be erased (otherwise this cau...

opengl help

984 byte By wheelie at 2007-11-20 7:57:02
ive recently purchased beginning opengl game programming, and am now compiling the first program,with these additional librariesglu32.lib opengl32.lib glut.lib glut32.libi also copied the glut files to the correct locations, so that the compiler could find themglut32.dll glut.dllglut32.libglut32.l...

Textbox in Opengl?

411 byte By Zero99 at 2007-11-20 7:58:57
I was wondering how would you create a textbox in opengl so that the user can input text into it?.. i was thinking drawing a Quad for the textbox, but i dont quite know how i would draw the letter that the user has pressed on the keyboard within that textbox... ive searched google for "textbox in o...

Photoshop Adjust Brightness algorithm

224 byte By JasonD at 2007-11-20 7:59:07
What general algorithm do they use? When you brighten a dark image, it increases the luminosity of dark pixels more than the bright ones. The bright pixels are not allowed to reach or surpass full white.<br/>Any ideas?

X Windows (Gnome) App Question

1001 byte By stickdeoderant at 2007-11-20 8:00:27
Greetings!Essentially what I need to accomplish is to create an application for X Windows (Gnome) that will act like a Netzero banner. It will have advertisements on it and ideally when other applications are maximized they will not occupy space under this window.Essentially this window will be abou...

Print preview problem

506 byte By raulrl at 2007-11-20 8:02:30
Hello everybody...Right now I'm working on an app developed in Visual C++ .NET that generates some reports to our customers. When I open the print preview of the document, the last two lines disappear. When I zoom in the document, the last two lines of the document appears!... This happens usin...

using CScrollView with CSocket

802 byte By zju.baiyonghong at 2007-11-20 8:04:46
hi,allwhen i open the same programs on two computers and connect them with CSocket, i got two CScrollView objects. now if i scroll one of the objects, i need the other scrolls the same way. so i write the following code/////////////////////////////////////////////////////////////////////////CView::O...

Sdk

458 byte By J@mes at 2007-11-20 8:05:18
Hello,I have a small problem.I'm am using c++ express 2005 and trying to learn openGL. I complied a program yesterday with the include windows.h the compiler does not known of it so i downloded the framework SDK 2.0 and installed it and check the include folder and still no windows.hthe message...

Irregular window question

142 byte By Goldbach at 2007-11-20 8:08:01
I want to create an irregular window with a partial transparent png <br/>background file.<br/>How to create this window with no mask bmp file?

CBrush DeleteObject

1034 byte By volkansen at 2007-11-20 8:08:50
Hi,I am creating and deleting MFC gdi objects and watching the number of GDI Objects that application uses via Windows Task Manager.When i create a CBrush object by CreateSolidBrush i observe an increment in GDI Object count of application. However when i delete the brush by DeleteObject there happe...

Passing data from a thread to a timer function

561 byte By madenai at 2007-11-20 8:12:29
Hi,I need to send data (X) from a dialog based application (which runs in a thread) to a to a timer function which plots this data.=================================declarations of CCLass............................UINT ThreadFunc (LPVOID pParam){............ X ; // X calculated here..............