Re: How to change parameters of an object?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Tue, 28 Sep 1999 13:52:18 -0700


If you do this you'll have to use uniform scaling of build a pfmatrix.
Non uniform scaling isn't recommended for performance reasons on some
platforms. The matrix scale approach will also have adverse effects on
the length of some surface normals, forcing you to normalize.

Cheers,ANgus.

Allan Schaffer wrote:
>
> Another approach would be to simply make the node containing this box
> a child of a pfDCS node, and then scale the DCS.
>
> If you have many boxes of different sizes, make a single 'unit box'
> node the instanced child of many parent pfDCS nodes, and apply
> different scaling operations (as appropriate) to each pfDCS.
>
> Allan
>
> On Sep 28, 12:36pm, Angus Dorbie wrote:
> > You need to find and modify the geosets. Most information as it pertains
> > to the original file is lost.
> >
> > You could modify the file and reload but I suspect that doesn't meet
> > your needs.
> >
> > Inventor is not the native format of Performer. It has a native INTERNAL
> > format which you'll have to become familiar with if you want to mogify
> > geometry in this way.
> >
> > Cheers,ANgus.
> >
> > Fangtu Qiu wrote:
> > >
> > > I have a database file like:
> > >
> > > #Inventor V2.1 ascii
> > > Separator {
> > > Cube {
> > > width 100.0
> > > height 100.0
> > > depth 10.0
> > > }
> > > }
> > >
> > > After I load it by pfdLoadFile, how can I change the width,
> > > height or depth of the cube?
> > >
> > > Any hint and reply will be appreciated.
> > >
> > > Fangtu
>
> --
> Allan Schaffer allan++at++sgi.com
> Silicon Graphics http://reality.sgi.com/allan
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"One of the best-known folk theorems of software engineering is that
60% to 75% of conventional software projects are either never
completed or rejected by their intended users. If that range is
anywhere near true (and I've never met a manager of any experience
who disputes it) then more projects than not are being aimed at goals
which are either (a) not realistically attainable, or (b) just plain
wrong."
                 Eric S. Raymond - The Cathedral and The Bazaar

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Sep 28 1999 - 13:52:25 PDT

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