Jump to content

Meshes or Props?


Recommended Posts

Hi,

let's say I have a two different roofs and to different types of walls, and I want to combine them with randomly. I could make 4 different meshes and export them as dae or I could make two roofs and add each possible wall type as props (or the other way round), having again 4 (but smaller) meshes. Is there one solution which is preferable? Should it depend on how to better use textures?

Secondly, is there a way to randomize inside a variant of an actor xml? So let's say each wall type should have 2 possible roofs, and on each roof there could be 2 different types of chimneys with two different types of smoke. Now I want to make every combination possible. I know I could make one variant after the other, but that would be an endless list since there so many possible combinations. And if possible, what would be the code?

Thanks in advance:)

Link to comment
Share on other sites

1 hour ago, nifa said:

let's say I have a two different roofs and to different types of walls, and I want to combine them with randomly. I could make 4 different meshes and export them as dae or I could make two roofs and add each possible wall type as props (or the other way round), having again 4 (but smaller) meshes. Is there one solution which is preferable? Should it depend on how to better use textures?

Ideally one set of textures for all the buildings. Spec Normal Diffuse. And one to four aos. If four aos make sure to reduce their size. If one it can probably fit in a 1024x1024 textures.

Props have the advantage that they can be switched dynamically through code, but they cost more drawcalls.

In the future drawcalls will be reduced drastically with  https://code.wildfiregames.com/D2938

but until then it's better to reserve props for things that adapt to terrain or change through code.

1 hour ago, nifa said:

Secondly, is there a way to randomize inside a variant of an actor xml? So let's say each wall type should have 2 possible roofs, and on each roof there could be 2 different types of chimneys with two different types of smoke. Now I want to make every combination possible. I know I could make one variant after the other, but that would be an endless list since there so many possible combinations. And if possible, what would be the code?

Only way I know is using many variants or props.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...