Hi again,
So... using the coordinates below, if I use GL_POLYGON, half of the
shape will be star shaped, while the other half just runs neatly
together, like half a box. However, using GL_LINE_LOOP will draw the
star shape. I can only assume that I am "differently abled" when it
comes to understanding what OpenGL expects of me here.
So, coordinates:
glVertex3f(0.0, 2.0, 0.0)
glVertex3f(0.5, 0.5, 0.0)
glVertex3f(2.0, 0.0, 0.0)
glVertex3f(0.5, -0.5, 0.0)
glVertex3f(0.0, -2.0, 0.0)
glVertex3f(-0.5, -0.5, 0.0)
glVertex3f(-2.0, 0.0, 0.0)
glVertex3f(-0.5, 0.5, 0.0)
glVertex3f(0.0, 2.0, 0.0)
Anyone see what I'm doing wrong? I tried a couple other shapes with
similar results.
I want to also take this opportunity to thank Asher for this OpenGL
library, I really appreciate the existence of such a thing.
Thanks,
Fargo
_______________________________________________
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 Wed 27 Sep 2006 11:48:52 -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 480D9C81E66; Wed, 27 Sep 2006 10:49:04 -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.7 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 9E9DAC81E5F;
Wed, 27 Sep 2006 10:49:01 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 74619152CE2D; Wed, 27 Sep 2006 12:48:55 -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 43B5C152CE1F
for <realbasic-games at lists dot realsoftware dot com>;
Wed, 27 Sep 2006 12:48:52 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
by mail.verex.com (Postfix) with SMTP id F1F2B653FAA
for <realbasic-games at lists dot realsoftware dot com>;
Wed, 27 Sep 2006 11:48:51 -0600 (MDT)
Date: Wed, 27 Sep 2006 11:48:52 -0600
From: joe at strout dot net
To: realbasic-games at lists dot realsoftware dot com
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060927174851 dot F1F2B653FAA at mail dot verex dot com>
Subject: 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
For those of you not also on the NUG, I just posted a message there
pointing out a demo of dynamic shadows
(http://www.strout.net/files/rb/shadows-demo.zip).
It also serves as a pretty good example of using the Trimesh and
Material classes. The floor, for example, is a big checkered square,
and created entirely in code; there is no model for it. I could have
done that with AddShapePicture, but it would have needed an enormous
texture -- this one gets away with a dinky 32x32 texture, and simply
repeats it by setting its UV values very large.
Anyway, check it out, and if you have any questions, let's discuss.
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>
|