From: dre (dre++at++phoebe.cps.unizar.es)
Date: 04/18/2001 01:55:23
The only diference between the 2 images is the next code
The inittexture is the function as in projective.C (performer samples)
but the intensity is always 1
Shared->Foco1 = new pfLightSource;
Shared->Foco1->setPos(0.0f, 0.0f, 0.0f, 0);
Shared->Foco1->setColor(PFLT_DIFFUSE,0.0f,0.0f,0.0f);
Shared->Foco1->setColor(PFLT_AMBIENT,0.2f,0.2f,0.3f);
Shared->Foco1->setColor(PFLT_SPECULAR,0.0f,0.0f,0.0f);
Shared->Foco1->setMode(PFLS_PROJTEX_ENABLE, 1);
Shared->Foco1->setSpotDir(1.0, 0.0, 0.0);
Shared->frust = new pfFrustum();
Shared->frust->makeSimple(FOV);
Shared->Foco1->setAttr(PFLS_PROJ_FRUST, Shared->frust);
Shared->Foco1->setAttr(PFLS_PROJ_TEX, initTexture());
pfDCS *projDCS = new pfDCS();
projDCS->addChild(Shared->Foco1);
projDCS->setTrans(PATH_X, PATH_Y, PATH_Z);
scene->addChild(projDCS);
Why this strange textures in the road? they have the same texture load,
where I have made a mistake? orwhat I'm missing?
Sorry about the attach but it was the only way to show what I'm saying
This archive was generated by hypermail 2b29 : Wed Apr 18 2001 - 01:59:03 PDT