Text archives Help
- From: Carson Brownlee <
>
- To:
- Subject: [Manta] Re: texture coordinates
- Date: Tue, 09 Mar 2010 18:26:44 -0700
hi David,
I think what you might want is something like ValueColorMap and create
your primitives as valueprimitives. If you're talking about millions of
spheres you might want to look into scenes/csafe to see what I did for
that problem to avoid data duplication.
Carson
On Tue, 2010-03-09 at 17:32 -0500, David E DeMarle wrote:
>
Is there a convenient way to control the texture coordinates returned
>
for intersections with spheres and cylinders?
>
>
Specifically what I want is to have one shared texture map for a group
>
of objects, the texture map holds the color lookup table, and have all
>
ray intersections on any particular sphere return the same (1D)
>
texture coordinate into that table.
>
>
I am thinking I have to subclass and create my own sphere and cylinder
>
primitives, or possibly create a constant TexCoordMapper class to do
>
it now.
>
>
thanks,
>
>
David E DeMarle
>
Kitware, Inc.
>
R&D Engineer
>
28 Corporate Drive
>
Clifton Park, NY 12065-8662
>
Phone: 518-371-3971 x109
Archive powered by MHonArc 2.6.16.