| Step 3 |
Open up the swoop.pov file and locate the floor code which looks
like this:
// Floor:
object {
plane { y, 32 hollow }
texture {
pigment { color rgb <0.8, 0.8, 0.8> }
finish { ambient 0.4 diffuse 0.4 }
}
}
Hint: Look at line 3784 in the POV-Ray file.
We do not want POV-Ray to render the floor just yet. So we need
to remove it but NOT delete it. So we are going to "comment
it out". That is the code will become comments and not POV-Ray
code. To "comment it out", we use the symbols "//"
in front of the line of code. So your floor code will look like
this:
// Floor:
//object {
// plane { y, 32 hollow }
// texture {
// pigment { color rgb <0.8,0.8,0.8> }
// finish { ambient 0.4 diffuse 0.4 }
// }
//}
Hint: Comments are in green text in POV-Ray
|
| Step 6 |
Now we want to render the swoop bike but this time we only want
the bike's shadow.
Locate the following code,
object { swoop_dot_ldr #if (version >= 3.1) material #else texture #end { Color7 } }
and place your cursor between the last two "}".
(Hint: Look right above the floor code we commented out on
line 3781)
On the POV-Ray menu bar locate the "insert" menu and
select the "shape modifiers" sub-menu and then click on
"no image". See figure 5 if you need help.

Figure 5: The POV-Ray "no image" command
Note that the "no_image" command is now part of the object
code. |
| Step 8 |
Locate the light code in your pov file it should look like this:
// Lights:
light_source {
<0,-508.575,-541.975> // Latitude,Longitude,Radius: 45,0,700
color rgb <1,1,1>
}
light_source {
<525,-363.6,256.109> // Latitude,Longitude,Radius: 30,120,700
color rgb <1,1,1>
}
light_source {
<-303.109,-619.818,128> // Latitude,Longitude,Radius: 60,-120,700
color rgb <1,1,1>
}
You want to add the keyword "shadowless" to the 2nd and
3rd lights at the ever end before the "}" symbol.
Why those? Simply because we like the shadow created by the 1st light
more than the other two.
Render the file again with the same resolution as before. (We used 800x600 the last time).
The code below has been modified to show the "shadowless" keyword.
// Lights:
light_source {
<0,-508.575,-541.975> // Latitude,Longitude,Radius: 45,0,700
color rgb <1,1,1>
}
light_source {
<525,-363.6,256.109> // Latitude,Longitude,Radius: 30,120,700
color rgb <1,1,1> shadowless
}
light_source {
<-303.109,-619.818,128> // Latitude,Longitude,Radius: 60,-120,700
color rgb <1,1,1> shadowless
} |