POV-Ray : Newsgroups : povray.binaries.scene-files : New version screen.inc Server Time
7 Jul 2024 06:52:28 EDT (-0400)
  New version screen.inc (Message 13 to 22 of 52)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: SharkD
Subject: Re: New version screen.inc
Date: 18 Nov 2009 21:27:57
Message: <4b04ad2d$1@news.povray.org>
On 11/18/2009 10:51 AM, Captain Jack wrote:
> I put a copy of the rendering up at YouTube, here:
> http://www.youtube.com/watch?v=LzgV8dALdIo.

Cool. I've been using it to render illustrations in POV-Ray, and then 
create markers and text on top of it in GeoGebra.

Mike


Post a reply to this message

From: Captain Jack
Subject: Re: New version screen.inc
Date: 19 Nov 2009 09:29:21
Message: <4b055641$1@news.povray.org>
"SharkD" <mik### [at] gmailcom> wrote in message 
news:4b04ad2d$1@news.povray.org...
> On 11/18/2009 10:51 AM, Captain Jack wrote:
>> I put a copy of the rendering up at YouTube, here:
>> http://www.youtube.com/watch?v=LzgV8dALdIo.
>
> Cool. I've been using it to render illustrations in POV-Ray, and then 
> create markers and text on top of it in GeoGebra.
>
> Mike

And, just for the sake of completeness if anyone else is reading this, I 
fixed the spring macro, using a macro from transforms.inc:

#macro Spring(Base_Point, Top_Point, Spring_Radius, Turns, Wire_Radius, 
Length_Scale)
    #local Length = vlength(Top_Point - Base_Point);
    #local Points = 4*Turns + 3;
    #local Arm_Delta = (Length/Length_Scale) / (4*Turns);
    #local Arm_Offset = -Arm_Delta;
    #local Arm_Rotation = 0;
    sphere_sweep {
        b_spline
        Points
        #local Counter = 0;
        #while (Counter < Points)
            , vrotate(Spring_Radius*x, Arm_Rotation*y) + Arm_Offset*y, 
Wire_Radius
            #local Arm_Offset = Arm_Offset + Arm_Delta;
            #local Arm_Rotation = mod(Arm_Rotation + 90, 360);
            #local Counter = Counter + 1;
        #end
        scale Length_Scale*y + (x + z)
        Point_At_Trans(Top_Point - Base_Point)
        translate Base_Point
        bounded_by {
            cylinder {
                -Wire_Radius*y,
                (Length+Wire_Radius)*y,
                Spring_Radius+Wire_Radius
                Point_At_Trans(Top_Point - Base_Point)
                translate Base_Point
                }
            }
        }
#end


Post a reply to this message

From: Ellef Fange Gjelstad
Subject: Re: New version screen.inc
Date: 17 Aug 2010 11:15:01
Message: <web.4c6aa70eb4b005963d51a7b10@news.povray.org>
I am getting error messages like this:

File: /home/ellef/lang/pov-ray/inc//myScreen.inc  Line: 111
File Context (5 lines):
  #local val_3 = vinv_transform(Loc, Camera_Transform_All);
  <
Parse Error: Expected 'object or directive', < found instead


What am I doing wrong?


I am trying to add labels and help lines to geometrical figures (See
povray.newusers thread "Labels on geometrical figures").  It would be nice to do
that too entirely inside Pov-ray.


Post a reply to this message

From: SharkD
Subject: Re: New version screen.inc
Date: 17 Aug 2010 19:18:07
Message: <4c6b18af@news.povray.org>
On 8/17/2010 11:13 AM, Ellef Fange Gjelstad wrote:
>
> I am getting error messages like this:
>
> File: /home/ellef/lang/pov-ray/inc//myScreen.inc  Line: 111
> File Context (5 lines):
>    #local val_3 = vinv_transform(Loc, Camera_Transform_All);
>    <
> Parse Error: Expected 'object or directive',<  found instead
>
>
> What am I doing wrong?
>
>
> I am trying to add labels and help lines to geometrical figures (See
> povray.newusers thread "Labels on geometrical figures").  It would be nice to do
> that too entirely inside Pov-ray.
>
>
>

