 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I posted this a few years a go, but recently did a few tweaks to fixed
compatibility issue with the original version.
Mike
Post a reply to this message
Attachments:
Download 'screen.inc.txt' (8 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 11/3/2016 9:31 PM, Mike Horvath wrote:
> I posted this a few years a go, but recently did a few tweaks to fixed
> compatibility issue with the original version.
>
> Mike
Forgot to add a test scene.
Mike
Post a reply to this message
Attachments:
Download 'axonometric_projection_comparison.pov.txt' (10 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 11/03/2016 09:31 PM, Mike Horvath wrote:
> I posted this a few years a go, but recently did a few tweaks to fixed
> compatibility issue with the original version.
There is no license statement with your file. It is evident that you
based your modifications on a pre-3.7 version of the file, and as such,
it would bear the license of that version of POV-Ray, but there is no
indication of that to the user.
You should be aware that there was a change to macro Screen_Object in
version 3.7. If you are considering this change, note that it will
cause a parse error in versions 3.5 and 3.6.*.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I updated the script slightly. There is now also the license, and I
incorporated the official changes to the Screen_Object macro.
Mike
Post a reply to this message
Attachments:
Download 'screen.inc.txt' (8 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 08/30/2018 09:32 PM, Mike Horvath wrote:
> I updated the script slightly. There is now also the license, and I
> incorporated the official changes to the Screen_Object macro.
>
>
> Mike
Why does it save and restore the version, but not change it?
--
dik
Rendered 1024 of 921600 pixels (0%)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 8/30/2018 9:36 PM, dick balaska wrote:
> On 08/30/2018 09:32 PM, Mike Horvath wrote:
>> I updated the script slightly. There is now also the license, and I
>> incorporated the official changes to the Screen_Object macro.
>>
>>
>> Mike
>
> Why does it save and restore the version, but not change it?
>
I forgot about that. What should I do instead?
Mike
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 08/30/2018 10:38 PM, Mike Horvath wrote:
> On 8/30/2018 9:36 PM, dick balaska wrote:
>> On 08/30/2018 09:32 PM, Mike Horvath wrote:
>>> I updated the script slightly. There is now also the license, and I
>>> incorporated the official changes to the Screen_Object macro.
>>>
>>
>> Why does it save and restore the version, but not change it?
>>
>
> I forgot about that. What should I do instead?
>
I would just delete those two lines, they are unnecessary.
--
dik
Rendered 1024 of 921600 pixels (0%)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 8/30/2018 10:58 PM, dick balaska wrote:
> On 08/30/2018 10:38 PM, Mike Horvath wrote:
>> On 8/30/2018 9:36 PM, dick balaska wrote:
>>> On 08/30/2018 09:32 PM, Mike Horvath wrote:
>>>> I updated the script slightly. There is now also the license, and I
>>>> incorporated the official changes to the Screen_Object macro.
>>>>
>>>
>>> Why does it save and restore the version, but not change it?
>>>
>>
>> I forgot about that. What should I do instead?
>>
>
> I would just delete those two lines, they are unnecessary.
>
>
Okay. Unfortunately, the file has never had any version numbers, so all
the different versions floating around (I'm not the only one) are hard
to keep straight.
Mike
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Another update, with more of Dick's tips.
Mike
Post a reply to this message
Attachments:
Download 'screen.inc.txt' (8 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Am 31.08.2018 um 04:58 schrieb dick balaska:
> On 08/30/2018 10:38 PM, Mike Horvath wrote:
>> On 8/30/2018 9:36 PM, dick balaska wrote:
>>> On 08/30/2018 09:32 PM, Mike Horvath wrote:
>>>> I updated the script slightly. There is now also the license, and I
>>>> incorporated the official changes to the Screen_Object macro.
>>>>
>>>
>>> Why does it save and restore the version, but not change it?
>>>
>>
>> I forgot about that. What should I do instead?
>>
>
> I would just delete those two lines, they are unnecessary.
A smarter approach would be to leave them in, and add a `#version 3.7`
(or some such) indicating the minimum version of POV-Ray known to work
with the include file.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I added the version check back in. It should work in POV 3.7 and later now.
Mike
Post a reply to this message
Attachments:
Download 'screen.inc.txt' (8 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I noticed I let a bug slip in that was causing the "Screen_Object()"
macro to fail. I have attached the updated script.
Mike
Post a reply to this message
Attachments:
Download 'screen.inc.txt' (8 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike Horvath <mik### [at] gmail com> wrote:
> I noticed I let a bug slip in that was causing the "Screen_Object()"
> macro to fail. I have attached the updated script.
>
>
> Mike
Thanks! Haven't tried it out yet, but will.
I made a few changes of my own to the original screen.inc years ago-- to improve
its precision with HIGH-res cylindrical height_fields and such, when made there.
(and also figured out where to add an 'inside vector' to such things, for use in
CSG.) I hope I can find the old code at some point; I think I lost it :-(
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I discovered a lot of bugs that I didn't notice before.
These updated versions may work better. There are new test cases in the
demo scene. Let me know if they're not working.
Michael
Post a reply to this message
Attachments:
Download 'screen_mjh.inc.txt' (9 KB)
Download 'screen_mjh.pov.txt' (10 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Some small tweaks, as well as some notes.
NOTES (MJH)
* Camera_Angle and Camera_Zoom are ignored by Mode 2.
* Outputted Camera_Look_At is incorrect with Mode 2 when orthographic
projection is disabled. Not sure this can be fixed.
* In my opinion, Set_Camera_Angle and Set_Camera_Zoom should disregard
Camera_Aspect_Ratio. Instead, Camera_Aspect_Ratio should be handled
at other points in the code. However, altering this behavior could
affect old scenes.
Post a reply to this message
Attachments:
Download 'screen_mjh.inc.txt' (10 KB)
Download 'screen_mjh.pov.txt' (10 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 6/25/2019 3:32 AM, Mike Horvath wrote:
> Some small tweaks, as well as some notes.
>
> NOTES (MJH)
> * Camera_Angle and Camera_Zoom are ignored by Mode 2.
> * Outputted Camera_Look_At is incorrect with Mode 2 when orthographic
> projection is disabled. Not sure this can be fixed.
> * In my opinion, Set_Camera_Angle and Set_Camera_Zoom should disregard
> Camera_Aspect_Ratio. Instead, Camera_Aspect_Ratio should be handled
> at other points in the code. However, altering this behavior could
> affect old scenes.
Additional note:
Is it even possible to determine the look_at point when you are using
location, direction, right, and up and perspective projection?
Michael
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Oops, I forgot to trim some test code that causes experimental behavior.
I have attached the unaffected code to this post.
Michael
Post a reply to this message
Attachments:
Download 'screen_mjh.inc.txt' (10 KB)
Download 'screen_mjh.pov.txt' (10 KB)
Download 'notes.txt' (1 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Made some minor tweaks, and updated the documentation. These are
probably the last changes I will make unless there is feedback.
Michael
Post a reply to this message
Attachments:
Download 'screen_mjh.inc.txt' (11 KB)
Download 'screen_mjh.pov.txt' (10 KB)
Download 'notes.txt' (1 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |