MinGW + DirectX

965 byte By AlbertGM at 2007-11-20 4:58:16
Hi, I'm trying to compile a little game using MinGW and DirectX 9 SDK, but I recieve the tipical 'undefined reference' error message linking. I think I've included libraries and headers, but it don't works.The compiler command is:g++ FREAKOUT.CPP BLACKBOX.CPP -o freakout.exe...

Tiff file pixel depth

325 byte By kishorboddu at 2007-11-20 4:58:21
Hi,Can someone help me in finding pixel depth of a tiff image, I know using it with image or bitmap classes, the problem with that is we need to read the image into an object, but the files are of high in size(100+ MB). I need code to read from header of the tiff file.many thanks in advance.Kishor...

can i Move CFont

140 byte By CRectGuy at 2007-11-20 4:59:25
i have create a CFont member and i use TextOut from the cclientDc to textout the word but how can i click and drag my word to some location.

How to move the pictures?

417 byte By Rong Nie at 2007-11-20 5:01:26
Hi, Good morning, Everyone ! When I created a window( Function: CreateWindow() ), and loaded a picture(.jpg/.bmp/.gif) in this window( in the function OnPain() or OnEraseBkground() ) by using COM(IPicture && IStream), so my question is : How to move a picture from left to right or from right t...

glLookAt

238 byte By Azrul at 2007-11-20 5:05:41
i writing a program with a little camera manipulation.. however, after i inserted the glLookAt function, the picture wont display..<br/>any suggestion?<br/>i hope some one will explain properly the value in the glLookAt matrix..

Merging two palettes in one

255 byte By eledh_telamion at 2007-11-20 5:06:49
I'm trying to convert two different palettes in one. Each palette has 256 colors (8bit) but I don't know how to do that. I think to calculate for each color, the distance to all other colors but that isn't the way to get the results I want.

OpenGL Picking Problem

6321 byte By Phoresis at 2007-11-20 5:09:18
Hi,I'm having trouble getting picking in openGL to work properly. Would someone be kind enough to have a quick look at my code to see if there is anything obvious I am missing. The code itself, isn't that complex.I am rendering a white square that I want to be able to move around only if t...

glTexSubImage2D question

386 byte By patrickH80 at 2007-11-20 5:09:41
Hello,I have two textures. Texture_1 has the size of 900x900 pixel and Texture_2 is 100x100. Now, I want to fill Texture_2 with the upper right corner of Texture_1 and thought glTexSubImage2D would be a good solution but when i render Texture_1 afterwards it just shows Texture_1 with the whole Textu...

cxImage-> tiff.lib(tif_ojpeg.obj) : error LNK2001

838 byte By Alic at 2007-11-20 5:10:32
Posted: Tue Feb 06, 2007 10:43 am Post subject: No compile CXImage ------------------------ When I use the function Decode in this code: CxImage *newImage = new CxImage(); newImage->Decode(imagen, size, CXIMAGE_FORMAT_BMP); I see this error: msvcrtd.lib(cinitexe.obj) : warning LNK4098: defau...

child window message loop

1320 byte By C#er at 2007-11-20 5:10:47
Hi fellowsI have a doubt. I developing a MDI application for the first time. I've readed some codes and some articles over the net and I find out that I'll use TranslateMDISysAccel function in my frame window.My questions:1) The child windows doesn't have a message loop? All is proces...

Choosing a language for the 3d engine...

468 byte By Ncatdesigner at 2007-11-20 5:13:24
Hi people!!!!I have notions about many languages, But I'd like to know which language do you recommend me.Because of is a 3Dgame and must be as efficient as possible I think the language matters.I'm between c++ and c#I think c++ is as powerful as dificult and c# it's easyerAnd the imp...

Creating/editing 2D images...

565 byte By _Cobra at 2007-11-20 5:13:55
Does anyone have any useful links or code snippets on how to edit .tiff images? I've done a lot of searching but haven't found anything I can understand or use - I'm a self taught c++ user (programmer would be a stretch).I have an image that I'd like my program to modify and edi...

CFont Work with CRectTracker

364 byte By maxiis at 2007-11-20 5:14:16
i have a question on click and Track CFont like i use CRectTracker::Track function in ONLBUTTONDOWN to track the postion i drag to.And CRectTracker::AdjustRect so that i can resize the font just by adjust from the Handle. any1 have any ideal i can use CRectTracker Work with CFont or have a better s...

