I've had a lot of these problems myself too, when I started programming using opengl. You're not doing it right - if you want the cube to be at a line 45 degrees ("halfways" of x/y-axis at all times)...
Type: Posts; User: newsb
I've had a lot of these problems myself too, when I started programming using opengl. You're not doing it right - if you want the cube to be at a line 45 degrees ("halfways" of x/y-axis at all times)...
Thanks a lot for your help, Carmine. Just for the record, here's my python solution so other people can use if they like. If anyone modifies my original C-program to work with this, please post the...
Please write in english...
Oh, sorry... After many hours and after having read and thought about what you wrote, I realized that my way of getting the mat44-matrix is completely nonsense... I had it mixed up with something...
Ok, to help myself and some of you, I've tried to make a complete program in C which you can compile and run:
// gcc arrowTest.c -lglut -lGLU && ./a.out//-------------------------
#include...
What seems to be the problem with this rotation here (python-code) ?
I'm drawing an arrow from (x1,y1,z2) to (x2,y2,z2). Please see this and I hope you can explain what is going on...
def...
THANK YOU (for the hint about "viewing transform" so I could google that)... Regarding gluLookAt(), the only input argument I have a bit of trouble getting is the "eyeZ" ; similar to my "tz", I...
I loaded in a wavefront *.OBJ-file and made a routine that returns the bounding box / limits of the obj-file using min/max on all the vertices... My bounding box function returns 6 numbers:
-...
You can read all about it here:
www.google.com
Maybe it's because my transparent cylinders are so simple and I only have a tiny overlap. My 3 cylinders don't overlap very much and only for a short time... At least I cannot see any problems and...
Uh, this time it's me that has to be sorry for the long waiting time before I reply back. I checked for an answer but suddely I got called in to a lot of work-related meetings and stuff to do after...
Did you try to load your obj and mtl file into another program, which you trust and believe works correctly? Does it work? If it works, then your code is wrong. And if it's wrong, why don't you post...
Uh, sorry - you're completely right - thank you for making me remember that. If I could edit the original post, I would do it now - however, seems like I can only "edit post" on my last reply (or is...
Nobody knows?
Maybe someone can help me (lead me in the right direction) by telling how to get a background color like this: http://tinyurl.com/9h55qy6
I tried google, but couldn't find the...
See this movie: http://www.2shared.com/video/RwpFidKX/transp_cylinder.html?
And this code:
---------------------
# glPush + some translation + rotation....
# Enable blending /...
void main{
startGame();
}
And you're done!
This guy is correct... You have:
A = [ x1 x2 x3
y1 y2 y3
z1 z2 z3 ]
DONE !
hmm. Maybe it's my own mistake. Explaining a bit better, what I do (very simplified, removed a lot for simplicity):
glutDisplayFunc(display)
def display():
Thanks a lot for a good answer. I gave up and thought nobody could help - still, my problem is unsolved.
About why using doubles vs. floats: Not 100% sure, but here it says that double is better...
Oh, damn... I'm sorry, I was too fast because actually A44 = Anew. Besides that, I just inserted " glMatrixMode(GL_MODELVIEW) " just before
glLoadMatrixd(Anew) and still nothing happens...
My...
Consider this pseudo-code (partly from python, you'll get the idea, I think):
A44 = matrix([\
[ 0.96126169, 0., 0.27563736, 0],\
[ 0.07597595, 0.96126169, ...
ARRGH!
Thanks a lot, both of you! You're both right... Ofcourse it was a really stupid copy/paste error I made, I had to remove a lot of comments so my mind was focused on removing comments...
Sorry, but I must know the answer to this and tried to google alot, without finding the exact answer...
Q: Why does this work?
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
...
Nike: Just do it!
But I don't know how many degrees to rotate in each of the directions..........?
I have float(x), float(y), float(z) - how to rotate the (is it modelview???) so z-axis is coincident with (x,y,z) ?...