Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Re: texture coordinates


Chronological Thread 
  • From: David E DeMarle < >
  • To:
  • Subject: [Manta] Re: Re: texture coordinates
  • Date: Wed, 10 Mar 2010 17:03:56 -0500

Answering my own question:
The reason was that my spheres do not have a texCoordMapper set.
My mistake was assuming that self the default, but NULL is.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Wed, Mar 10, 2010 at 4:56 PM, David E DeMarle
< >
 wrote:
> Thanks again Carson, I will probably end up going down that path soon.
>
> For the moment though, I am still trying to share the exact same
> appearance and colormap between all parts of an object, which includes
> a mesh of Wald triangles, a group of cylinders, and a group of spheres
> (to emulate GL_FILL, GL_LINE, and GL_POINT mode).
>
> One question I have is, why might WaldTriangle::computeTexCoords2 get
> called, but not Sphere::computeTexCoords2?
>
> Both objects share the same material.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
> On Tue, Mar 9, 2010 at 8:26 PM, Carson Brownlee 
> < >
>  wrote:
>> 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.

Top of page