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

How to make a customized mesh use openFramework's renderer

$
0
0

@macusual wrote:

Hello,

I want to make a dynamic particle system similar to this blog post:
Flexible particle system container

I know that the typical way of sending particle data to the renderer in OF is to have an instance of ofMesh or ofVboMesh and then call its member function draw(). However, I still want to be able to customize the data structure of my particle system. Would it be wise to just use my own container and then call mesh.addVertices() and mesh.addColors() and then draw those? I'm not good at optimizing code yet, but I have a feeling this would give a lot of overhead. Is there perhaps a way to have my custom container call ofGlProgrammableRenderer by itself? I don't want to have to code my own renderer...

Can anyone tell me what the best implementation is?

Many thanks!

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles