HoudiniEngineForUnreal icon indicating copy to clipboard operation
HoudiniEngineForUnreal copied to clipboard

Landscape sizes

Open alexgeek opened this issue 5 years ago • 2 comments

Hi there,

I'm not fond of the behaviour that the plugin tries to guess the desired landscape size configuration.

I'm in the process of adding two attributes 'unreal_landscape_sections_per_component' and 'unreal_landscape_quads_per_section' that will be used instead of guessing.

I did notice on this line that the section sizes are listed as 7, 15, 31, 63, 127 and 255. Based on the UE4 docs shouldn't that final value be 254 not 255?

Also would the change be welcomed in a pull request?

alexgeek avatar Aug 17 '20 12:08 alexgeek

Hi,

Adding those two attributes is actually something I've considered for a while, but since nobody asked for it / complained about the current behavior, never actually added. PR are always welcome.

The sections size array is correct, as it is for the number of quads per sections, not the size in points of the sections themselves. That code is actually coming straight up from UE, see FNewLandscapeUtils::ChooseBestComponentSizeForImport(...)

dpernuit avatar Aug 17 '20 13:08 dpernuit

Oh yes it is right. I've implemented this but realised I just copied it from program files, will submit a pull request when I switch it over to use the git repository.

alexgeek avatar Aug 17 '20 17:08 alexgeek

@dpernuit saw you closed the pull request 4 years later 😅. Closing the ticket too.

alexgeek avatar Apr 17 '24 22:04 alexgeek