algorithmic modeling for Rhino
I am trying to run a ray tracing off a geometry that has reflective ( a mirror base - red) and non reflective parts (opaque sticks - black) as in the photo. I tried assigning honeybee materials to them but the component still seems to be reflecting the rays off all of the surfaces.
Is there another component i could use to get the visualization of the ray lines?
Ladybug components calculate raytracing based on geometrical calculations and doesn't consider materials. If I understand what you're trying to achieve correctly you should use bounce from surfaces component and connect the black surfaces to context.
so i tried the component you suggested, it still gives me some pretty wierd results, whether i use the HBsurface component with it or not. I am attaching the gh file if you could please have a look at it
here is the file
What is the end goal here? The way rays will behave after hitting an object is essentially a function of surface properties of the materials and the spectral composition of the source radiation. As Mostapha mentioned, Ladybug raytracing is based on geometric calculations.
So, any raytracing results that you are achieving are likely to only be compatible with a very small subset of materials that we find in Construction. Lambertian surfaces, that are far more common in real world, tend to scatter light diffusely instead of casting sharp rays.
I understand that the Raytracing component is geometrical and just calculates the ray based on incidence angle = reflection angle rule. And that's why Mostapha suggested using the Bounce components since i am able to differentiate which is the reflective specular surface and which is the opaque surface that i do not want to reflect the light ray. However that does not seem to work. My end goal is visualizing which rays (at different times) are going to be reflected by the mirror surface, and which are going to be blocked from reaching the mirror thanks to the opaque sticks.
That doesnt seem to happen, all rays look like they are reflected and a wierd wiggle happens where the ray is broken but it doesnt touch any of the surfaces. please check my attachements in the previous reply
(and yes i understand that in reality there are no sharp rays and that this is just a geometric modelisation of a physical reality....but that is not the point here)
Thank you for your time
I opened the file and have to say that don't understand the model (geometry). What are the units? I work in meters and the model is extremely small. Also the point are located somewhere in the space, away from the geometry. The context is just a plane.
In short, hard to help here ...
my bad if i stripped down the geometry to the necessary minimum, so not to upload GBs of useless geometry. In short, the plane is a floor which i am interested to see the light ray hit after bouncing off the reflector geometry. And no the context is not ONLY the plan, but also the sticks that are masking the reflective surface. Working in meters is fine
The problem appears when you zoom in o the reflector geometry, the rays behave really weird (as in the photo), and bounce off also the opaque sticks even though they are specified as opaque material.
The bounce component doesn't take into account the material definition. As Mostapha said, LB doesn't count for materials properties. Your input oh HB materials is useless for that matter (you can disconnect them). The component shows, i will say, the "potential" of reflecting vectors (sun rays in this case).
If you want me (or others) to take a look at the example, please upload again with the right size.