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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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?
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?
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...
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...
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...
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!
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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..
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...
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...
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...
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...
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;...
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...
63 byte By
ali_5680 at 2007-11-20 7:54:36
hey...<br/>does csgl provide support for GLUT mouse functions??
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...
Hi all,<br/>How to create contour from many seprate segments?<br/>Thanks
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...
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...
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...
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?
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...
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...
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...
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...
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?
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...
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..............