Animation $vpr

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Animation $vpr

Parkinbot
Trying to render some animations with OpenSCAD 2016.04.06.

For roundtravel of view I use:

$vpr = [70, 0, $t*360];

but this produces some unwanted height changes in outputted frame sequence. This is the effect: https://www.youtube.com/watch?v=NA3Zcl2nfVA

This is the frames and their sizes:


Any idea? Is this a known bug?

Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

kintel
Administrator
> On Jun 13, 2016, at 09:10 AM, Parkinbot <[hidden email]> wrote:
>
> but this produces some unwanted height changes in outputted frame sequence.
> […]
> Any idea? Is this a known bug?
>
It’s not a known problem.
Can you reproduce this with a trivial example and minimal # of frames?

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Ronaldo
In reply to this post by Parkinbot
Rudolf,

I think everything works right if you set $vpt = [0,0,h] for any h. If you don't set $vpt, the z movement depends on the initial $vpt value which may be changed by interaction. I understand that $vpt is the center of the rotation set by $vpr.

Ronaldo
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Parkinbot
In reply to this post by kintel
I traced it down. Was somehow homemade. I had a typo when naming colors and ignored the warnings issued.

This reproduces it. Use >1 timesteps ;-)

if ($t<0.5) color("golden") cube([10, 20, 10]);

You can see in the status line, how the size is jumping.
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Parkinbot
So it's actually any warning being issued. This IS a bug!

cube([1,1,1]);
  if ($t<0.5)
    max(x);
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Ronaldo
Are you sure? I got "WARNING: Ignoring unknown module 'max'".

2016-06-13 20:34 GMT-03:00 Parkinbot <[hidden email]>:
So it's actually any warning being issued. This IS a bug!

cube([1,1,1]);
  if ($t<0.5)
    max(x);



--
View this message in context: http://forum.openscad.org/Animation-vpr-tp17657p17666.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Parkinbot
As I wrote: any warning issued during animation will change the size of the frame - by 30 pixels.

max() is a built-in function and should be known. But x is unknown and this issues a warning.

First I thought it was the $vpr. Found the simple but nasty reason now: Stacked upon the output window there is a panel shown, that indicates the warning - and thus alters the frame height.

So its more a feature then a bug. But it should be switched off during animations.

Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

kintel
Administrator
> On Jun 13, 2016, at 20:57 PM, Parkinbot <[hidden email]> wrote:
>
> max() is a built-in function and should be known. But x is unknown and this
> issues a warning.
>
Built-in _function_, which is not syntactically correct to use here. It would need to be a module.

I agree that warnings messages probably shouldn’t eat into the 3D viewport.
Nice catch.

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Parkinbot
You are both perfectly right. I used just something unknown to generate a warning.
Reply | Threaded
Open this post in threaded view
|

Re: Animation $vpr

Ronaldo
Hitchhiking Rudolf's thread: when I dump pictures with the Animate feature I get just full black .png images. Any ideas?

2016-06-14 6:46 GMT-03:00 Parkinbot <[hidden email]>:
You are both perfectly right. I used just something unknown to generate a
warning.




--
View this message in context: http://forum.openscad.org/Animation-vpr-tp17657p17672.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org