Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1816 - in trunk: . Image Model/Textures


Chronological Thread 
  • From: kmorley@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1816 - in trunk: . Image Model/Textures
  • Date: Mon, 5 Nov 2007 10:51:26 -0700 (MST)

Author: kmorley
Date: Mon Nov  5 10:51:24 2007
New Revision: 1816

Modified:
   trunk/Image/EXRFile.cc
   trunk/Image/EXRFile.h
   trunk/Model/Textures/ImageTexture.cc
   trunk/manta-commands.txt
Log:
Fixed EXRFile header include

Modified: trunk/Image/EXRFile.cc
==============================================================================
--- trunk/Image/EXRFile.cc      (original)
+++ trunk/Image/EXRFile.cc      Mon Nov  5 10:51:24 2007
@@ -42,7 +42,6 @@
 #include <OpenEXR/ImfRgbaFile.h>
 #include <OpenEXR/ImfChannelList.h>
 #include <OpenEXR/ImfArray.h>
-#include <OpenEXR/ImfRGBA.h>
 #include <OpenEXR/ImfFrameBuffer.h>
 #include <OpenEXR/ImathBox.h>
 
@@ -51,7 +50,7 @@
 using namespace Manta;
 
 extern "C" 
-bool isEXRImage( std::string const &filename )
+bool isEXR( std::string const &filename )
 {
   std::ifstream file(filename.c_str(), std::ios_base::binary); 
 
@@ -175,8 +174,6 @@
       height );
   for ( int i = 0; i < width; ++i ) {
     for ( int j = 0; j < height; ++j ) {
-    
-      RGBA8Pixel pixel;
      
       float r = pixels[height-1-j][i].r;
       float g = pixels[height-1-j][i].g;
@@ -187,6 +184,7 @@
       //          << float( pixels[i][j].g ) << " " 
       //          << float( pixels[i][j].b ) << std::endl;
 
+      RGBA8Pixel pixel;
       convertToPixel( pixel, color );
       image->set( pixel, i, j, 0 ); 
     }

Modified: trunk/Image/EXRFile.h
==============================================================================
--- trunk/Image/EXRFile.h       (original)
+++ trunk/Image/EXRFile.h       Mon Nov  5 10:51:24 2007
@@ -36,12 +36,12 @@
 
   class Image;
 
-  extern "C" bool isEXRImage( std::string const &filename );
+  extern "C" bool isEXR( const std::string& filename );
 
-  extern "C" void writeEXR ( Image const *image, std::string const 
&filename, 
+  extern "C" void writeEXR ( const Image* image, const std::string 
&filename, 
       int which = 0 );
 
-  extern "C" Image *readEXR( const std::string &filename );
+  extern "C" Image* readEXR( const std::string &filename );
 
   // Returns true if this reader is supported
   extern "C" bool EXRSupported();

Modified: trunk/Model/Textures/ImageTexture.cc
==============================================================================
--- trunk/Model/Textures/ImageTexture.cc        (original)
+++ trunk/Model/Textures/ImageTexture.cc        Mon Nov  5 10:51:24 2007
@@ -73,7 +73,7 @@
     } else if (isRGBE) {
       image = readRGBE(file_name);
       if (stream) (*stream) << "Read by readRGBE\n";
-    } else if ( isEXRImage( file_name ) && EXRSupported() ) {
+    } else if ( isEXR( file_name ) && EXRSupported() ) {
       image = readEXR(file_name);
       if (stream) (*stream) << "Read by readEXR\n";
     } else if (ImageMagickSupported()) {

Modified: trunk/manta-commands.txt
==============================================================================
--- trunk/manta-commands.txt    (original)
+++ trunk/manta-commands.txt    Mon Nov  5 10:51:24 2007
@@ -13,6 +13,9 @@
 # Massive cross section NOTE RESOLUTION
 dplace -c 1-511 bin/manta -res 46080x14400 -bench 1 0 -np 508 -scene 
"lib/libscene_boeing777.so( -file /dev/shm/Boeing777.v3c1 -np 64 -cutting 
default )" -camera "pinhole( -eye 1408.56 -2172.05 110.736  -lookat 1350.55 
188.313 354.277  -up 0.0117111 -0.465077 0.885192  -fov 60 )" -shadows 
noshadows -imagedisplay "file( /tmp/test_img46080x14400 )
 
+#hdri test scene 
+./bin/manta -scene  
"lib/libscene_hdri(/Users/kmorley/Desktop/EXR_images/probe.exr)"
+
 # Boeing demo.
 dplace -c 1-121 bin/fox_manta -np 118 -scene "lib/libscene_boeing777.so( 
-file /dev/shm/Boeing777.v3c1 -np 64 )"
 




  • [Manta] r1816 - in trunk: . Image Model/Textures, kmorley, 11/05/2007

Archive powered by MHonArc 2.6.16.

Top of page