![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"SharkD" <mik### [at] gmail com> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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](/povray.binaries.scene-files/attachment/%3Cweb.59fcef3fb4b00596591d362a0%40news.povray.org%3E/screentest.png?ttop=437960&toff=250&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |