Search found 1052 matches

by Ginto8
Tue Jan 17, 2012 9:07 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

My Xchat trial expired. And? I wasn't giving you the "shareware" xchat, I was giving you a link to the linux xchat project (completely free to use, "free" as in both free beer and free market) compiled for windows, which has no expiration date. Its informal names are xchat2 and ...
by Ginto8
Tue Jan 17, 2012 5:51 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

I've never taken an official class on programming. And I have yet to take a programming class that really teaches me things that I haven't already taught myself. There's so much information out there, why wait for someone to organize it into a curriculum and spoon-feed it to you? That said, formal ...
by Ginto8
Tue Jan 17, 2012 4:28 pm
Forum: Current Events and Science/Technology
Topic: Wikipedia Blackout: Donate $1
Replies: 11
Views: 6498

Re: Wikipedia Blackout: Donate $1

If you'd like to add this forum to the protest, http://sopastrike.com/#how-to-strike gives a good description of what needs to happen. EDIT: there's a list of companies protesting at http://sopastrike.com/. Google won't be blacking out, but will be putting a link on its homepage. minecraft.net is li...
by Ginto8
Mon Jan 16, 2012 7:32 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

szdarkhack answered your question, even if you didn't realize it. OpenGL's coordinate system is not quite the same as how you'd think of a camera's coordinate system; with a camera, a higher z means it's farther away. But in OpenGL it's actually quite the opposite: the higher the z value, the closer...
by Ginto8
Mon Jan 16, 2012 7:26 pm
Forum: Current Events and Science/Technology
Topic: Wikipedia Blackout: Donate $1
Replies: 11
Views: 6498

Re: Wikipedia Blackout: Donate $1

Gentlemen, it is official.
Image
On January 18th, shit gets real and word gets out.
by Ginto8
Mon Jan 16, 2012 12:41 pm
Forum: Current Events and Science/Technology
Topic: SOPA derailed
Replies: 10
Views: 5937

SOPA derailed

http://www.zdnet.com/blog/networking/sopa-derailed/1897

But this isn't the end. The Internet remains in danger until PROTECT IP is stopped as well.
by Ginto8
Mon Jan 16, 2012 12:08 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

Well it's gotten to the point that the only way I can help you is to have the whole program. I can't see anything majorly wrong with what's been posted, as long as you fixed what I pointed out.
by Ginto8
Sun Jan 15, 2012 8:31 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

Well, I see a couple things: a) glClearColor should be after glutCreateWindow(), because until the window is created, you have no clue if there's a valid context to use. b) glOrtho should not be there. Using orthographic and perspective projection at the same time will not behave like you think it d...
by Ginto8
Sun Jan 15, 2012 7:43 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

Post the code where you set up your projection matrix, because that seems to be the issue. You shouldn't be using both glFrustrum and gluPerspective, and it seems weird to me that calling gluPerspective with a fov angle of 0 would even work, although if you are calling both it might just be that it ...
by Ginto8
Sat Jan 14, 2012 12:11 am
Forum: Current Events and Science/Technology
Topic: Wikipedia Blackout: Donate $1
Replies: 11
Views: 6498

Wikipedia Blackout: Donate $1

Everyone here should know about SOPA and PROTECT IP (if not, google it and you'll find plenty, and none of it good); but we only know about it because we keep up with tech news. The majority of people do not even know they exist . Major news outlets have either said jack shit about them, or barely m...
by Ginto8
Fri Jan 13, 2012 11:23 pm
Forum: Programming Discussion
Topic: Perspective
Replies: 33
Views: 4577

Re: Perspective

glFrustrum, and perspective in general, have a tendency to be bitches. Between the two, however, I would recommend using gluPerspective over glFrustrum because it makes at least setting up the perspective less of a pain in the ass. Also, always post relevant code if possible. We are programmers, not...
by Ginto8
Fri Jan 13, 2012 9:15 am
Forum: Programming Discussion
Topic: Again with OpenGL
Replies: 38
Views: 4998

Re: Again with OpenGL

When you say rendering, what do you mean? What functions render? The stuff between glBegin/glEnd counts as rendering. But what you're seeing might not indicate that it isn't rotating, but rather that it rotates so little that it doesn't matter. glRotate(r,x,y,z) rotates r DEGREES around the (x,y,z)...
by Ginto8
Thu Jan 12, 2012 6:35 pm
Forum: Programming Discussion
Topic: Again with OpenGL
Replies: 38
Views: 4998

Re: Again with OpenGL

ok, looking at your code, I see, generally, this: [init stuff] [push] [draw] [transform] [flush to screen] [pop] [push] [draw] [flush] [pop] The first issue is that flushing and buffer-swapping should both happen after ALL of your rendering is done, not halfway through. There might be a few weird si...
by Ginto8
Wed Jan 11, 2012 6:09 pm
Forum: Programming Discussion
Topic: Again with OpenGL
Replies: 38
Views: 4998

Re: Again with OpenGL

Why don't you post the code? Since you say it "doesn't do anything", I'm assuming that you popped the matrix again before actually using the rotation for rendering, but I can't be sure without code.
by Ginto8
Tue Jan 10, 2012 10:38 pm
Forum: Programming Discussion
Topic: Again with OpenGL
Replies: 38
Views: 4998

Re: Again with OpenGL

Here's the general formula for working with transformations and the matrix stack: [general transformations] [render scene based on general transforms] [push] [scene 1 transformations] [scene 1 rendering] [pop] [push] [scene 2 transformations] [scene 2 rendering] [pop] [render second scene based on g...