From: Kejian (kjin++at++ucla.edu)
Date: 08/21/2002 18:36:11
Hi, performer,
I have problems in mapping a texture on the surface of an object.
I am doing the following, but it does not work.
For example, I have a node named cup
Step1: pfNode* node = somedcs->find("cup", pfNode::getClassType());
Step2: then, I create geode node with all the texture and geoset.
geostate
some thing like that, gstate is the texture state, i have set it
according to texture.C in example.
gset->setGState(gstate);
pfGeode *geode1 = new pfGeode;
geode1->addGSet(gset);
step3.
I add geode1 as a child of the "cup" node
node->addChild(geode1)
I don't know why the texture is not mapped on the surface of that cup.
Could anyone help? Thank you very much in advance.
ken
This archive was generated by hypermail 2b29 : Wed Aug 21 2002 - 18:36:25 PDT