|
|
Stephen <mca### [at] aolcom> wrote:
> On 29/05/2013 6:12 PM, LanuHum wrote:
> > Hello! Sorry!
> > I on the former don't speak in English :)
> >
> > //----Blender Object Name:Plane----
> > object {
> > Plane
> > matrix <4.580214, 0.000000, 0.000000, 0.000000, -0.000000, -4.580214,
> > 0.000000, 4.580214, -0.000000, 0.000000, 0.000000, 0.000000>
> >
> > light_source {
> > < 0,0,0 >
> > color rgb<0.6, 0.6, 0.6>
> > spotlight
> > falloff 37.50
> > radius 31.874999
> > tightness 0
> > point_at <?????????????????????????>
> > fade_distance 14.999991
> > fade_power 2
> > matrix <-0.942444, 0.000000, 0.334364, 0.268584, 0.595619, 0.757034,
> > -0.199154, 0.803267, -0.561337, 3.196899, 5.407235, -3.778671>
> >
> > How to send light to object center?
> > Help me! Please!
> >
>
> Hi and welcome.
>
> There is an international news group where you can ask in languages
> other than English.
>
> You can find the co-ordinates of the bounding box of your object using,
> the functions min_extent and max_extent. Search for them in PovRay help.
> The centre of your object should be at the centre of the bounding box.
> (Roughly speaking)
>
> But since you are using Blender can you not point it at your object in
> Blender?
>
> --
> Regards
> Stephen
in official povray addons:
elif lamp.type == 'SPOT':
tabWrite("spotlight\n")
# Falloff is the main radius from the centre line
tabWrite("falloff %.2f\n" % (degrees(lamp.spot_size) / 2.0)) #
1 TO 179 FOR BOTH
tabWrite("radius %.6f\n" % \
((degrees(lamp.spot_size) / 2.0) * (1.0 -
lamp.spot_blend)))
# Blender does not have a tightness equivilent, 0 is most like
blender default.
tabWrite("tightness 0\n") # 0:10f
tabWrite("point_at <0, 0, -1>\n")
I rewrite:
tabWrite("point_at <%.3g, %.3g, %.3g>\n"%ob.constraints["Track
To"].target.location[:])
It doesn't yield the necessary result as it is necessary to consider a matrix
Post a reply to this message
|
|