Quantcast
Channel: Latest Questions by Macdude2
Viewing all articles
Browse latest Browse all 38

create a building with the same texture

$
0
0

Alright, so I am trying to build a building that has walls of different lengths and heights. However, I would like all of these walls to have the same texture on all of them. But, when I apply the texture it stretches the texture and the texture does not get tiled. To solve this, I have adjusted the tiling in the texture inspector. But now for each new wall shape, I have to create a new material to get the tiling done right.

I know this is intensive on the processor and my goal is to publish my game to the iphone. How would I get the texture to automatically tile itself on any surface? (I do have the wrap mode set to repeat).

In addition, for the building I am making, I am using the primitive cube meshes and colliders scaled to the size I want them to make the walls. At some points in my game there are about 120 draw calls and 11k vertices. Would it be better to use a plane for each individual wall instead of a cube?

Thanks a lot for any help.


Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>