realbasic-games
[Top] [All Lists]

Re: UV settings

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: UV settings
From: William Shank <trochoid at gmail dot com>
Date: Mon, 24 Oct 2005 23:13:11 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rBW71595ZbAF9QP/4ajhsUWnbygdYRnYg1ESZopDu3+wuJ4oheypyXGNpnRQS175nEgJ5ivV3xW6GJvTwLUdIMJ7y3wnuSsIURQUItbao9vkQea3GfAhzzdTELhpRd2ZLUZYKNhup9d5D+rqdD0mvLBRSP1RnWv3GKRGcKyI6ng=
References: <9abc90404cec20e07a6dc74205677e14 at pyramiddesign dot us>
> I wanted to index into this texture using UV coordinates.

I did the same thing about a month ago but didn't index into a texture.

Instead I have 11 premade AttributeSet3Ds (I'm using Quesa Wrappers in
5.5), they are textures of 0-9 and a negative sign. My 'Digits' object
takes an integer and creates a two triangle quad for each character.
All the quads have the same UV, you know, just 0.0s and 1.0s to map it
on square. For each quad I assign the appropriate AttributeSet3D to
get that integer. [the 'Digits' object is a Group3D with an array of
TriMeshes as the quads]

I'm wondering if one way is more efficient than the other? I assumed
assigning an AttributeSet would basically just be a pointer change;
but I don't know, maybe there's lots of overhead and it'd be better to
set UV values and not change the texture.
-William
_______________________________________________
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>