From: Stace Peterson (stacep++at++sgi.com)
Date: 12/14/2005 14:48:50
Rajesh,
The sphere created will always have a radius of 1. To render a sphere
with a different radius, you'll need to transform the sphere. If the
sphere is being used in a scene graph, place an SCS (or DCS) node with
an appropriate scale above the geode holding the sphere geoSet. If you
are rendering the sphere directly from the geoSet, you can manipulate
the current modelview matrix with pfScale(), pfMultMatrix(),
pfLoadMatrix(), etc. calls.
Hope this helps,
Stace
Rajesh R wrote:
>
> Dear Performers
>
> Is there any Function other than pfdNewSphere(ntris,arena); for Rendering
> sphere. I want to render sphere by specifying its radius.
>
> With regards
> Rajesh.R
> Virtual Reality
> Institute for Robotics and Virtual Reality
> c/o Centre for AI and Robotics
> Defence Research and Development Organization (DRDO)
> Ministry of Defence
> Bangalore - 1
>
> Scientists are people of very dissimilar temperaments
> doing different things in very different ways. Among
> scientists are collectors, classifiers and compulsive
> tidiers-up; many are detectives by temperament and many
> are explorers; some are artists and others artisans.
> There are poet-scientists and philosopher-scientists and
> even a few mystics."
>
> -----------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------
-- ------------------------------------------------------------------ Stace Peterson stacep++at++sgi.com Silicon Graphics, Inc. (650) 933-2323
This archive was generated by hypermail 2b29 : Wed Dec 14 2005 - 14:48:54 PST