Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Spread one texture acrosse two prims?

Douglas Douglas
Registered User
Join date: 13 Dec 2006
Posts: 29
04-27-2007 13:53
Quick question. I want to attach a single texture to two (2) abutting rectangular prims. Think billboard. Can someone please enlighten me? Thanks.

Cheers,
Doug
Jacques Groshomme
Registered User
Join date: 16 Mar 2005
Posts: 355
04-27-2007 13:55
From: Douglas Douglas
Quick question. I want to attach a single texture to two (2) abutting rectangular prims. Think billboard. Can someone please enlighten me? Thanks.

Cheers,
Doug




Set the horizontal repeats-per-face to half of what is required to show it completely on one prim. Then adjust the offsets until the first prim shows the first half of the texture and the second prim shows the second half of the texture.
Douglas Douglas
Registered User
Join date: 13 Dec 2006
Posts: 29
04-27-2007 15:03
Thanks Jacques,

I'm thinking of writing a little tiling program to wallpaper grids of rectangles with appropriately scaled and offset texture swatches. Does anyone know the relevant function calls to set/get uv coords? Thanks.

-Doug
Jacques Groshomme
Registered User
Join date: 16 Mar 2005
Posts: 355
04-27-2007 15:59
llGetPrimitiveParams
llSetPrimitiveParams

The latter combines functions of the individual llSetTexture, llScaleTexture, llOffsetTexture, llRotateTexture functions