|
|
Am 28.10.2011 13:45, schrieb [GDS|Entropy]:
> I do not understand why the position of this object controls its appearance.
> Any clues?
Yes: You failed to translate the sperical pattern to the desired position.
I suggest to compose the Glow thing at <0,0,0>, and finally translate it
to where you want it:
> #macro Glow(glowPosition, glowRadius, glowColor)
> light_source
> {
> glowPosition
replace this line with:
<0,0,0>
> color rgb glowColor
> looks_like
> {
> sphere
> {
> glowPosition, glowRadius
replace this line with:
<0,0,0>, glowRadius
> hollow
> pigment
> {
> rgbt<0, 0, 0, 1>
> }
> interior
> {
> media
> {
> intervals 1 // scale this ...
> samples 1, 1
> emission glowColor
> density
> {
> spherical
> scale 3
> density_map
> {
> [0.0 rgb glowColor * 0.000]
> [0.8 rgb glowColor * 0.250]
> [0.9 rgb glowColor * 0.750]
> [1.0 rgb glowColor * 1.000]
> }
> }
> density
> {
> spherical
> density_map
> {
> [0.00 color rgb glowColor * 0.000]
> [ 0.90
> granite
> color_map
> {
> [0 color rgb glowColor * 0.750]
> [1 color rgb glowColor * 0.250]
> }
> //BlackHoleWarp(4, 1, 1, glowPosition, 1)
remove this line (or keep it commented out)
> ]
> [1.00 color rgb glowColor * 1.500]
> }
> }
> }
> }
> finish
> {
> reflection 0
> diffuse 0
> ambient 0
> phong 0
> specular 0
> brilliance 0
> }
> }
> }
insert here:
translate glowPosition
> }
> #end
Post a reply to this message
|
|