Mouse Driven Camera

1021 byte By Eggman002 at 2007-11-20 5:15:47
I am trying to implement a mouse driven camera, and I am having trouble with the concepts. Here is what I need the camera to do:Move Side to Side/Up and Down. The Camera Position and Target would both change in this case.Zoom. I am thinking just the camera position changes and moves towards the t...

How to Remove Animation Flickering on View/Doc Frameworks?

623 byte By yoyokits at 2007-11-20 5:16:37
I am developing SDI using View/Doc Frameworks. There are 4 Views on splitter windows and 1 Doc. I must refresh those views all the time as the output sensors always change. The output from the sensor are store into document. Everytime the sensor data is updated, the 4 views will be refreshed. I use...

glTexImage2d going from 8 to 16 bit pr color

578 byte By Xiphias at 2007-11-20 5:17:06
I have the following working fine... glTexImage2D(0, 0, 4, image.get_width(), image.get_height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, image);As i see it, i need to change the GL_RGBA and GL_UNSIGNED_BYTE, but i apparently keep botching up the parameters.also i seem to rememb...

Rotating then resizing a 2D shape

739 byte By Phoresis at 2007-11-20 5:17:25
Really not grasping something here.Say I have a square with the vertex(0,0) at one corner and I can resize the shape by dragging the corner opposite, in and out. (achieved by increasing or decreasing the width and height). When resizing the shape, the vertex at (0,0) does not move, but all other ver...

loading an undeterminate number of...

510 byte By Ncatdesigner at 2007-11-20 5:17:49
Hello people,Since now I used to Load a Known number of objects to my scene, That was too easy, but now I found a problem.What if I want to load an undeterminate number of objects? My idea is to specify a maximum number of objects with an array, then I could declare a static int with the number of o...

DX9 - MinGW?

500 byte By Zarathu at 2007-11-20 5:18:12
I typically use Dev-C++ for all of my programming, but I'm getting into game development now with DirectX and I was wondering whether or not installing Visual C++ is really necessary. I have a genuine CD-key and everything, I just don't like it because of Microsoft's bullshit, along...

Curvilinear Perspective Calculations

794 byte By saraeverett at 2007-11-20 5:21:12
Hi, I'm having some problems with Curvilinear Perspective, mapping this to 2D.Basically, what I need to do is show a building, with multiple floors. From the center viewpoint of the screen, the building will then arch out towards the ends, mapping the straight lines to arches with curvilinear p...

Drawing lines & mouse output

580 byte By braveheartkenya at 2007-11-20 5:21:40
Hi all,I would like to draw a line on a GL screen by clicking on the starting point and the ending point within a specified region.Being rather new to openGL, i'm a bit confused as to what functions (or events) to use and what the general algorithm of doing this would be. This the general ques...

Cyclic splines

836 byte By Orf at 2007-11-20 5:22:54
Hi Gurus.I'm writing a class to implement parametric splines.I need these splines to be cyclic, i.e. the first knot corresponds to the last, and the first and second derivative must be the same in both knots.Building a natural spline is a matter of solving a system of linear equations, a partic...

Rotating Picture

