HoudiniEngineForUnreal-v2 icon indicating copy to clipboard operation
HoudiniEngineForUnreal-v2 copied to clipboard

Landscape output multiple SharedLandscape actors with StreamingProxy at World Partition of UE5EA

Open kelvincai522 opened this issue 4 years ago • 5 comments

Understanding UE5 is still in Early Access, and HE does not support UE5EA officially yet. I have tested outputting Landscape tiles with World Partition at UE5EA.

With unreal_landscape_tile_actor_type = 1 and no unreal_level_path set, it generate one SharedLandscape actor with one StreamingProxy.

ie. with 16x16 tiles, it generates 16x16 SharedLandscape actor and 16x16 StreamingProxy in total.

The behavior is different as it was in UE4 and it looks like it is broken in UE5EA with World Partition

kelvincai522 avatar Jun 10 '21 21:06 kelvincai522

I don't think this is just a world partition issue, Houdini Engine doesnt appear to be generating landscape streaming proxies at all in UE5, even with world partition turned off.

subTropic avatar Nov 08 '21 05:11 subTropic

@kelvincai522 Because of GetFName Is not represent the actor's label name in world partition, I just change it to GetActorLabel in FindActorInWorld function , then It works.

Here is the code in HoudiniEngineUtils.cpp. Hope it can help you.

	template<class T>
	static T* FindActorInWorld(UWorld* InWorld, FName ActorName, EActorIteratorFlags Flags = EActorIteratorFlags::AllActors)
	{
		T* OutActor = nullptr;
		for (TActorIterator<T> ActorIt(InWorld, T::StaticClass(), Flags); ActorIt; ++ActorIt)
		{
			OutActor = *ActorIt;
			if (!OutActor)
				continue;
			//UE5EA world partition workaround
			if (OutActor->GetActorLabel().Compare(ActorName.ToString()) == 0)
				return OutActor;
		}
		return nullptr;
	}

xiaodaiacg avatar Jan 27 '22 06:01 xiaodaiacg

Will this be implemented officially ? Any response from the devs ? landscapes are unusable w/ world partition at the moment

vsamusenko avatar Aug 13 '22 08:08 vsamusenko

Please, we need this. Landscape with Houdini in eu5 is broken.

yurivieira avatar Oct 04 '22 12:10 yurivieira