Hi there! I'm currently working on a school project using a Kinect device. Me and my friend decided that we wanted to create the same 3D effect as [url=http://www.youtube.com/watch?v=Jd3-eiid-Uw]this[/url] guy (Using our Kinect instead of using a Wii). We've made everything work perfectly, and we actually get a really cool 3D effect when walking around in the room. However, for that final awesome touch, we would like to draw sticks that are closer to the viewer than the clipping plane. This way it would feel like they actually come out of the screen. The problem is that all sources I …

Member Avatar
+0 forum 0

Hi all! I'm playing around a bit with my old Visual Basic 6.0. I'm working with images, and this rather strange error came up: First I isolate a small piece of a larger picture to a smaller picturebox using PaintPicture: [ICODE]picBoxSprite.PaintPicture picBoxResource.Picture, 0, 0, 64, 64, (X * 64), (Y * 64), 64, 64[/ICODE] This works perfectly fine, and the smaller picture of 64x64 pixels is displayed like a charm. Next, I want to copy this new picture from my picBoxSprite object (PictureBox) to one of my stretchable Image-objects. So I write the following line: [ICODE]imgDirt.Picture = picBoxSprite.Image[/ICODE] This is …

Member Avatar
Member Avatar
+0 forum 3

Okay, so what I'm trying to do is to write a program that reads several TGA images and bunch them together into one bin-file for later use. I got this code from [URL="http://nehe.gamedev.net"]NeHe OpenGL[/URL], Tutorial 24, and it is what I use to load my images: [CODE=C++] bool loadTGA(char *path, TextureImage *texture) { GLubyte TGAheader[12]={0,0,2,0,0,0,0,0,0,0,0,0}; GLubyte TGAcompare[12]; GLubyte header[6]; GLuint bytesPerPixel; GLuint imageSize; GLuint temp; GLuint type=GL_RGBA; cout << "Attempting to open '" << path << "'..\n"; FILE file = fopen(path, "rb"); if( file==NULL || fread(TGAcompare,1,sizeof(TGAcompare),file)!=sizeof(TGAcompare) || memcmp(TGAheader,TGAcompare,sizeof(TGAheader))!=0 || fread(header,1,sizeof(header),file)!=sizeof(header)) { if (file == NULL){ cout << "file == NULL!\n"; …

Member Avatar
Member Avatar
+0 forum 8

Okay, this might become a monstous post, and I apologize for that. I recently switched from programming Java to C++ like a week ago, and can't seem to get all the pointers right it seems. Maybe all code provided in this post might seem a little overkill for the size of my problem, but I'm not sure if this problem really is as small as it seems, or if there are other steps along the process that cause this to happen. Maybe you would like to start looking at my outputs first. The project I'm working on is going to …

Member Avatar
Member Avatar
+0 forum 5

So, a while ago I wrote a SerializableImage class in order to easily bundle several images together into a single file. The class worked fine, both serializing, file I/O and drawing. In another project I'm working on I successfully used a copy of this SerializableImage class, until recently. I had decided that I wanted my project in a "real" package, rather than the default_package (due to some jar-ing problems). Now, all of a sudden, my SerializableImage class starts generating ClassNotFound exceptions when I try to cast the objects from my image file to SerializableImage. Nothing in the class has changed …

Member Avatar
Member Avatar
+0 forum 3

The End.