To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 2876
2875  |  2877
Subject: 
Making a plane transparent?????
Newsgroups: 
lugnet.cad.ray
Date: 
Sun, 10 Feb 2008 04:19:30 GMT
Viewed: 
8383 times
  
I'm trying to make a scene in POV-Ray with the underwater divers showing through the water. Camera is positioned above the camera. I'm trying to figure out how to make the water transparent. Here's the coding for the floor so far. (Go easy on me with the techno-jargon, I'm very confused with the syntax right now. :-)   )
// Persistence of Vision Ray Tracer Scene Description File
// File: floor_water.inc
// Created by Todd Dillard (e-Mail: dillardtrd@hcsmail.com)
// This floor code creates a sea like floor
// How to use:
// Option 1 - Define a varibales called "Y_Plane_01" and "Y_Plane_02" to determine the location of the floor.
//      Ex.  #declare Y_Plane_01 = 20;
//
// Option 2 - Replace "Y_Plane_01" and "Y_Plane_02" with a numeric value for the height of the floor.
//**********************************************************
// Water Floor:

#include "functions.inc"

#declare RMF=function{ f_ridged_mf(x, y, z, 0.07, 2.2,  7, 0.6, 0.9, 1)}

#declare M_Watx4 =
material {
  texture {
    pigment {
      color rgbt <0.1, 0.3, 0.5, 0.5>
    }
    finish {
      diffuse 0.6
      ambient 0.1

      reflection {
        0.4, 0.0
        fresnel off
      }

      conserve_energy

      specular 0.0
      roughness 0.05
    }
    normal{
      function { RMF(x, y, z) } 0.8
      scale 40.3
    }
  }
  interior {
    ior 0.3

  }
}
//-376=Y_Plane_01
plane {
  y, -376
  material {
    M_Watx4
  }
  hollow on
}
//-356=Y_Plane_02
plane {
  y, -356

  texture {
    pigment { color rgb 0 }
    finish { ambient 0.0 diffuse 0.0 }
  }
  hollow on
}



Message has 1 Reply:
  Re: Making a plane transparent?????
 
(...) I have some water scenes here - (URL) POV code is also there. Maybe it can give you some ideas. NOTE: These scenes are old, and some POV commands may have to be changed, I haven't tried them for a long time. (16 years ago, 10-Feb-08, to lugnet.cad.ray)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR