Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Textures do not scale with prim!

Ryder Spearmann
Early Adopter
Join date: 1 May 2006
Posts: 216
09-08-2007 18:33
Hi all,

I am seeing a very odd behavior... at least it seems odd to me.

When I use llSetScale or llSetPrimitiveParams to scale a box on one axis, the texture INSIDE (the hollow face) does NOT scale right (as it does when using the editor).

The funny thing is, another user was complaining about the opposite happening, where he was seeing the texture stretch, but did not want that to be happening!

I wish I had his problem.

It is a bit frustrating that somethign so easy to do with the editor, is not possible (apparently) with code...

Any suggestions about what to do about this?

Recap: To stretch an object along one axis, with it's textures stretching too.

Edit: It seems to matter wether the texture is in planar or default. Default will scale fine automatically, but planer maps will not scale. This seems really bogus, as the editor does not make this distinction, stretching textures when asked. But this is still frustrating because I happen to need planar mapping.... and to have it scale. Grrr.




Ryder
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
09-08-2007 20:26
Yes this is an odd one. If you are using SetPrimParams you will have to do some simple calculations and set the texture at the same time.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
09-10-2007 00:54
Planar mode defines texture dimension in repeats per meter.
Normal mode defines texture dimension in repeats per face.

Take that into account.