Results 1 to 7 of 7

Thread: OpenGl Issue

  1. #1
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default OpenGl Issue

    Hi guys,
    I'm just trying out how to use openGl to draw a 3D representation.

    I have written some code which I took help from qtAssistance but is unable to complete.

    Run the application and you will find a QFrame (white color) on the left and opengl area on the right. There are some button just below frame. Just hit the button say 'Draw Rectangle' to draw a rectangle on frame( or draw a polygon, draw draw Text etc).

    What I want-->
    Initially the white frame is empty and a rectangle is shown on right which is 3D display area.
    Click on Draw ploygon, then Click 'OK' . The polygon should be displayed with 3D representation on right. Which I should be able to rotate too. How to do that???

    I'm having problems with 3D representation. Please help.

    See the attached file.

    Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2007
    Posts
    49
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: OpenGl Issue

    I don't understand what you want?

  3. #3
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OpenGl Issue

    Quote Originally Posted by minimoog View Post
    I don't understand what you want?
    I have a frame (QFrame with white color on left) and a GLWidget on right. I have some buttons 'Draw Polygon', 'Draw Rectangle', 'Draw Ellipse', 'Draw Text' and 'OK'.
    Initially the frame is blank and GLWidget is shown with a 3D view of rectangle.

    What I want-->
    Click on any button just below frame, it draws corresponding shape on frame. Now click on 'OK'. The shape on frame (which the user has Clicked) should be shown on GLWidget with 3D view. I'm not able to get 3D view of shape which the user has clicked.

    This basically means I have a shape wherein I want to see the 3D view of that shape.

    Did I make any sense??? If not let me know what you got I'll try to clarify it.

    Thanks

  4. #4
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OpenGl Issue

    Can anyone please help me with this....

  5. #5
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OpenGl Issue

    Quote Originally Posted by vermarajeev View Post
    Can anyone please help me with this....
    Please guys... I want some help here!!!!

    Have I made any sense above??????

  6. #6
    Join Date
    Feb 2007
    Posts
    49
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OpenGl Issue

    What do you mean with "3d representation of the polygon"?

  7. #7
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OpenGl Issue

    Quote Originally Posted by minimoog View Post
    What do you mean with "3d representation of the polygon"?
    3D means 3 Dimension. See the attached file for more information
    Attached Files Attached Files

Similar Threads

  1. opengl help!!
    By rachana in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2007, 08:52
  2. Replies: 5
    Last Post: 22nd September 2006, 08:04
  3. OpenGl 2d
    By Lele in forum Qt Programming
    Replies: 10
    Last Post: 9th May 2006, 21:37
  4. Qt's optimized OpenGL context switching
    By sverhoff in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 16:40
  5. Example OpenGL project?
    By brcain in forum Qt Tools
    Replies: 9
    Last Post: 23rd February 2006, 21:17

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.