|
|
Hi,
This one has me beat! We generate POV-Ray images from an engineering
modeling application. We want to overlay two versions of the model,
one with the "actual" positions and one with the "effective" positions,
where the effective version is made more transparent. When the two
objects are overlayed with different transmit levels we are seeing
unexpected things like bounding boxes of shapes and other artifacts.
Increasing max_trace_level didn't help. I waited to try POV v.3.6 but
the problem is still there.
Here is a basic example (rough car model) with the two copies at
exactly the same locations (when they are offset we still see the
problems). Any ideas would be greatly appreciated.
Stuart
// Headers
#include "colors.inc"
global_settings {
assumed_gamma 2.2
ambient_light rgb<1,1,1>
}
background { color White }
light_source { <309082.79,241023.2,-432061.79> color White }
camera {
location <2480.9669,2386.3683,-2880.9669>
sky <0,0,-1>
look_at <834.34051,1030.8939,-1528.0086>
}
// Axes ////////////////////////////////////////
cylinder { // x-axis
<1657.6537,0,-507.1791>, <1932.0914,0,-507.1791>, 10.977509
pigment { color Black }
no_shadow
}
cone {
<1932.0914,0,-507.1791>, 27.443772, <1986.9789,0,-507.1791>, 0
pigment { color Green }
no_shadow
}
cylinder { // y-axis
<1657.6537,0,-507.1791>, <1657.6537,274.43772,-507.1791>, 10.977509
pigment { color Black }
no_shadow
}
cone {
<1657.6537,274.43772,-507.1791>, 27.443772, <1657.6537,329.32527,-507.1791>, 0
pigment { color Red }
no_shadow
}
cylinder { // z-axis
<1657.6537,0,-507.1791>, <1657.6537,0,-781.61682>, 10.977509
pigment { color Black }
no_shadow
}
cone {
<1657.6537,0,-781.61682>, 27.443772, <1657.6537,0,-836.50437>, 0
pigment { color Blue }
no_shadow
}
// Declarations ////////////////////////////////////////
#declare Point_finish = finish { ambient .4 specular .5 roughness .1 metallic .7 };
#declare Shape_finish = finish { ambient .4 specular .7 roughness .1 metallic .5 };
#declare Link_finish = finish { ambient .4 specular .5 roughness .1 metallic .7 };
// Fixed Masses ////////////////////////////////////////
// FixedMass: TaurusFF.Ground //////////
// Point: TaurusFF.Ground.CG
sphere {
<0,0,0>, 0
pigment { color SpringGreen }
finish { Point_finish }
no_shadow
}
// Plane: TaurusFF.Ground.Surface
plane {
z, 0
pigment { color Gray90 }
finish { Shape_finish }
}
// FixedMass: TaurusFF.Barrier //////////
// Point: TaurusFF.Barrier.CG
sphere {
<200,0,-600>, 29.5804
pigment { color SpringGreen }
finish { Point_finish }
no_shadow
}
// Box: TaurusFF.Barrier.Box
box {
<-200,-1000,600>, <200,1000,-600>
translate <200,0,-600>
pigment { color Pink transmit .8 }
finish { Shape_finish }
}
// Masses ////////////////////////////////////////
// Mass: TaurusFF.Taurus.OccComp //////////
// Point: TaurusFF.Taurus.OccComp.CG
sphere {
<-2000,0,-600>, 34.57117
pigment { color SteelBlue }
finish { Point_finish }
no_shadow
}
// Box: TaurusFF.Taurus.OccComp.Compartment
box {
<-900,-800,400>, <900,800,-400>
translate <-2000,0,-500>
pigment { color SteelBlue transmit .4 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Trunk
box {
<-300,-800,300>, <300,800,-300>
translate <-3200,0,-400>
pigment { color SteelBlue transmit .4 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Crossmember
box {
<-60,-800,20>, <60,800,-20>
translate <-700,0,-85>
pigment { color Orange transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameLF
box {
<-460,-30,50>, <460,30,-50>
translate <-580,650,-140>
pigment { color Orange transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameRF
box {
<-460,-30,50>, <460,30,-50>
translate <-580,-650,-140>
pigment { color Orange transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderLF
box {
<-460,-30,150>, <460,30,-150>
translate <-580,650,-400>
pigment { color SpicyPink transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderRF
box {
<-460,-30,150>, <460,30,-150>
translate <-580,-650,-400>
pigment { color SpicyPink transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.LRWheel
cylinder {
<-2700,930,-280>, <-2700,1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.LRHub
sphere {
<-2700,1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.RRWheel
cylinder {
<-2700,-930,-280>, <-2700,-1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.RRHub
sphere {
<-2700,-1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.Engine //////////
// Point: TaurusFF.Taurus.Engine.CG
sphere {
<-800,0,-600>, 15.77519
pigment { color Black }
finish { Point_finish }
no_shadow
}
// Box: TaurusFF.Taurus.Engine.Case
box {
<-250,-500,250>, <250,500,-250>
translate <-800,0,-380>
pigment { color Black }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.Tran
box {
<-300,-500,100>, <300,500,-100>
translate <-800,0,-230>
pigment { color Black }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover1
box {
<-50,-400,60>, <50,400,-60>
translate <-680,0,-650>
pigment { color Silver }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover2
box {
<-50,-400,60>, <50,400,-60>
translate <-920,0,-650>
pigment { color Silver }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.Engine.Cyl
cylinder {
<-800,485,-380>, <-800,545,-380>, 180
pigment { color Silver }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.FrontWheels //////////
// Point: TaurusFF.Taurus.FrontWheels.CG
sphere {
<-1000,0,-600>, 10.70541
pigment { color SpringGreen }
finish { Point_finish }
no_shadow
}
// Cylinder: TaurusFF.Taurus.FrontWheels.LFWheel
cylinder {
<-700,930,-280>, <-700,1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.LFHub
sphere {
<-700,1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.FrontWheels.RFWheel
cylinder {
<-700,-930,-280>, <-700,-1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.RFHub
sphere {
<-700,-1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Links ////////////////////////////////////////
// Link: TaurusFF.Taurus.Occ-Bar //////////
// Cylinder: TaurusFF.Taurus.Occ-Bar
cylinder {
<-2000,0,-600>, <200,0,-600>, 14.7902
pigment { color VioletRed transmit .5 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.Radiator //////////
// Cylinder: TaurusFF.Taurus.Radiator
cylinder {
<-800,0,-600>, <200,0,-600>, 7.887595
pigment { color VioletRed transmit .5 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.FrontWheels-Bar //////////
// Cylinder: TaurusFF.Taurus.FrontWheels-Bar
cylinder {
<-1000,0,-600>, <200,0,-600>, 5.352707
pigment { color VioletRed transmit .5 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.Firewall //////////
// Cylinder: TaurusFF.Taurus.Firewall
cylinder {
<-2000,0,-600>, <-800,0,-600>, 7.887595
pigment { color VioletRed transmit .5 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.Occ-FrontWheels //////////
// Cylinder: TaurusFF.Taurus.Occ-FrontWheels
cylinder {
<-2000,0,-600>, <-1000,0,-600>, 5.352707
pigment { color VioletRed transmit .5 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.FrontWheels-Eng //////////
// Cylinder: TaurusFF.Taurus.FrontWheels-Eng
cylinder {
<-1000,0,-600>, <-800,0,-600>, 5.352707
pigment { color VioletRed transmit .5 }
finish { Link_finish }
no_shadow
}
// Masses: Effective ////////////////////////////////////////
// Mass: TaurusFF.Taurus.OccComp //////////
// Point: TaurusFF.Taurus.OccComp.CG
sphere {
<-2000,0,-600>, 34.57117
pigment { color SteelBlue transmit .5 }
finish { Point_finish }
no_shadow
}
// Box: TaurusFF.Taurus.OccComp.Compartment
box {
<-900,-800,400>, <900,800,-400>
translate <-2000,0,-500>
pigment { color SteelBlue transmit .7 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Trunk
box {
<-300,-800,300>, <300,800,-300>
translate <-3200,0,-400>
pigment { color SteelBlue transmit .7 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Crossmember
box {
<-60,-800,20>, <60,800,-20>
translate <-700,0,-85>
pigment { color Orange transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameLF
box {
<-460,-30,50>, <460,30,-50>
translate <-580,650,-140>
pigment { color Orange transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameRF
box {
<-460,-30,50>, <460,30,-50>
translate <-580,-650,-140>
pigment { color Orange transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderLF
box {
<-460,-30,150>, <460,30,-150>
translate <-580,650,-400>
pigment { color SpicyPink transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderRF
box {
<-460,-30,150>, <460,30,-150>
translate <-580,-650,-400>
pigment { color SpicyPink transmit .75 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.LRWheel
cylinder {
<-2700,930,-280>, <-2700,1070,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.LRHub
sphere {
<-2700,1000,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.RRWheel
cylinder {
<-2700,-930,-280>, <-2700,-1070,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.RRHub
sphere {
<-2700,-1000,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.Engine //////////
// Point: TaurusFF.Taurus.Engine.CG
sphere {
<-800,0,-600>, 15.77519
pigment { color Black transmit .5 }
finish { Point_finish }
no_shadow
}
// Box: TaurusFF.Taurus.Engine.Case
box {
<-250,-500,250>, <250,500,-250>
translate <-800,0,-380>
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.Tran
box {
<-300,-500,100>, <300,500,-100>
translate <-800,0,-230>
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover1
box {
<-50,-400,60>, <50,400,-60>
translate <-680,0,-650>
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover2
box {
<-50,-400,60>, <50,400,-60>
translate <-920,0,-650>
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.Engine.Cyl
cylinder {
<-800,485,-380>, <-800,545,-380>, 180
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.FrontWheels //////////
// Point: TaurusFF.Taurus.FrontWheels.CG
sphere {
<-1000,0,-600>, 10.70541
pigment { color SpringGreen transmit .5 }
finish { Point_finish }
no_shadow
}
// Cylinder: TaurusFF.Taurus.FrontWheels.LFWheel
cylinder {
<-700,930,-280>, <-700,1070,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.LFHub
sphere {
<-700,1000,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.FrontWheels.RFWheel
cylinder {
<-700,-930,-280>, <-700,-1070,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.RFHub
sphere {
<-700,-1000,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Links: Effective ////////////////////////////////////////
// Link: TaurusFF.Taurus.Occ-Bar //////////
// Cylinder: TaurusFF.Taurus.Occ-Bar
cylinder {
<-2000,0,-600>, <200,0,-600>, 14.7902
pigment { color VioletRed transmit .75 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.Radiator //////////
// Cylinder: TaurusFF.Taurus.Radiator
cylinder {
<-800,0,-600>, <200,0,-600>, 7.887595
pigment { color VioletRed transmit .75 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.FrontWheels-Bar //////////
// Cylinder: TaurusFF.Taurus.FrontWheels-Bar
cylinder {
<-1000,0,-600>, <200,0,-600>, 5.352707
pigment { color VioletRed transmit .75 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.Firewall //////////
// Cylinder: TaurusFF.Taurus.Firewall
cylinder {
<-2000,0,-600>, <-800,0,-600>, 7.887595
pigment { color VioletRed transmit .75 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.Occ-FrontWheels //////////
// Cylinder: TaurusFF.Taurus.Occ-FrontWheels
cylinder {
<-2000,0,-600>, <-1000,0,-600>, 5.352707
pigment { color VioletRed transmit .75 }
finish { Link_finish }
no_shadow
}
// Link: TaurusFF.Taurus.FrontWheels-Eng //////////
// Cylinder: TaurusFF.Taurus.FrontWheels-Eng
cylinder {
<-1000,0,-600>, <-800,0,-600>, 5.352707
pigment { color VioletRed transmit .75 }
finish { Link_finish }
no_shadow
}
Post a reply to this message
|
|