Search found 12 matches

by YoJi
Thu Mar 16, 2006 7:13 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

Hello , i have always the texture data problem, and a problem with 3D animation :

I have a node and i want to (for exemple) rotate him to an angle of 30°, i can use a node->setRotate() but the node will be teleported.

In opengl we make a loop with a variable on the glRotatef() and after every ...
by YoJi
Tue Mar 14, 2006 11:31 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

I have the same error :




unsigned char* lock =(unsigned char*) TextureWebcam->lock();
if (lock)
{
int newv = getTextureSizeFromImageSize(VMAX);
int newh = getTextureSizeFromImageSize(HMAX);

float xscale = (float)VMAX / (float)newv;
float yscale = (float)HMAX / (float)newh;
int width ...
by YoJi
Tue Mar 14, 2006 11:21 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

this is that i do :


for (int y=0; y<HMAX; ++y)
{
for (int x=0; x<VMAX; ++x)
{
unsigned char tmp1[4];
tmp1[0] = Image1->Couleur(y,x,'b');
tmp1[1] = Image1->Couleur(y,x,'g');
tmp1[2] = Image1->Couleur(y,x,'r');
tmp1[3] = 0; //to 32bit... a extra bit for da alpha chanel
memcpy((void*)lock ...
by YoJi
Tue Mar 14, 2006 11:10 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

i don't understand why TextureWebcam->lock() return a void * because if i want to change imagedata is in 2D so a void ** no ?


Or maybe is the image in line ?
by YoJi
Tue Mar 14, 2006 10:49 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

thanks to your code !!! :)

but he don't like : lockedTextureBuffer[x + y*newv]

"pointer of type `void *' used in arithmetic "
by YoJi
Tue Mar 14, 2006 6:50 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897


Your code should look something like the makeColorKeyTexture code in CNullDriver.cpp. If you wanted to support scaling the texture, there is code for that in CImage.cpp.

Thanks to your answer but ,,, :( i don't understand how to change the pixel data of the texture ... I don't know any CImage ...
by YoJi
Tue Mar 14, 2006 11:40 am
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

ops i forgot to log in ^^ the previous post was mine
by YoJi
Tue Mar 14, 2006 7:09 am
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

I want thanks you for your help :)

Thank you very much
by YoJi
Mon Mar 13, 2006 10:33 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

I use Opencv to grab a frame ...
My scene is lagging when it's grab a frame :( that better but ... :'(

I can have 400 fps if i put a very little camera_fps but sometimes the scene is lagging
by YoJi
Mon Mar 13, 2006 8:59 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

Hi Vitek

how do you want to update the texture ? , i update with driver->addtexture();
by YoJi
Mon Mar 13, 2006 6:12 pm
Forum: Beginners Help
Topic: Eye toy project
Replies: 26
Views: 1897

Eye toy project

Hello
I'm making a eye toy project ( dragon who is "driver" with your arms ) but i have a FPS Problem , to can making operation with my webcam i making some frame ... I pick up the frame in the loop of the main ... a webcam have a max FPS of 30 but 30 FPS to run 3D animation is too slow ...
by YoJi
Sat Mar 11, 2006 7:54 am
Forum: Beginners Help
Topic: Creating Image with RGB data
Replies: 4
Views: 644

Sorry for my question that work ^^ , i display an other image in my image webcam that why i couldn't display it