# Search:

Type: Posts; User: newsb

Page 1 of 4 1

1. ## Thread: A simple Rotation problem

by newsb
Replies
10
Views
4,879

### I've had a lot of these problems myself too, when...

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)...
2. ## Thread: drawing an arrow: A line + a cone (problems with the cone, rotation!)

by newsb
Replies
7
Views
11,002

### Thanks a lot for your help, Carmine. Just for the...

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...
3. ## Thread: drawing an arrow: A line + a cone (problems with the cone, rotation!)

by newsb
Replies
7
Views
11,002

### Please write in english...

Please write in english...
4. ## Thread: drawing an arrow: A line + a cone (problems with the cone, rotation!)

by newsb
Replies
7
Views
11,002

### Oh, sorry... After many hours and after having...

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...
5. ## Thread: drawing an arrow: A line + a cone (problems with the cone, rotation!)

by newsb
Replies
7
Views
11,002

### Ok, to help myself and some of you, I've tried to...

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...
6. ## Thread: drawing an arrow: A line + a cone (problems with the cone, rotation!)

by newsb
Replies
7
Views
11,002

### drawing an arrow: A line + a cone (problems with the cone, rotation!)

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...
7. ## Thread: need to position viewpoint (z-position) nicely in front of *.OBJ-object...

by newsb
Replies
2
Views
1,663

### THANK YOU (for the hint about "viewing transform"...

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...
8. ## Thread: need to position viewpoint (z-position) nicely in front of *.OBJ-object...

by newsb
Replies
2
Views
1,663

### need to position viewpoint (z-position) nicely in front of *.OBJ-object...

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:
-...
9. ## Thread: Dear friends - master computer engineering student need help:sorrow:

by newsb
Replies
3
Views
1,537

You can read all about it here:

10. ## Thread: rotating TRANSPARENT cylinder - looks weird

by newsb
Replies
7
Views
4,858

### Maybe it's because my transparent cylinders are...

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...
11. ## Thread: rotating TRANSPARENT cylinder - looks weird

by newsb
Replies
7
Views
4,858

### Uh, this time it's me that has to be sorry for...

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...
12. ## Thread: Problem importing .obj / .mtl (exported using blender) into my OpenGL view

by newsb
Replies
3
Views
5,389

### Did you try to load your obj and mtl file into...

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...
13. ## Thread: rotating TRANSPARENT cylinder - looks weird

by newsb
Replies
7
Views
4,858

### Uh, sorry - you're completely right - thank you...

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...
14. ## Thread: rotating TRANSPARENT cylinder - looks weird

by newsb
Replies
7
Views
4,858

### Nobody knows? Maybe someone can help me (lead...

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...
15. ## Thread: rotating TRANSPARENT cylinder - looks weird

by newsb
Replies
7
Views
4,858

### rotating TRANSPARENT cylinder - looks weird

See this movie: http://www.2shared.com/video/RwpFidKX/transp_cylinder.html?
And this code:

---------------------
# glPush + some translation + rotation....

# Enable blending /...
16. ## Thread: A fast algorithm for collision detection, Simple android game, Suggestions needed

by newsb
Replies
3
Views
3,431

### void main{ startGame(); } And you're done!

void main{
startGame();
}

And you're done!
17. ## Thread: Get orientation from vectors

by newsb
Replies
5
Views
5,858

### listen to this guy !

This guy is correct... You have:

A = [ x1 x2 x3
y1 y2 y3
z1 z2 z3 ]

DONE !
18. ## Thread: Quick question: Newbie and modelview-matrix..

by newsb
Replies
5
Views
1,824

### hmm. Maybe it's my own mistake. Explaining a bit...

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():
19. ## Thread: Quick question: Newbie and modelview-matrix..

by newsb
Replies
5
Views
1,824

### Thanks a lot for a good answer. I gave up and...

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...
20. ## Thread: Quick question: Newbie and modelview-matrix..

by newsb
Replies
5
Views
1,824

### Oh, damn... I'm sorry, I was too fast because...

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...
21. ## Thread: Quick question: Newbie and modelview-matrix..

by newsb
Replies
5
Views
1,824

### Quick question: Newbie and modelview-matrix..

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, ...
22. ## Thread: noob question - modelview and projection matrices

by newsb
Replies
4
Views
2,408

### Re: noob question - modelview and projection matrices

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...
23. ## Thread: noob question - modelview and projection matrices

by newsb
Replies
4
Views
2,408

### noob question - modelview and projection matrices

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)
...
24. ## Thread: Horrible nightmare visions

by newsb
Replies
2
Views
820

### Re: Horrible nightmare visions

Nike: Just do it!
25. ## Thread: want to draw an arrow with gluCylinder

by newsb
Replies
2
Views
1,487

### Re: want to draw an arrow with gluCylinder

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) ?...
Results 1 to 25 of 76
Page 1 of 4 1