Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofBoxPrimitives mode for drawing: centre vs. vertex?

$
0
0

@sgrinschpun wrote:

Hi

I’m trying to have a bunch of ofBoxPrimitives with the same width and depth but different height. The boxes have a parent-child relationship to share transformations and the height is animated differently for every box.
I’m struggling to have all the boxes’ base planes aligned because when I change the height it grows or shrinks symmetrically from the centre of the box.

Is there and ofSetRectMode(OF_RECTMODE_CORNER) setting for ofBoxPrimitives?
How can I change the “anchor” of ofBoxPrimitive?

cheers

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles