realbasic-games
[Top] [All Lists]

Re: UV settings

To: "REALbasic Games" <realbasic-games at lists dot realsoftware dot com>
Subject: Re: UV settings
From: joe at pyramiddesign dot us
Date: Sat, 22 Oct 2005 15:22:44 -0700 (PDT)
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <9abc90404cec20e07a6dc74205677e14 at pyramiddesign dot us> <a0620070ebf80298f19cf at [10 dot 0 dot 1 dot 4]>
> At 9:52 AM -0400 10/22/05, Joseph Nastasi wrote:

>>
>>   Trimesh.VertexUVs.SetUV(0,0,digitvalue * offset)
>>
>>where digit value is 0 through 9 and offset is the height of each
>>digit section in the texture image.
>>I see some change in color, but nothing recognizable.
>
> You're only setting the UV coordinate for the first vertex (index 0).
> You need to set it for all four vertices to get anything sensible out.

I was wondering about that. So I set all four UV listings to the same U,V
values? I would assume so.

>>2. Given a two triangle trimesh and one material added, am I correct
>>in assuming that there is only one entry in the UVList?
>
> Nope.  Your mesh has four vertices, so there are four UV coordinates to
> set.
>

Ok, that makes the relationship clear, except for the verification about
all four UV list entries using the same U,V parameters.

THanks
Joe

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>