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

ofMesh, ofNode, of3DPrimitive?

$
0
0

@toliaferrode wrote:

Hi, so I'm trying to do something with desktop and the Raspberry Pi. I need to load or draw a custom mesh and be able to use ofNode to handle translation and rotation. How can I accomplish this?

I've heard you can load a mesh with of3DPrimitive, but I'm not sure how this is done. I've also heard about inheriting from ofNode and overloading custom draw, however I couldn't get positioning to work.

Any help would be greatly appreciate. Thank you very much.

Edit: I figured it out! Thanks community!

In 3dPrimitive I needed to call primitive.getMesh().load() and I'm able to load a .ply file even on the Pi!

Thanks again!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles