Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!convex!central!geraldo.Central.Sun.COM!west!newstop!exodus!mugwort.Eng.Sun.COM!blatt From: blatt@mugwort.Eng.Sun.COM (Alan Greenblatt) Newsgroups: comp.graphics Subject: Re: SunPHIGS's pcellarray Summary: The image gdp should server your purpose Message-ID: <14151@exodus.Eng.Sun.COM> Date: 29 May 91 18:17:22 GMT References: <1991May20.203703.24007@philabs.philips.com> Sender: news@exodus.Eng.Sun.COM Distribution: usa Organization: Sun Microsystems, Mt. View, Ca. Lines: 37 In article <1991May20.203703.24007@philabs.philips.com> kkt@philabs.philips.com (Kim-Kiat Tan) writes: > I am trying to display a 2d image using cellarray, however, what I get > is the outline drawn around my 2d array (i.e. you see a rectangle), > and according to sun's documentation, it stated that SunPHIGS > supports the minimal allowed simulation for the CELL ARRAY primitive > by drawing the transformmed boundaries of the cell array, does it > mean that there is no way to display image with cell array ? Correct. > I tried to use the GDP (procedure pgdp3) to display 3d volume, but > there is no input parameters for z-dim, so how on earth the procedure > is going to know the dimension in z ? > Hope someone on the net will have the answer for me. > Thanks. Are you trying to display a 2D image or a 3D volume? If you are trying to display a 3D volume, you'll have to break it up into surfaces that SunPHIGS will recognize. However, if you are indeed trying to render a 2D image, use GDP -14, the image gdp. The reason it doesn't have any input parameters for the z dimension is because it is an image, not a volume. The GDP does however take as input a reference point (for the 3D GDP version this is a 3D point) which locates the image in model coordinates. The image will be drawn so that its lower left corner is at this point. The image is drawn as a raster array: each cell of the image is drawn as a pixel on the screen, and so the image can not be rotated, scaled or skewed in way. If you need a to rotate or scale your image, using polylines or a quad mesh may work better. - Alan -- ----- Alan Greenblatt "I'm not arguing that with you. Anyware Fast, Inc. Did I say that? If I said that, alan.greenblatt@Eng.Sun.com I'd be lying." - Joe vs. the Volcano