redbox

redbox

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Vector Field Map Feb. 4, 2013, 11:05 a.m.

edward
Just looking at your forum post:
- You should use $NY I think instead of $NZ?
- Try renormalizing the result

eg.
$CR = ($NX*0.5+0.5) / sqrt($NX*NX+$NY*$NY)
$CG = ($NY*0.5+0.5) / sqrt($NX*NX+$NY*$NY)

No, I need NZ as CG, because flow vectors goes in XZ plane.

for NY, as CB I just return 0.

Vector Field Map Feb. 4, 2013, 4:48 a.m.

Hi! It's me again
For now, I really close to get vector field image.
my setup almost repeat Bronwen Grimes example
http://www.valvesoftware.com/publications/2011/gdc_2011_grimes_nonstandard_textures.pdf [valvesoftware.com]
from page 31

ok.
I already get all this stuff, and more, but I can't get one thing - visualization of flow map.
simply repeat page from doc
http://imageshack.us/a/img705/1323/gdc2011bronwengrimesnon.png [imageshack.us]

“The final result converts the x and y components of the vector field into color much the way we would store a normal map. (C.rg= N.xy* 0.5 + 0.5)”

as I can see, they use some AddAttrib node for that.
I can't understand how and why…

And, if I use Point node, and set
$CR = $NX*0.5+0.5
$CG = $NZ*0.5+0.5

I get this
[imageshack.us]

but I need something like this
[imageshack.us]

I get this map baking normals from final grid mesh using xNormal.

So…
I found this thread
http://forums.odforce.net/index.php?/topic/14573-converting-normals-to-tangent-space/ [forums.odforce.net]

Looks like I need to get tangent space normal map, but how?

Vector Field Map April 18, 2011, 8:38 a.m.

I already understand my mistake.
I use simple geometric grid and paint it's points normals by Comb operation.