GhGL Discussion

Great! I really wish that it in the future it can be fully utilized by both shader maniacs and also by less experienced “regular” GH users. I already tested some files posted here and there.
You really drawed my attention,
I wish you the best implementing it.

@stevebaer

Is there any way to output the Light Direction and/or RGBA values back into grasshopper? I’m interested in using the values (in camera & world coordinate space) to inform geometry downstream that can then be used to output 3D Geo or 2D vectors.

1 Like

That is what I’m hoping too. My plan if to build a library of pre-canned preview components that you can just use.

I could output a bitmap representing the color buffer and the depth buffer for downstream processing in GH. Would that work?

After seeing some videos about shader creating I must admit that it looks fantastic.
Thanks @jho for awesome videos on youtube.

I got (maybe silly) question. Is it possible, that custom shader creation would be done solely from nodes? I am talking about some sort of GH plugin (with let’s say 20 components). Or it is impossible to translate that coding language into nodes?

EDIT:
Oh, @stevebaer, you just aswered this question a second ago, I guess.

1 Like

Yes that would work because then we could feed the bitmap through the image sampler to attain numerical values. However, that leads me to the question: would the Bitmap be ‘live’ and/or parametric?

Honestly, I am lacking complete comprehension of GLSL / OpenGL to understand if a live output of screen color/shade values is easily attainable.

I’m not sure how this would work either. It seems like we would need to specify a single viewport for the image to be generated from as currently GhGL previews in all viewports.

Any plans for Mac ?

GhGL should work on Mac.

Hi @stevebaer is available in WIP 7 ?

You need to run PackageManager in WIP 7 and install the component from there

Cool thank you. I’ve seen it on GitHub starting video.
Haven’t install WIP 7 yet. Will do it now.

Thank you

Hi,
So is it possible for GHGL to have the same effect as OPENCSG ?

I’m not sure if the current implementation of GhGL would support these effects. We would probably need to support stencil buffers and allow for different stencil buffer operations.

Thank you for your reply.In my work, the model needs constant modification, so this effect is very necessary. If the model is modified after multiple Boolean operations, it will be very difficult.So if possible, I hope Rhino will be able to do something about it. :grinning:
Or if you know how to use Rhino’s API to achieve this effect, please tell me, I will try to implement it myself. :grinning:

Are these effects bakeable?

No; the output from these components are images, not geometry

Does the GL shader allow transparency similar to normal grasshopper preview?

yes; this involves drawing objects with alpha in the colors

Does this have support for backbuffers? And can we read the pixels back to the CPU?

Not currently. I do convert framebuffer objects to textures that can be used by other GhGL components.

This is an ooen source project so if you have an idea on how to impress it by all means please help.

1 Like