|
|
Last time someone helped me with this programme, in which you can see the
reflection and the light through object MA and MB. Now in my model I don't
want the light goes through MB, and man can just see the reflection and
light in MA, how could I do with that? When I delete the object MB or set
the rgbt with <*,*,*,0>, there's even no light going through MA. I don't
know what's wrong with that, could anyone here help me?
/////////////////////////////global_settings////////////////////////////////////
global_settings {
//assumed_gamma 1.9
max_trace_level 10
photons {
adc_bailout 0.01
spacing 0.1
gather 20, 100
media 1, 1
jitter 0.4
max_trace_level 5
autostop 0.5
radius 0.0
expand_thresholds 0.2, 35.0
}
}
/////////////////////////////camera////////////////////////////////////////////
camera {
location <0,0.5,-66>
angle 120
up 1*y
right 1.333*x
look_at <0,0.5,-65>
translate <-27.5,0,0>
}
background { color rgb <0, 0, 0> }
/////////////////////////////scattering///////////////////////////////////////
#declare Scattering =
material
{
texture
{
pigment
{
color rgbt <0.531233, 0.531233, 0.531233, 1.0>
}
}
interior
{
media
{
variance 1.0/128.205128
scattering
{
1 , rgb <0.03, 0.03, 0.03>
extinction 0.25
}
}
}
}
#declare Scattering_1 = //Material mit Brechungsindex 1.55
material
{
texture
{
pigment
{
color rgbt <0.0, 0.0, 0.0, 1.0>
}
finish {
reflection {0.1,0.9 fresnel}
}
}
interior
{
ior 1.55
media
{
variance 1.0/128
scattering
{
1 , rgb <0.5, 0.5, 0.5>
extinction 0.5
}
}
}
}
#declare Scattering_2 = //Material mit Brechungsindex 1.438
material
{
texture
{
pigment
{
color rgbt <0.0, 0.0, 0.0, 1.0>
}
finish {
reflection {0.1,0.9 fresnel}
}
}
interior
{
ior 1.438
media
{
variance 1.0/128
scattering
{
1 , rgb <0.5, 0.5, 0.5>
extinction 0.5
}
}
}
}
///////////////////////////////lights///////////////////////////////////////
/*light_source {
<0.0, 0.0, 0.0>
color rgb <1.000, 1.000, 1.000>
media_interaction off
photons {
reflection off
refraction off
}
translate <0, 5, -60>
}*/
light_source {<0, 0.5, 80>
color rgbt <10,0,0>
spotlight //spotlight
falloff 0.5
radius 0.2
tightness 0.000
point_at <0,0.5,65>
photons {refraction on reflection on}
media_attenuation on
translate <-27.5,-0.25,0>
}
box{
<-5,-5,-80>, < 5, 5, 80>
material {
Scattering
}
hollow
translate -27.5*x
photons {
target 1
reflection on
refraction on
collect on
}
}
////////////////////////////////plane/////////////////////////////////////////
#declare Checkered_1 =
material
{
texture
{
pigment
{
checker
color rgb <0.882353, 0.882353, 0.882353>
color rgb <0.952941, 0.952941, 0.952941>
}
scale 0.2
}
}
plane {
z,-79
material {
Checkered_1
}
photons {
target 1
collect off
}
}
//////////////////////////////Objects/////////////////////////////////////////
#declare Blatt = merge {box{
<-37.5,1,65>,<37.5,-1,-65>
pigment {colour <0.3,0.3,0.3>}
photons {
target 1
reflection on
}
}
box{
<-37.5,1,10>,<37.5,-1,-10>
rotate 90*x
translate 11*y
pigment {colour <0.3,0.3,0.3>}
photons {
target 1
reflection on
}
}
}
#declare Nuten1 = box{
<-0.51,0.51,66>,<0.51,-0.51,-66>
translate <-27.5,0.5,0.0>
pigment {colour <0.3,0.3,0.3>}
photons {
target 1
reflection on
}
}
////////////////////////////////////////////////////////////////////////////////
object {
difference {
object{Blatt}
object {Nuten1}
}
}
#declare MA = merge {object {cylinder {-65*z,65*z,0.4}
}
object {box {<-0.4,-0.25,-65>,<0.4,0.25,65>}
translate 0.25*y}
}
#declare MB = difference {box {<-0.5,-0.5,-65>,<0.5,0.5,65>}
object {MA scale 0.999}}
object { MA
translate <-27.5,0.5,0>
material {
Scattering_1
}
hollow
photons {
target 1
reflection on
refraction on
collect on
}
}
object { MB
translate <-27.5,0.5,0>
material {
Scattering_2
}
hollow
photons {
target 1
reflection on
refraction on
collect on
}
}
Post a reply to this message
|
|