From: Michael Logan (mlogan++at++mail.arc.nasa.gov)
Date: 09/08/2003 09:40:27
Thanks, forgot my texture indices.... worked great.
ml
Brian Furtaw wrote:
> To get your file to work I had to do the following, give it a try. Mtl
> file did not change.
>
> mtllib bay.mtl
> g default
>
> v -1 -1 0
> v 1 -1 0
> v 1 1 0
> v -1 1 0
> vt 0 0
> vt 1 0
> vt 1 1
> vt 0 1
> s off
> usemtl bay
> f 1/1 2/2 3/3 4/4
>
>
> Brian
>
> Michael Logan wrote:
>
>> Hi, I note that the shinycow.obj example works, but I can ONLY
>> get textures with REFL turned on to work.. ( "refl" keyword
>> in the .mtl file).
>>
>> This trivial case enclosed will display color/material changes,
>> but not the texture... add "refl" at the end of the .mtl file,
>> and it displays something.
>>
>> Any ideas as to how to get this working? Nothing obvious to me in
>> the pfobj.c loader...
>> thanks,
>>
>> ml
>>
>>
>> -------------cut poly.obj ----------------------
>> mtllib bay.mtl
>> usemtl bay
>>
>> v -1 -1 0
>> v 1 -1 0
>> v 1 1 0
>> v -1 1 0
>> vt 0 0
>> vt 1 0
>> vt 1 1
>> vt 0 1
>>
>> -------------cut bay.mtl ----------------------
>> newmtl bay
>> Ka 0.5 0.5 0.5
>> Kd 1 1 1
>> Ks 1 1 1
>> # pick any rgb file, they all fail
>> map_Kd /usr/share/Performer/data/iris.rgb
>>
>>
>>
>>
>
-- Michael Logan (650)-604-4494 QSS Group,Inc./NASA Ames Research Center Task Lead, Visual Cueing & Simulation Task Lead, Dynamic Aircraft Reconfiguration & Damage Adaptive Control MS 262-6,Moffett Field, CA, 94035 private: vonlogan++at++rcn.com, http://users.rcn.com/vonlogan/index.htm
This archive was generated by hypermail 2b29 : Mon Sep 08 2003 - 09:49:07 PDT