Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

st vs uv space

126 views
Skip to first unread message

Marcin Tustin

unread,
Jul 31, 2000, 3:00:00 AM7/31/00
to

Probably another stupid question, but what is the
difference between the uv texture space, and the st surface space
(in the context of shaders, obviously)? The specification doesn't
seem to say.

--
Humanity will not be happy until the day when the
last bureaucrat has been hanged with the guts of
the last capitalist.

Marcin Tustin
PGP Key at http://www.anarchist99.freeserve.co.uk/marcintustin.txt
Mar...@mindless.REMOVEGOATS&OATS.com
Marcint@^^refreshmagazine.com.nomail <-- Do not use at this time

KeyID 0x86D72550
Fingerprint DDD9 FB07 4C2F 9A79 C860 C391 D672 364C 86D7 2550

Doug Epps

unread,
Jul 31, 2000, 3:00:00 AM7/31/00
to
Marcin Tustin wrote:
>
> Probably another stupid question, but what is the
> difference between the uv texture space, and the st surface space
> (in the context of shaders, obviously)? The specification doesn't
> seem to say.


often times they are the same. (u==s, v==t)

I don't know where else in the spec it is, but in the new (3.2) spec
Table 12.1 lists all the variables predefined in a surface shader and
says:

u,v 'Surface Parameters'
s,t 'Surface Texture Parameters'


so u,v are the 'natural' surface parameters that we all know and love
from patches and NURBS.

s,t are the texture parameters.

most of the time these are the same, unless there is a
RiTextureCoordinates call somewhere that changes them.

RiTextureCoordinates lets you map each 'corner' of surface parameters to
somewhere else in texture space.

Alex Magidow

unread,
Aug 1, 2000, 3:00:00 AM8/1/00
to
What does thte RiTextureCoordinate call produce in the RIB file, might I
enquire? I've been driven ever so slightly batty trying to figure this out.

Doug Epps wrote:

--
" [T]here seems to be nothing to prevent the transnational corporations
taking possession of the planet and subjecting humanity to the dictatorship
of capital.... In order to crush any thought of organized resistance to the
supporters of the new world order, tremendous police and military forces are
being used to establish a doctrine of repression...."
- Christian la Brie, Le Monde Diplomatique (Paris)

Doug Epps

unread,
Aug 1, 2000, 3:00:00 AM8/1/00
to
Alex Magidow wrote:
>
> What does thte RiTextureCoordinate call produce in the RIB file, might I
> enquire? I've been driven ever so slightly batty trying to figure this out.
>

the c-call
RiTextureCoordinates (0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0);
would end up being
TextureCoordinates [0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0]

and those numbers should be the 'default' (ie map the unit square to the
unit square).

It's an Attribute, so it gets pushed/popped with the graphics state.

all in the spec, pg 42 (pdf page 54).
http://www.pixar.com/products/rendermandocs/toolkit/Toolkit/index.html

Kevin Bjorke

unread,
Aug 2, 2000, 3:00:00 AM8/2/00
to
Exactly what is the type of "st"?

I've often been confused by it

"varying float[2]" ??

I ask because it's so often useful to declares multiple ranks of st
parameters, and they inevitably get either written into vectors with a
throwaway third term or pairs of single floats. "st" seems to live in
its own world.

kb

Doug Epps

unread,
Aug 2, 2000, 3:00:00 AM8/2/00
to


that should be exactly what it is.
you can also get s/t data onto a primitive by doing 's' and 't'
seperately.

0 new messages