How to center heightfield crop shader around the camera?..

Started by alexsunny123, November 27, 2020, 07:58:01 AM

Previous topic - Next topic

alexsunny123

Hello,

I have a terrain made out of procedurals and at the end of the node list i have it converted in to a height field
that i plan to export as a LWO. I'd like to optimize how much geo gets exported so i tried to use the crop shader but i found
it difficult to guage the values that i need to type in to center the crop around the caemera position.

Is there a way to automatically center the heighfield crop shader around the camera?


thanks
alexsunny


Matt

If you're sampling a procedural terrain I think it's more optimal to set the area of the terrain you want to sample in the Heightfield Generate node, rather than generate a larger area and crop afterwards.

On the Heightfield Generate node's "Use shader" tab, choose "Position center", and copy the X and Z coordinates from your camera position.

https://planetside.co.uk/wiki/index.php?title=Heightfield_Generate_-_Use_Shader_Tab
Just because milk is white doesn't mean that clouds are made of milk.

alexsunny123

Quote from: alexsunny123 on November 27, 2020, 07:58:01 AMHello,

I have a terrain made out of procedurals and at the end of the node list i have it converted in to a height field
that i plan to export as a LWO. I'd like to optimize how much geo gets exported so i tried to use the crop shader but i found
it difficult to guage the values that https://topdatingwebsitesx.com/chatroulette
https://topdatingwebsitesx.com/omegle https://topdatingwebsitesx.com/bazoocam https://chatrandom.live i need to type in to center the crop around the caemera position.

Is there a way to automatically center the heighfield crop shader around the camera?


thanks
alexsunny

thanks my issue has been fixed.