|
![](/i/fill.gif) |
Gyscos nous apporta ses lumieres en ce 12/04/2006 04:38:
> Hello again!
> Now my light is REALLY strange...
>
> I have a sort of yellow thing that is stuck to the wall, butthe shadow is as
> if my thing was far from the wall...
> Plus, there is a brass ball that have a really strange shadow O_o
>
> And if I apply a scale 20, the artifacts diseapear 0_o
>
> Here is the image :
>
> http://dragons.masters.free.fr/images/demo3.png
>
> Here comes the code :
>
>
>
> #include "colors.inc"
> #include "textures.inc"
> #include "metals.inc"
>
> global_settings {
> max_trace_level 20
> }
>
>
> // Change this and you will see
> // that the artifacts chenge... :-S
>
> #declare echelle = 1;
>
> camera {
> location <-0.00,-0.7957,-1.308>*echelle
> look_at <-0.0,-.791,-1.30001>*echelle
>
> }
>
>
> #declare my_object = union {
> union {
> light_source {
> <-0.22,-0.75,-1.40>
> White
> }
> union {
> box {
> <0.025,-0,-1.3>
> <-0.025,-0.87,-1>
> }
> mesh {
> triangle {
> <0,-0.79,-1.29999>
> <0.004,-0.795,-1.29999>
> <0,-0.7925,-1.303>
> }
> triangle {
> <0,-0.79,-1.29999>
> <-0.004,-0.795,-1.29999>
> <0,-0.7925,-1.303>
> }
> triangle {
> <0,-0.795,-1.29999>
> <0.004,-0.795,-1.29999>
> <0,-0.7925,-1.303>
> }
> triangle {
> <0,-0.795,-1.29999>
> <-0.004,-0.795,-1.29999>
> <0,-0.7925,-1.303>
> }
> triangle {
> <0,-0.795,-1.29999>
> <-0.004,-0.795,-1.29999>
> <0,-0.79,-1.2999>
> }
> triangle {
> <0,-0.795,-1.29999>
> <0.004,-0.795,-1.29999>
> <0,-0.79,-1.29999>
> }
> inside_vector <0,1,0>
>
> texture {
> pigment { Yellow }
> }
> }
> sphere {
> <0,-0.7935,-1.301>
> 0.001
> texture {
> Brass_Metal
> }
> }
> texture {
> pigment { Red }
> }
> }
> }
> }
>
>
>
> object {
> my_object
> scale echelle
> }
>
>
>
You aparently tend to use a small scale, or very large units. The disapearance of the
problem by
scaling up the scene point to rounding errors introduced by the arithmetic processor
(FPU).
A possible solution would be to use another, smaler "base unit".
--
Alain
-------------------------------------------------
'First things first -- but not necessarily in that order' -- Dr Who
Post a reply to this message
|
![](/i/fill.gif) |