discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Animation $vpr

P
Parkinbot
Mon, Jun 13, 2016 1:10 PM

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:
http://forum.openscad.org/file/n17657/Ani.png

Any idea? Is this a known bug?

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

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: <http://forum.openscad.org/file/n17657/Ani.png> Any idea? Is this a known bug? -- View this message in context: http://forum.openscad.org/Animation-vpr-tp17657.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Mon, Jun 13, 2016 7:22 PM

On Jun 13, 2016, at 09:10 AM, Parkinbot rudolf@parkinbot.com 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

> On Jun 13, 2016, at 09:10 AM, Parkinbot <rudolf@parkinbot.com> 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
R
Ronaldo
Mon, Jun 13, 2016 7:52 PM

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

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

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 -- View this message in context: http://forum.openscad.org/Animation-vpr-tp17657p17661.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
Parkinbot
Mon, Jun 13, 2016 8:13 PM

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.

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

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. -- View this message in context: http://forum.openscad.org/Animation-vpr-tp17657p17662.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
Parkinbot
Mon, Jun 13, 2016 11:34 PM

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.

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.
RP
Ronaldo Persiano
Tue, Jun 14, 2016 12:01 AM

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

2016-06-13 20:34 GMT-03:00 Parkinbot rudolf@parkinbot.com:

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Are you sure? I got "WARNING: Ignoring unknown module 'max'". 2016-06-13 20:34 GMT-03:00 Parkinbot <rudolf@parkinbot.com>: > 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
P
Parkinbot
Tue, Jun 14, 2016 12:57 AM

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.

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

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. -- View this message in context: http://forum.openscad.org/Animation-vpr-tp17657p17668.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Tue, Jun 14, 2016 1:50 AM

On Jun 13, 2016, at 20:57 PM, Parkinbot rudolf@parkinbot.com 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

> On Jun 13, 2016, at 20:57 PM, Parkinbot <rudolf@parkinbot.com> 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
P
Parkinbot
Tue, Jun 14, 2016 9:46 AM

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.

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.
RP
Ronaldo Persiano
Wed, Jun 15, 2016 5:18 AM

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 rudolf@parkinbot.com:

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <rudolf@parkinbot.com>: > 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >