Planetside Software Forums

General => Terragen Discussion => Topic started by: alexsunny123 on November 27, 2020, 07:58:01 AM

Title: How to center heightfield crop shader around the camera?..
Post by: alexsunny123 on November 27, 2020, 07:58:01 AM
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
Title: Re: How to center heightfield crop shader around the camera?..
Post by: WAS on November 27, 2020, 10:12:35 AM
Take a look at this post asked by Kevin about a decade ago: https://planetside.co.uk/forums/index.php/topic,12454.0.html
Title: Re: How to center heightfield crop shader around the camera?..
Post by: Matt on November 27, 2020, 10:12:09 PM
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
Title: Re: How to center heightfield crop shader around the camera?..
Post by: alexsunny123 on December 15, 2020, 09:21:26 AM
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.