<http://www.strout.net/files/shadows-demo.zip>
I posted this on the NUG but maybe it didn't get seen (and this is
probably a better venue anyway):
1) As far as I can tell, Y = 0 for both shadow and ground triangles. How do you
make sure the shadow is rendered above the ground?
2) In UpdateShadow, what is the purpose of 0.01 in the following:
if uvs <> nil then
uvs.U(i) = newx * 0.01
uvs.V(i) = newz * 0.01
end if
lj
_______________________________________________
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>
From Fri 29 Sep 2006 16:21:06 -0600
Return-Path: <realbasic-games-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id 23227CA68BF; Fri, 29 Sep 2006 15:21:22 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on realxserve.local
X-Spam-Level:
X-Spam-Status: No, score=-0.6 required=4.5 tests=AWL,NO_REAL_NAME
autolearn=disabled version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
by xmail.realsoftware.com (Postfix) with ESMTP id 49D0FCA68B8;
Fri, 29 Sep 2006 15:21:21 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 0C79D153CE34; Fri, 29 Sep 2006 17:21:12 -0500 (CDT)
X-Original-To: realbasic-games at lists dot realsoftware dot com
Delivered-To: realbasic-games at lists dot realsoftware dot com
Received: from mail.verex.com (unknown [66.116.103.197])
by lists.realsoftware.com (Postfix) with ESMTP id 1DCE2153CE27
for <realbasic-games at lists dot realsoftware dot com>;
Fri, 29 Sep 2006 17:21:07 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
by mail.verex.com (Postfix) with SMTP id 9D2C565594E
for <realbasic-games at lists dot realsoftware dot com>;
Fri, 29 Sep 2006 16:21:06 -0600 (MDT)
Date: Fri, 29 Sep 2006 16:21:06 -0600
From: joe at strout dot net
To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
In-Reply-To: <33cbfa100609291507y2128b0c4hd42d01c263889e66 at mail dot gmail dot
com>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060929222106 dot 9D2C565594E at mail dot verex dot com>
Subject: Re: shadows demo
X-BeenThere: realbasic-games at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Sender: realbasic-games-bounces at lists dot realsoftware dot com
Errors-To: realbasic-games-bounces at lists dot realsoftware dot com
On Sep 29, 2006, at 22:07 UTC, Lars Jensen wrote:
1) As far as I can tell, Y = 0 for both shadow and ground triangles.
How do you
make sure the shadow is rendered above the ground?
Nope, for shadows Y = 1 or something like that. Look at MakeShadow,
IIRC, or maybe it's the code that calls it (in the Open event).
2) In UpdateShadow, what is the purpose of 0.01 in the following:
if uvs <> nil then
uvs.U(i) = newx * 0.01
uvs.V(i) = newz * 0.01
end if
Compare it to MakeFloor. I simply decided that the UV values for the
floor texture is going to be 0.01 times the X and Z values. This gets
me one copy of the texture for every 100x100-unit patch of floor. It's
completely arbitrary, and just chosen to make the texture look nice.
The important thing is that we do computation here, in UpdateShadow,
that matches how the floor was mapped in MakeFloor.
Cheers,
- Joe
--
Joe Strout -- joe at strout dot net
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/
_______________________________________________
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>
|