x


Dynamic Texture Tiling

What I'm trying to do is allow users to draw groups of objects as a single mesh. Like building walls in an RTS. Initially I tried to simply spawn a bunch of unit cubes but after awhile my FPS really started to drop.

What I thought I could do instead was to scale a single unit box along a single axis and then tile a texture along that axis to simulate having multiple cubes. The problem I'm having here is that while I can dynamically texture the object just fine I find that on the non-scaled axis the texture gets bunched up. The only other way I can think to do this is to define a "cube" class that uses planes as walls where I can specify texture tiling on a single wall.

Anyone have any suggestions?

more ▼

asked Aug 20 '10 at 02:51 PM

Jerdak gravatar image

Jerdak
166 8 9 13

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2210
x389
x238
x156
x47

asked: Aug 20 '10 at 02:51 PM

Seen: 2136 times

Last Updated: Aug 20 '10 at 02:51 PM