 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Well, at least in MegaPovPlus 032
Example:
This doens't work:
( <----ERROR
C:\Mijn documenten\POV-Ray\Scenes\t.pov:21: error: object or directive
expected but End of File found instead.
Returned from renderer (non-zero return value)
)
#version unofficial MegaPov 0.5;
camera {
location <1,3,-5>
angle 70
look_at y*5
}
light_source {
<5000,50,-500>
rgb 1
}
sphere {
0,.5
pigment {rgb 1}
}
glow {size .125
type 0
location x
color red 1
}
But this does:
#version unofficial MegaPov 0.5;
camera {
location <1,3,-5>
angle 70
look_at 0
}
light_source {
<5000,50,-500>
rgb 1
}
glow {size .125
type 0
location x
color red 1
}
sphere {
0,.5
pigment {rgb 1}
}
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Bill DeWitt
Subject: Re: Glows can't be the last thing in a scene???
Date: 8 Nov 2000 01:56:54
Message: <3a08f936@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Yeah, no, you have to have -something- after the isosurface. I've been
putting in box{0,0} just to make sure.
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Zeger Knaepen
Subject: Re: Glows can't be the last thing in a scene???
Date: 8 Nov 2000 04:12:43
Message: <3a09190b$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
You mean after the glow, right?
Isn't that a bug?
ZK
http://www.povplace.be.tf
Bill DeWitt <the### [at] earthlink net> schreef in berichtnieuws
3a08f936@news.povray.org...
>
> Yeah, no, you have to have -something- after the isosurface. I've been
> putting in box{0,0} just to make sure.
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Zeger Knaepen" <zeg### [at] student kuleuven ac be> wrote in message
news:3a09190b$1@news.povray.org...
> You mean after the glow, right?
> Isn't that a bug?
Yes and yes.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a08f887$1@news.povray.org>, "Zeger Knaepen"
<zeg### [at] student kuleuven ac be> wrote:
> Well, at least in MegaPovPlus 032
Now this is odd...I don't see any reason for this to work this way. Can
you use background, sky_sphere, or fog? The code for glow should work in
exactly the same was as for these, I doubt it is specific to glows.
Does it work if you just put some spaces or blank lines at the end of
the file?
Chris makes a note to check this out when he has time...
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Gail Shaw
Subject: Re: Glows can't be the last thing in a scene???
Date: 9 Nov 2000 03:43:45
Message: <3a0a63c1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Chris Huff <chr### [at] mac com> wrote in message
news:chrishuff-3BE87B.16130308112000@news.povray.org...
> Chris makes a note to check this out when he has time...
>
Chris
Have a look at the thread "Megapovplus glows" p.u-p 27/09/2000
Gail
--
********************************************************************
* gsh### [at] monotix co za * System.dat not found. *
* http://www.rucus.ru.ac.za/~gail/ * Reformat hard drive Y)es O)k *
********************************************************************
* If at first you don't succeed, call it version 1.0 *
********************************************************************
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Chris Huff <chr### [at] mac com> wrote:
> In article <3a08f887$1@news.povray.org>, "Zeger Knaepen"
> <zeg### [at] student kuleuven ac be> wrote:
>
> > Well, at least in MegaPovPlus 032
>
> Now this is odd...I don't see any reason for this to work this way. Can
> you use background, sky_sphere, or fog? The code for glow should work in
> exactly the same was as for these, I doubt it is specific to glows.
>
This is fixed in MP 0.6 and 0.6a. Just look at parse_frame().
Did you add those changes in MP+ Chris?
Smellenbergh
--
e-mail:sme### [at] skynet be
http://users.skynet.be/smellenbergh
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <1ejueeb.poy5ztkzx6reN%smellenbergh@skynet.be>,
sme### [at] skynet be (smellenbergh) wrote:
> This is fixed in MP 0.6 and 0.6a. Just look at parse_frame().
> Did you add those changes in MP+ Chris?
Actually I am moving my patches to be based on MP 0.6a...probably why I
didn't see anything wrong. :-)
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: GrimDude
Subject: Re: Glows can't be the last thing in a scene???
Date: 9 Nov 2000 23:06:44
Message: <3a0b7454@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Chris, we brought this up right after you created the glow patch. I've been
putting sphere {0,0} in all of my scenes with just glows.
Grim
"Chris Huff" <chr### [at] mac com> wrote in message
news:chrishuff-3BE87B.16130308112000@news.povray.org...
> In article <3a08f887$1@news.povray.org>, "Zeger Knaepen"
> <zeg### [at] student kuleuven ac be> wrote:
>
> > Well, at least in MegaPovPlus 032
>
> Now this is odd...I don't see any reason for this to work this way. Can
> you use background, sky_sphere, or fog? The code for glow should work in
> exactly the same was as for these, I doubt it is specific to glows.
>
> Does it work if you just put some spaces or blank lines at the end of
> the file?
>
> Chris makes a note to check this out when he has time...
>
> --
> Christopher James Huff
> Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
> TAG: chr### [at] tag povray org, http://tag.povray.org/
>
> <><
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a0b7454@news.povray.org>, "GrimDude"
<gri### [at] netzero com> wrote:
> Chris, we brought this up right after you created the glow patch.
I must have forgotten it among all the other problems you people
found... :-)
> I've been putting sphere {0,0} in all of my scenes with just glows.
Why not "box{0,0}"? It is 4 characters shorter... ;-)
Anyway, glows now attach to objects properly. You can attach them to any
object, not just CSGs. You still can't declare them...I might end up
removing the ability to specify glows outside of objects and light
sources, and adding a "glow_object" which can be used instead. This
would be easier to maintain.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: GrimDude
Subject: Re: Glows can't be the last thing in a scene???
Date: 10 Nov 2000 18:38:27
Message: <3a0c86f3@news.povray.org>
|
|
 |
