[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] openGL og Volume Rendering



[klip]

Hvis vi ser bort fra eventuelle transformationer af
billedet, så kan det vel klares med (uafprøvet Ada-kode):

  type Model is array (X_Range, Y_Range, Z_Range) of Scalar;
  type Image is array (X_Range, Y_Range) of Scalar;

  procedure Render (Data : in     Model;
                    As   :    out Image) is
  begin
     for X in Model'Range (1) loop
        for Y in Model'Range (2) loop
           Image (X, Y) := 1.0;
           for Z in Model'Range (3) loop
              Image (X, Y) := Image (X, Y) * Model (X, Y, Z);
           end loop;
        end loop;
     end loop;
  end Render;

Så kan det godt nok tænkes at du vil tage den
Model'Length (3). rod af værdierne i Image, før du viser
dem. Ellers får du en opløsningsafhængig effekt i hvordan
gennemsigtigheden varierer.


Problemet er, at jeg gerne vil kunne lave "skrå" visninger (forestil dig, at man ser ind på hjørnet af en terning, som er semitransparent). Derfor skal det helst være openGL der håndterer det.
Nå, men jeg tror, jeg laver den "simple" løsning, hvor jeg lægger en masse slices med textures på op ad hinanden, laver dem transperante, og så forsøger at undgå at vinklen til overfladen bliver for lille.


Tak for hjælpen alle

Mange hilsner


Lars


--
------------------------------------------------------------------------

Lars Riisgaard Ribe

MSc, PhD-stud.

Telephone



+45 89 49 52 68

Fax 	+45 89 49 60 04
Email 	sslug@sslug <mailto:sslug@sslug>
Address 	MR-Center - Aarhus University Hospital
Skejby Sygehus
Brendstrupgaardsvej
Dk-8200 Aarhus N
Denmark

------------------------------------------------------------------------

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *