ywei

ywei

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Possible to use RE_Geometry with existing VBOs July 8, 2013, 1:22 p.m.

How do I get the current wireframe color for drawing from Houdini?

Possible to use RE_Geometry with existing VBOs June 14, 2013, 1:03 p.m.

twod
There currently isn't a way to attach a GL VBO, mostly because we didn't need such a thing. It might be possible to add. How did you load the data into a VBO, through another library?

Yes, we have another library that reads the data from disk, sends everything to the VBO and draws. So it seems like a waste if we have to do all the code from scratch just to repack the geometry in another format for drawing.

twod
And yes, RE_Geometry binds all Houdini builtin uniforms that your shader uses when draw…() is called. It does all the bookkeeping to ensure the GL state and current shader are properly set up.

So what would be the best solution in this case, is there anything drawbacks to calling gl functions directly?

Possible to use RE_Geometry with existing VBOs June 13, 2013, 9:49 p.m.

In the SOP_Tetra example, the geometry is drawn by first assigning the geometry information to RE_Geometry and then call draw() on that object.

We already have the geometry in the memory in some other format, and draws from Vertex Buffer Object, is it possible to pass just the GL raw ids to the RE_Geometry and ask it to draw in the same way? If so, can anyone give a little pseudo code as an example? I would like to avoid directly using any gl functions if possible.

Also, it seems if using RE_Geometry there's no need to set values for the build-in uniform variables in the shader such as glH_ProjectMatrix, etc. Is it true or is it my luck?

Thank,