706 byte By Lu5ck at 2007-11-20 5:23:54
Hi guys,I don't know if this is the correct forum to post...I only know is C++ but don't know if it include MFC anot. (Am a newbie)My question... ( http://www.dev-archive.com/forum/showthread.php?t=414606)The above link is my question, well, it is no longer important any more unless some ki...

[RESOLVED] DirectShow Video Capture Problem

698 byte By mjnicky at 2007-11-20 5:26:36
I am new to DirectShow and I am developing a program which capture images from the usb pc camera.As the Document of DirectShow did, I create my application and call initCaptureGraphBuilder(&pGraph,&pBuild) to initialize the point of IGraphBuilder and ICaptureGraphBuilder2and then I call pGraph->A...

Filling a set of points with texRect

1365 byte By Xiphias at 2007-11-20 5:27:31
i want to fetch the pixels surrounding my point + those which are 2 in each direction.unfortunately half of them are identical :P (they shouldn't be)(as in)|--+--|-+++-|+++++|-+++-|--+--<code>( in float2 vTextureUV out half4 vOutputColor: COLOR, const uniform samplerRECT oImage){//...

From Maya to OpenGL?

432 byte By Clairvoire at 2007-11-20 5:30:14
I'm wondering if there's any way to export a model that was created in Maya, into a format that could be easily read to OpenGL. Maya has one of the best User Interfaces of any 3D modeling program I've seen, and I'd hate-hate-hate to step down to Blender's Battlecruiser-esqu...

DirectX 9 Basic Texturing Problem...

99 byte By Alluminitti at 2007-11-20 5:31:06
Hello,<br/>My problem is explained in the following pastebin : http://rafb.net/p/Y4RTMt74.html

[ask] Execute external program

802 byte By lacos at 2007-11-20 5:32:26
hello,currently i'm working on a game project that use directx and win32 api.here is the situation:i need to call an external program from my game ( a touchscreen calibrate utility ). i called the touchscreen calibrate program using win32 CreateProcess().if i'm running my game in a windowe...

opengl problems with texturing

1756 byte By meckle at 2007-11-20 5:35:22
I am not having problems with texturing objects but having non textured objects display. They will display, but it will always be black no matter what color i set the non textured object to.also i am baseing this off of the tutorial on http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=19and i a...

noobie needing simple dx help

515 byte By russian_bear at 2007-11-20 5:37:45
helloim new here, first post this one so dunno how much help i will get, but here we go :P. http://rafb.net/p/86SZTB48.htmlthis is my first day of directx programming, so im BRAND new ;p, im really excited to try learn it, as far as i can tell, this program looks right but it wont display lines, im j...

How To Load PNG with Transparency

328 byte By dingo_kasper at 2007-11-20 5:38:53
hi to all i want to load PNG image on to "Button" in vc++. but i want the border of the PNG to Blended with the Color of Dialog.. . i got some info the if PNG is transperent then it is done automatically ... and i have no idea .. how to acheive it. can it be possible with GDI+.. with regardsDingo...

Getting screen serial number using c++

314 byte By shah_ketan at 2007-11-20 5:40:43
Hi,I want to get serial number of monitor using C++. the input will be screen window. Fo example in multi screen monitors if window( for example dialog) is open in screen1 then it should give serial id of screen1. If we move that dialog to screen2 then it should give serial id of screen2Thanks...

edge detection & segmentation

438 byte By dave2k at 2007-11-20 5:41:04
i will be provided with an image from a scanner, i need to find out how to find the 4 edges of the image, and seperate it from the background.I am currently having a look and some of the edge detection algorithms, but am wondering how i can work out if it's an edge in the image (not wanted) or...

Transparency troubles when rendering

2237 byte By d4md at 2007-11-20 5:42:01
Hate to ask for help since all of this I have been doing great on my own, but I hit a wall and if I dont write this and go to bed soon, my wife will kick my butt.Used Anim8or to make a model of the Sun. Added a transparent sphere with speculars to act as a light filter as I have a light souce emina...

Can I get some help a pngwriter error?

2696 byte By _Cobra at 2007-11-20 5:43:31
I downloaded pngwriter and set it up for Visual C++ 2005 Express Edition according to this page ( http://pngwriter.sourceforge.net/howto_msvc.php). I'm trying to simply create a png when I click a button but I obviously did something wrong. I'm getting errors that I've never seen bef...

OpenGl

229 byte By cameron_tibbits at 2007-11-20 5:45:47
Ok i feel stupid for asking this but im new to this... i can not get the opengl library to link in bloodshed dev c++... im not really even sure i have the right thing downloaded for open gl i think its called GLsdk... Help please

Managed C++ and OpenGL

380 byte By deathscythe at 2007-11-20 5:46:36
Hi,I currently have a managed c++ application in which I would like to add a picture pane, that is make a sub class of System::Windows::Forms::PictureBox which contains an OpenGL rendering context.I would also like my picturebox sub class also to be able to handle all the mouse and onload events.Any...

Light Class

340 byte By Roadkill247 at 2007-11-20 5:47:59
I am trying to create a light class to make my code a bit better, but I have no idea where to start.I have a Directional, a Point and a Spot light and I need TypeDiffusePositionDirectionAttenuation1Range ThetaPhiFalloffAttenuation0any ideas on how I could do this ?...

OpenGL : passing read() to draw()

805 byte By Azrul at 2007-11-20 5:48:34
1. I cant get the value x,y,z to be pass into draw() to draw a triangle. I am new to OO.2. Does the glVertex(v[i]) is correct?Part of the code:float read () { std::vector<Triangle> v; ifstream in ("sample.txt", ios::in); if (!in) { cout << "could not open" <<...

FLTK: How I get the directory name?

222 byte By Entalion at 2007-11-20 5:49:36
Hi,<br/>using FLTK how I get the directory name taken with Fl_File_Chooser.<br/>The result, maybe, is a const char*...How i convert in a char?..<br/>Please help me!<br/>Thanx in advance..<br/>Giuse

Send output to primary display to AGP Tv Out

411 byte By shashishukla at 2007-11-20 5:51:01
Send output to primary display to AGP Tv Out hii any 1 can help me i developed a software for cable tv operator i need helpi want to send output what ever comes through my software out put to TV out in AGP card , iwant keep desktop free to do my ither work simaltancely in my software im using Window...

need a help for openGL (bit urgent)

320 byte By pvr_satya at 2007-11-20 5:52:02
Hi ,I need a small help .what are the job oppurtunities in openGLi have 2+ exp in c++ in applicationside &working in MNC CMM5companynow i got job in openGL in good companyis it recomended to change I don't have any idea about openGL pls help me...

Japanese font !

459 byte By tam.hh at 2007-11-20 5:54:47
Please help me !My computer has English Window XP. Ver 2.0Use tool : VC6.0 Service Pack 6.I create a dialog, this dialog has a text area.When i put "かたかな" to text area and enter, this string is change to garbage string : ",@,..."When i copy this garbage string to excel or...

Bitmap Class

331 byte By priyank9 at 2007-11-20 5:57:31
Hi all.I am making one win32 application in VC++.NET. I want to use GDI+ Bitmap class in that, but it gives me lots of errors. I have included gdiplus.h file and import gdiplus.lib in the project. I dont know what is wrong with it. Can I know what I need to do to use GDI+ Bitmap class?Thanks in adva...

Direct3D graphics inside or outside ActiveX

2425 byte By wlof at 2007-11-20 6:00:00
Hello all,I've got a weird problem. It's going to be fairly complicated to describe, and English is not my first language, so please bear with me, and don't hesitate to ask me for more details if you think you can help me!I have an ActiveX control which generates a 3D view of a scene....

How do I texture Triangle?

4958 byte By Azrul at 2007-11-20 6:01:56
Can someone give me an idea how to texture a triangle. All of the tutorial I found in the internet concentrated on tecture a cube. This is my code.#include <windows.h> #include <gl\gl.h>#include <gl\glut.h>#include <stdlib.h>#include <math.h>#include <vector>#incl...

how to find the diameter of circle

380 byte By Wolvorine at 2007-11-20 6:05:48
hi,i know there are three ways to find the diameter of the circle. one is by circumference second is by radius and third is by area of a circle.now suppose if i know the circle's bottom,left , top and right values in a RECT kind of structure. Then how can i extract the diameter of that particul...

DirectX: Rendering Transparency

15000 byte By HYT at 2007-11-20 6:08:48
Hi, I'm having trouble getting DirectX to render transparency with my program. I've basically taken the Textures tutorial from DirectX and messed around with it a bit. I set it up so that the camera is staring at the center of a board made up of squares of the a background tile drawn repea...

how do I draw ahouse ?

289 byte By nawal at 2007-11-20 6:09:02
I'm a biggener in open GL<br/>this is my first lecture<br/>and I want your help .<br/>plz can any one help me ?<br/>how do I draw ahouse using open GL<br/>and using GL_lines<br/>and using GL_LINE_LOOP. <br/> using GL_POLIGON.<br/>?<br/>thank you : )

gluBuild2DMipmaps

934 byte By Azrul at 2007-11-20 6:09:31
GLint gluBuild2DMipmaps( GLenum target, GLint component, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data) target Specifies the target texture. Must be GL_TEXTURE_2D. component Specifies the number of color components in the texture. Must be 1, 2, 3, o...