From: Tomlinson, Gordon (Gordon.Tomlinson++at++ca.com)
Date: 08/21/2002 19:40:27
HI
Do all the geosets actually have texture coordinate attribute arrays?
G.
-----Original Message-----
From: Kejian
To: info-performer++at++sgi.com
Sent: 8/21/2002 9:36 PM
Subject: [info-performer] how to do texture mapping on Scene graph
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
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Wed Aug 21 2002 - 19:40:33 PDT