|
![](/i/fill.gif) |
"Warp" <war### [at] tag povray org> wrote in message news:40ca147e@news.povray.org...
| Are you sure you are not putting two surfaces in exactly the same place?
|
| If two surfaces with different textures are exactly in the same place,
| POV-Ray has no way of determining which one of them the ray hits first.
| The one it picks as "first" will depend on accuracy of floating point,
| etc, and will be more or less random. (This is the so-called
| coincident surfaces problem.)
|
| Don't put two surfaces at exactly the same place. Separate them
| a very small distance.
|
| --
| #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
| [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
| -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Thanks. At later times during the simulation the shapes are generally not
in the exact same position but it is true that some surfaces were still partly
coincident. When I shift them a little things do improve a lot, but in the
example below I still get visible bounding boxes on the right rear wheel cylinder
and hub sphere. Is there any cure for this?
Stuart
// Headers
#include "colors.inc"
global_settings {
assumed_gamma 2.2
ambient_light rgb<1,1,1>
max_trace_level 100
}
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 {
<-1479.7119,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 <-1479.7119,0,-500>
pigment { color SteelBlue transmit .4 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Trunk
box {
<-300,-800,300>, <300,800,-300>
translate <-2679.7119,0,-400>
pigment { color SteelBlue transmit .4 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Crossmember
box {
<-60,-800,20>, <60,800,-20>
translate <-179.7119,0,-85>
pigment { color Orange transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameLF
box {
<-460,-30,50>, <460,30,-50>
translate <-59.711897,650,-140>
pigment { color Orange transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameRF
box {
<-460,-30,50>, <460,30,-50>
translate <-59.711897,-650,-140>
pigment { color Orange transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderLF
box {
<-460,-30,150>, <460,30,-150>
translate <-59.711897,650,-400>
pigment { color SpicyPink transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderRF
box {
<-460,-30,150>, <460,30,-150>
translate <-59.711897,-650,-400>
pigment { color SpicyPink transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.LRWheel
cylinder {
<-2179.7119,930,-280>, <-2179.7119,1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.LRHub
sphere {
<-2179.7119,1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.RRWheel
cylinder {
<-2179.7119,-930,-280>, <-2179.7119,-1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.RRHub
sphere {
<-2179.7119,-1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.Engine //////////
// Point: TaurusFF.Taurus.Engine.CG
sphere {
<-401.32518,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 <-401.32518,0,-380>
pigment { color Black }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.Tran
box {
<-300,-500,100>, <300,500,-100>
translate <-401.32518,0,-230>
pigment { color Black }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover1
box {
<-50,-400,60>, <50,400,-60>
translate <-281.32518,0,-650>
pigment { color Silver }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover2
box {
<-50,-400,60>, <50,400,-60>
translate <-521.32518,0,-650>
pigment { color Silver }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.Engine.Cyl
cylinder {
<-401.32518,485,-380>, <-401.32518,545,-380>, 180
pigment { color Silver }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.FrontWheels //////////
// Point: TaurusFF.Taurus.FrontWheels.CG
sphere {
<-551.17893,0,-600>, 10.70541
pigment { color SpringGreen }
finish { Point_finish }
no_shadow
}
// Cylinder: TaurusFF.Taurus.FrontWheels.LFWheel
cylinder {
<-251.17893,930,-280>, <-251.17893,1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.LFHub
sphere {
<-251.17893,1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.FrontWheels.RFWheel
cylinder {
<-251.17893,-930,-280>, <-251.17893,-1070,-280>, 280
pigment { color Black }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.RFHub
sphere {
<-251.17893,-1000,-280>, 120
pigment { color Silver }
finish { Shape_finish }
}
// Links ////////////////////////////////////////
// Link: TaurusFF.Taurus.Occ-Bar //////////
// Cylinder: TaurusFF.Taurus.Occ-Bar
cylinder {
<-1479.7119,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 {
<-401.32518,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 {
<-551.17893,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 {
<-1479.7119,0,-600>, <-401.32518,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 {
<-1479.7119,0,-600>, <-551.17893,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 {
<-551.17893,0,-600>, <-401.32518,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 {
<-1480.116,.1,-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 <-1480.116,.1,-500>
pigment { color SteelBlue transmit .7 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Trunk
box {
<-300,-800,300>, <300,800,-300>
translate <-2680.116,.1,-400>
pigment { color SteelBlue transmit .7 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.Crossmember
box {
<-60,-800,20>, <60,800,-20>
translate <-180.11598,.1,-85>
pigment { color Orange transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameLF
box {
<-460,-30,50>, <460,30,-50>
translate <-60.115982,650.1,-140>
pigment { color Orange transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FrameRF
box {
<-460,-30,50>, <460,30,-50>
translate <-60.115982,-650.1,-140>
pigment { color Orange transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderLF
box {
<-460,-30,150>, <460,30,-150>
translate <-60.115982,650.1,-400>
pigment { color SpicyPink transmit .75 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.OccComp.FenderRF
box {
<-460,-30,150>, <460,30,-150>
translate <-60.115982,-650.1,-400>
pigment { color SpicyPink transmit .75 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.LRWheel
cylinder {
<-2180.116,930.1,-280>, <-2180.116,1070.1,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.LRHub
sphere {
<-2180.116,1000.1,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.OccComp.RRWheel
cylinder {
<-2180.116,-930.1,-280>, <-2180.116,-1070.1,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.OccComp.RRHub
sphere {
<-2180.116,-1000.1,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.Engine //////////
// Point: TaurusFF.Taurus.Engine.CG
sphere {
<-403.14151,0.1,-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 <-403.14151,0.1,-380>
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.Tran
box {
<-300,-500,100>, <300,500,-100>
translate <-403.14151,0.1,-230>
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover1
box {
<-50,-400,60>, <50,400,-60>
translate <-283.14151,0.1,-650>
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Box: TaurusFF.Taurus.Engine.ValveCover2
box {
<-50,-400,60>, <50,400,-60>
translate <-523.14151,0.1,-650>
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.Engine.Cyl
cylinder {
<-403.14151,485.1,-380>, <-403.14151,545.1,-380>, 180
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Mass: TaurusFF.Taurus.FrontWheels //////////
// Point: TaurusFF.Taurus.FrontWheels.CG
sphere {
<-551.52008,0.1,-600>, 10.70541
pigment { color SpringGreen transmit .5 }
finish { Point_finish }
no_shadow
}
// Cylinder: TaurusFF.Taurus.FrontWheels.LFWheel
cylinder {
<-251.52008,930.1,-280>, <-251.52008,1070.1,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.LFHub
sphere {
<-251.52008,1000.1,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
// Cylinder: TaurusFF.Taurus.FrontWheels.RFWheel
cylinder {
<-251.52008,-930.1,-280>, <-251.52008,-1070.1,-280>, 280
pigment { color Black transmit .5 }
finish { Shape_finish }
}
// Sphere: TaurusFF.Taurus.FrontWheels.RFHub
sphere {
<-251.52008,-1000.1,-280>, 120
pigment { color Silver transmit .5 }
finish { Shape_finish }
}
Post a reply to this message
|
![](/i/fill.gif) |