|  |
|  |
|
 |
That's interesting! I've been declaring them and they work fine! :)
Grim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a0c86f3@news.povray.org>, "GrimDude"
<gri### [at] netzero com> wrote:
> That's interesting! I've been declaring them and they work fine! :)
Umm, you must be dreaming or misunderstanding, because it isn't
possible. MegaPOV 0.6a will let you put a glow after a #declare, but it
won't create a glow variable and you won't be able to make a copy of the
glow.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: GrimDude
Subject: Re: Glows can't be the last thing in a scene???
Date: 10 Nov 2000 23:25:01
Message: <3a0cca1d@news.povray.org>
|
|
 |
|  |
|  |
|
 |
You know, I'd like believe you. :)
I'm right in the middle of an overnight render, or I'd double check.
What I did was:
#declare EuroSun = object { glow { location.... } sphere {0,0}}
then:
object { EuroSun }
finally I redundantly added:
light_source {(same location)....looks_like {EuroSun}}
and I swear it rendered a glow.
Now you're making me nervous... :)
Grim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a0cca1d@news.povray.org>, "GrimDude"
<gri### [at] netzero com> wrote:
> You know, I'd like believe you. :)
> I'm right in the middle of an overnight render, or I'd double check.
>
> What I did was:
> #declare EuroSun = object { glow { location.... } sphere {0,0}}
> then:
> object { EuroSun }
> finally I redundantly added:
> light_source {(same location)....looks_like {EuroSun}}
> and I swear it rendered a glow.
Of course it did, this line:
#declare EuroSun = object { glow { location.... } sphere {0,0}}
Puts a glow in your scene and declares a sphere variable named EuroSun.
This line:
object { EuroSun }
Then uses that variable to make a sphere. Since there is already a glow
in that position, you don't notice that it doesn't put a glow there. If
you tried making multiple copies of EuroSun or attempted to translate
it, it wouldn't have worked.
I've managed to get glows to attach to objects correctly, but haven't
worked out glow declaration yet. You still can't declare glows(though I
might be able to add that before the next release), and objects that
have glows attached don't act properly when copied.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: GrimDude
Subject: Re: Glows can't be the last thing in a scene???
Date: 11 Nov 2000 12:30:54
Message: <3a0d824e@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Well then, you were correct and I misunderstood what you meant by 'declare.'
Isn't that what the first line does?
Grim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a0d824e@news.povray.org>, "GrimDude"
<gri### [at] netzero com> wrote:
> Well then, you were correct and I misunderstood what you meant by
> 'declare.'
> Isn't that what the first line does?
No, it declares a sphere and puts a glow in the scene. The glow would be
there even if you hadn't typed "object { EuroSun }". This is still a
problem with my patch(it doesn't work properly if you declare objects
with glows attached), and it isn't going to be easy to fix.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: GrimDude
Subject: Re: Glows can't be the last thing in a scene???
Date: 11 Nov 2000 23:11:52
Message: <3a0e1888@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Yes, but it appears to function normally. Right? I mean, you're trying to
tell me this is not how it is done? :(
Grim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a0e1888@news.povray.org>, "GrimDude"
<gri### [at] netzero com> wrote:
> Yes, but it appears to function normally. Right? I mean, you're trying to
> tell me this is not how it is done? :(
It only appears to work correctly in your scene because you don't try to
do anything but put it in the scene. Try typing:
object {EuroSun translate x*2}
object {EuroSun translate y*2}
object {EuroSun translate z*2}
You will get a zero-radius sphere at < 2, 0, 0>, < 0, 2, 0>, and < 0, 0,
2>, and one glow which is completely unaffected by all the EuroSun
objects.
It lets you put it in the #declare statement, but *it does not declare
the glow*!
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: GrimDude
Subject: Re: Glows can't be the last thing in a scene???
Date: 12 Nov 2000 11:49:13
Message: <3a0eca09@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Ah! I don't mean to waste your time answering superfluous questions, Chris.
I had read that transforms upon glows would not work. I had no idea that
declares didn't, either. Thanks for clearing it up.
Grim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Chris Huff wrote:
> I've managed to get glows to attach to objects correctly, but haven't
> worked out glow declaration yet. You still can't declare glows(though I
> might be able to add that before the next release),
Chris - I am pretty sure that I implemented particle declarations in the
ParticlePatch
- you could look at it & do something similar.
--
Bye
Pabs
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3A0F8CD1.B19B2F1C@hotmail.com>, Pabs <pab### [at] hotmail com>
wrote:
> Chris - I am pretty sure that I implemented particle declarations in the
> ParticlePatch - you could look at it & do something similar.
I've been thinking of following the spline patch through the source and
duplicating everything that looks like it has to do with variables, but
I also want to understand what the code is doing. The next release of my
patch will have declarable glows, don't worry. :-)
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |