Konstantin Magnus

Konstantin Magnus

About Me

Expertise
Generalist
Location
Germany

Connect

Recent Forum Posts

how can one produce a hex grid in houdini ? Nov. 22, 2017, 7:27 p.m.

Hi Ryu,

Ryu Ku
You have four nodes for this (grid + attribute wrangle + attribute wrangle + null)?

No, just two wrangles (see attachment).

Ryu Ku
Using what in code you adjust spacing between hexagons?

Multiply the same value on height and width.

Curve From 2 Views Nov. 16, 2017, 5:57 p.m.

jacksprophet
I don't suppose there's a way to visualize the rays sent by intersect, sort like point trails?

Sure, intersect() returns the hit position, as well. Subtracting pos and the current point position @P right after it should show you the rays, eg:

vector pos;
vector uv;
intersect(1, @P, {0,0,1}, pos, uv);
v@ray = pos - @P;
//@P.y = primuv(1, "Cd", 0, uv);

It kind of overshoots when you turn the visualization button on, though. Dont know why.

Curve From 2 Views Nov. 15, 2017, 6:35 p.m.

You could transfer the height of your side view curve to colors and flatten it.
@Cd = @P.y;
@P.y = 0;

Then let your top view curve shoot rays on the flattened side curve asking for the color to use it as its new height.
vector pos;
vector uv;
intersect(1, @P, {0,0,1}, pos, uv);
@P.y = primuv(1, "Cd", 0, uv);