Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: newsb

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,987

    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. 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. Please write in english...

    Please write in english...
  4. 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. 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. 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. 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. 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. You can read all about it here: www.google.com

    You can read all about it here:

    www.google.com
  10. Replies
    7
    Views
    2,679

    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. Replies
    7
    Views
    2,679

    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. 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. Replies
    7
    Views
    2,679

    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. Replies
    7
    Views
    2,679

    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. Replies
    7
    Views
    2,679

    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. void main{ startGame(); } And you're done!

    void main{
    startGame();
    }

    And you're done!
  17. Replies
    5
    Views
    2,786

    listen to this guy !

    This guy is correct... You have:

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

    DONE !
  18. Replies
    5
    Views
    1,314

    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. Replies
    5
    Views
    1,314

    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. Replies
    5
    Views
    1,314

    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. Replies
    5
    Views
    1,314

    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. 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. 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)
    glLoadIdentity()
    ...
  24. Replies
    2
    Views
    579

    Re: Horrible nightmare visions

    Nike: Just do it!
  25. Replies
    2
    Views
    1,006

    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 2 3 4