Public Group

Archived

This topic is now archived and is closed to further replies.

OpenGl drawing question

This topic is 5554 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Im starting to learn OpenGl finally and I dont understand why glVertex3f(1.0f, 1.0f, 0.0f); glVertex3f(-1.0f, 0.0f, 0.0f); glVertex3f(0.0f, -1.0f, 0.0f); glVertex3f(1.0f, 0.0f, 0.0f); that doesnt make a square...It makes some screwy shape, also when i tried to make a triangle in OpenGl it looked screwy as well??? Any help on how x, y, z axis work in this would be helpfull, because on paper that works Thanks Homepage Luck is a Horse to ride like any other...Luckily im not a gambler, I dont know how to ride. For any total noob out there Here is a like to my tutorials, thry them out

Share on other sites
Err? try plotting those points on a piece of graph paper, and then decide whether those numbers are really correct.

How appropriate. You fight like a cow.

Share on other sites
Not too familiar with openGL, but here''s the shape you described... definitely not a square...

|
| 1 (1,1,0)
|
(-1,0,0)| (1,0,0)
----2---+---4---
|
|
3 (0,-1,0)
|

Share on other sites
okay, my spaces obviously got deleted in my posting, but the point is that your coordinates don''t make a square... try

(1,1,0)
(1,-1,0)
(-1,-1,0)
(-1,1,0)

Share on other sites
:D yeah sorry, I guess i just proved what i said about just starting openGl, sorry for wasting your time

p.s Is there a free program i can use to draw these ahead of time, by just typing in the coordinace, so i can know weather im being an idiot or not? and if so where can i get it?

[edited by - betrayer_of_code on May 6, 2003 9:43:17 PM]

Share on other sites
I assume you could enter in coordinates in pretty much any vector drawing program... smartdraw has a free trial....

What I''d do, tho, is just grab a piece of graph paper and plot the points. print one out from http://www.mathematicshelpcentral.com/graph_paper.htm

How appropriate. You fight like a cow.

thanks

Share on other sites
Povray is a really good ray tracing program, but it can also be used to “test out” 3d coordinates.

[edited by - KiwiMelon on May 6, 2003 11:58:34 PM]

[edited by - KiwiMelon on May 6, 2003 11:59:56 PM]

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 22
• 11
• 11
• 9
• Forum Statistics

• Total Topics
631766
• Total Posts
3002218
×