Results 1 to 3 of 3

Thread: cylinder in qt using OpenGL.

  1. #1
    Join Date
    Apr 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: cylinder in qt using OpenGL.

    A cylinder looks like a rectangle when viewed from the side. Where is the camera (viewpoint) in your setup?

  3. #3
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: cylinder in qt using OpenGL.

    Also, where are lights? If you want a 3D picture, you need some "3D tools", that means lights, which will show what is near and what is far. Also, you need to specify the projection: glOrhto() or glFrustum(). At any rate, I recommend to simplify your life using GLUT (in OpenGL 2.0). It contains higher level primitives, like the cylinder which you want to draw, setting the viewpoint and other. In my experience, GLUT is compatible with Qt.

Similar Threads

  1. Replies: 2
    Last Post: 5th July 2017, 13:28
  2. converting GLUT/OpenGL to Qt/OpenGL - displaying issue
    By yoti13 in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2012, 00:45
  3. Cylinder with gluCylinder()
    By Blastcore in forum Qt Programming
    Replies: 0
    Last Post: 26th May 2012, 00:12
  4. Replies: 0
    Last Post: 6th December 2009, 00:41
  5. Cylinder draw using QT opengl functions
    By YuriyRusinov in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2008, 23:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.