POV-Ray : Newsgroups : povray.newusers : having trouble with scaling an object : Re: having trouble with scaling an object Server Time
5 Nov 2024 01:24:44 EST (-0500)
  Re: having trouble with scaling an object  
From: Mr Art
Date: 8 Aug 2002 10:57:01
Message: <3D532F6A.3040007@chesapeake.net>
Wade wrote:
> Every time that I try to scale the blub down to fix properly on the the
> lamp, I get 2 blubs on top of each other.   how do I get rid of the 2nd
> blub?  I'm including the lightblub.inc file.  here's the code:
The problem is not in the *.pov file but in the *.inc file.
And its not a syntex error either, everything there will work
exactly as typed... *exactly* as typed....
It seems as if you used the *.inc file to test the object "Lightblub"
by including there two lights in the *.inc file itself:
light_source
	{
	<0,2,0> color rgb <1,1,1>
	area_light x*1, y*1, 2,2
	adaptive 1 jitter
	looks_like {Lightblub}
	}
light_source
	{
	<0,20,0>color Gray75
	fade_distance 10 fade_power 2
	shadowless
	}

These two light_sources get included whenever you use the *.inc file on 
another scene.

You might want to move these to the *.pov file where you can better keep 
track of where they get put in the scene (if at all).
-or-
You might want to
#declare Bulb =
union 
{
	light_source
		{
		<0,2,0> color rgb <1,1,1>
		area_light x*1, y*1, 2,2
		adaptive 1 jitter
		looks_like {Lightblub}
		}
	light_source
		{
		<0,20,0>color Gray75
		fade_distance 10 fade_power 2
		shadowless
		}
	}
in the *.inc file and use it in the *.pov file where you need.


Hope this helps some.


disclamer: all indenting represented here is of my own style and does 
not reflect the styles of the POV design team, the POV-TAG, or anyone 
else in this news-group. Any simularities to anything you may have seen 
before is purely coincidental.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.