Re: object scale

New Message Reply Date view Thread view Subject view Author view

Annett Ruwoldt (ruwoldt++at++iff.fhg.de)
Sun, 20 Jul 1997 12:56:37 -0600


On Jul 18, 12:43pm, Pleijsant, Jan-Mark wrote:
> Subject: object scale
> Hi vgUsers,
>
> Is it possible to scale objects dynamically in only one direction? I
> think the VGOBJ_SCALE cannot be used, because it sets the overall scale.
> Can someone tell me how to do this?
>
> Thanks in advance, regards,
>
> Jan-Mark

I made use of Performer to scale objects. This are the steps:

  #include <pf.h> /* Common Performer definitions */

  pfNode *pnode;
  /* Object to be scaled: vgObject *pobj; */

  pnode = vgGetObjPfNode(pobj);
  if (!strcmp (pfGetTypeName(pnode), "pfDCS")) /* is vgObject dynamic? */
    pfDCSScaleXYZ((pfDCS*)pnode, x, y, z);
  ...

My question is, to make my program easier and nice, can I retrieve these x-, y-
and z-scale values?

Thanks in advance, regards,
Annett

-- 
----------------------------------------------------
Dipl.-Inf. Annett Ruwoldt       ruwoldt++at++iff.fhg.de
Fraunhofer IFF 
Steinfeldstr. 3                 fon: +49-39203/81591
D-39179 Barleben                fax: +49-39203/81619
Germany
--------<http://wwwue.ue.iff.fhg.de/~ruwoldt/-------
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:38 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.