Please post the entire scene.

-- 
http://isometricland.com


Post a reply to this message

From: Ellef Fange Gjelstad
Subject: Re: New version screen.inc
Date: 18 Aug 2010 10:10:00
Message: <web.4c6be990b4b005963d51a7b10@news.povray.org>
After some struggle, I have made a minimal example which works.  Thanks to
Captain Jack for TargetTest.pov (and of course to SharkD, this is a really cool
feature).

Maybe some might be interested in the "minimal" example, so I post it here.

So now, it is just to connect this to SVG, imageMagick and make, and we have a
general tool :)


Post a reply to this message


Attachments:
Download 'screenminimal.pov.txt' (2 KB)

From: Ellef Fange Gjelstad
Subject: Re: New version screen.inc
Date: 18 Aug 2010 10:15:01
Message: <web.4c6bea4fb4b005963d51a7b10@news.povray.org>
After some struggle, I have made a minimal example which works.  Thanks to
Captain Jack for TargetTest.pov (and of course to SharkD, this is a really cool
feature).

Maybe some might be interested in the "minimal" example, so I post it here.

So now, it is just to connect this to SVG, imageMagick and make, and we have a
general tool :)


Post a reply to this message

From: SharkD
Subject: Re: New version screen.inc
Date: 18 Aug 2010 19:55:26
Message: <4c6c72ee$1@news.povray.org>
On 8/18/2010 10:09 AM, Ellef Fange Gjelstad wrote:
> After some struggle, I have made a minimal example which works.  Thanks to
> Captain Jack for TargetTest.pov (and of course to SharkD, this is a really cool
> feature).
>
> Maybe some might be interested in the "minimal" example, so I post it here.
>
> So now, it is just to connect this to SVG, imageMagick and make, and we have a
> general tool :)

It would be cool if there were a library of macros that created 
SVG-equivalent shapes in POV. Might be a nice little project for someone 
who has the time.


-- 
http://isometricland.com


Post a reply to this message

From: posfan12
Subject: Re: New version screen.inc
Date: 19 Jan 2016 00:55:01
Message: <web.569dcf40b4b005965dbf06e80@news.povray.org>
Here's an updated version. It uses a new macro, Set_Camera_Orthographic, to
toggle orthographic mode on/off. Otherwise, the script will not be compatible
with old scenes made prior to this script.


Mike


Post a reply to this message


Attachments:
Download 'screen_new.inc.txt' (8 KB)

From: Yannick Patois
Subject: Re: New version screen.inc
Date: 17 Mar 2016 04:50:00
Message: <web.56ea6fa7b4b00596629fde300@news.povray.org>
Hi,

"posfan12" <nomail@nomail> wrote:
> Here's an updated version. It uses a new macro, Set_Camera_Orthographic, to
> toggle orthographic mode on/off. Otherwise, the script will not be compatible
> with old scenes made prior to this script.

Thanks for your great work.

However, when I tried this version, I saw that the render was not the same when
simply switching from the regular screen.inc to screen_new.inc.

Is that expected?

Thanks.

Yannick


Post a reply to this message

From: cbpypov
Subject: Re: New version screen.inc
Date: 3 Nov 2017 18:40:01
Message: <web.59fcef3fb4b00596591d362a0@news.povray.org>
This is a really cool feature which I'd like to use for an animation. Somehow it
does not work for me: the camera "zooms in" much more than using the normal
orthographic camera. The object positioning of text does not work either, as
shown in the standard screen.inc example attached.

What am I doing wrong. Or did something change?


Post a reply to this message


Attachments:
Download 'screentest.png' (105 KB)

Preview of image 'screentest.png'
screentest.png


 

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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