Hello, guys.
Looking for a C++ UE4 programmer who would help us through writing some code that would place static meshes around the level according to predetermined coordinates. We are a team of enthusiasts that wants to transfer an old game from UE2 to UE4, we take care of models, textures, animations, UI etc. but we need a C++ programmer's help every now and then when we face a specific task and now's the time.
The task right now: place thousands of FBX files with static meshes across the UE4 level at given coordinates, rotation and scale from a JSON file.
The JSON file's content looks like this:
{"staticMeshes":[{"staticMesh":"Door_Set_S.ELF_Door_Set.Elf_Door_01","actorClass":"Engine.StaticMeshActor","x":-2598.3398,"y":-1933.0273,"z":-2963.0,"yaw":53248,"pitch":0,"roll":0}]}
It means we should:
- move a FBX file to this directory (and create it before moving): .../staticmeshes/Door_Set_S/ELF_Door_Set/Elf_Door_01.fbx
- then import the FBX into UE4 via C++
- place it at the given location x: -2598.339, y: -1933.0273, z: -2963.0
- give it the rotations of yaw: 53248, pitch 0, roll: 0 (but before that in order to meet UE4 coordinate system every parameter here should be multiplyied by 360 and divided by 65536, so in this example the yaw will result in 292,5 degrees.
- apply the material with textures to every static mesh
It's tedious to do all that manually because we have thousands of static meshes to go through. So we need a programmer who would write some code to do this automatically.
Thanks in advance!