alice-teacher Resizing reflects an object?

Daniel Abeshouse dabeshou at andrew.cmu.edu
Fri Apr 22 11:26:16 EDT 2022


In the IDE, negative values for the resize* and setHeight|Width|Depth throw an exception that is logged and the operation is basically skipped, taking no animation time.
On export to the player, we have different behavior. The set* methods and resize both accept negative values and produce the effect you are seeing, while the resizeHeight|Width|Depth log an error with each frame, and take up the animation time, unlike in the IDE.

I have not done a full exploration of the effects of the various extra parameters.

The difference in behavior after an error in the IDE and the Player is a known bug. The sizing behavior for negative numbers is a new one. I will add it to our list.

Thanks for finding this.

-Daniel Abeshouse
On Apr 22, 2022, 8:28 AM -0400, Donald Slater via alice-teachers <alice-teachers at lists.andrew.cmu.edu>, wrote:
> I have not seen of there was a reply to the posting. If there were any, or you figured it out, I apologize.
>
> My first instinct was that it was the negative scale factor, as you suggest, but I have not been able to recreate it. The only way I got the reflection you are showing was to roll the ogre .5 rotations.
>
> When I try to resize an ogre by a negative value (fixed or random), nothing happens.
>
> Would you be willing to share your code. I may be missing something.
>
> Thank you,
> Don Slater
>
>
>
>
> > On Apr 12, 2022, at 11:46 AM, Carlos Bovell via alice-teachers <alice-teachers at lists.andrew.cmu.edu> wrote:
> >
> > Hi,
> >
> > I have a random number generator resizing ogres for me and am getting reflections. What is causing that? A negative scale factor?
> >
> > <upsideDownOgre.JPG>
> > _______________________________________________
> > alice-teachers mailing list
> > alice-teachers at lists.andrew.cmu.edu
> > To change settings or unsubscribe visit:
> > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20220422/e7a78690/attachment-0001.html>


More information about the alice-teachers mailing list