Starting Rendering Modes

WEBINAR: On-demand webcast

How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >

Download project files 282KB


Keywords :

  • OpenGL rendering context
  • MFC
  • Rendering mode : wireframe / vertex / faces
  • Gouraud shading
  • Antialiasing
  • Lighting
  • Scaling (with sliders)
  • Rotation (mouse events)
This sample create an OpenGL rendering context in a multidocument / view framework and display the most simple representative object : a sphere. A formview on the left permits to check rendering options, like rendering modes (vertex, wireframe, faces), antialiasing, lighting, gouraud shading (in face and wireframe mode), lighting and back colors, scaling, animation (rotation). Mouse events permits rotation.
 



Comments

  • Re:

    Posted by icon package on 09/19/2012 08:08am

    You were visited simply with a brilliant idea P.S. Please review Black Toolbar Icons from falcowarecom46

    Reply
  • Splitter

    Posted by Legacy on 08/25/2003 12:00am

    Originally posted by: Pawel

    A good one right. But I have a problem with it. When I make my own version of an MFC Application without a splitter the view initializes only after refreshing (OnPaint() takes no effect before that).

    Anyone can help?
    Pawel

    Reply
  • OpenGL

    Posted by Legacy on 08/04/2003 12:00am

    Originally posted by: yendluri

    it's really good.
    but i need some help.
    in my project i need to draw 3D XYZ Scatter Graph,3DXYZ Bars,3D WaterFall,3d color map by reading data from a file that data may be text or excel,wave file etc..........
    so pls help me out how to do.iam new to this open Gl.

    Thank u,
    regards usha

    • Hi

      Posted by dgplinux on 01/17/2005 11:19am

      r u my friend from hyd?

      Reply
    Reply
  • So Good.

    Posted by Legacy on 07/14/2003 12:00am

    Originally posted by: nalini kanth

    The program is very good giving a very high inspiration for the people who are really intrested to work on OpenGL.

    Very Good.

    Reply
  • Super

    Posted by Legacy on 05/09/2003 12:00am

    Originally posted by: Nanda

    It's nice work

    Reply
  • Excellent

    Posted by Legacy on 02/13/2003 12:00am

    Originally posted by: J Juno

    An outstanding tutorial, especially for those of us learning how to integrate OGL with MFC. Thanks!

    -JJ

    Reply
  • Can you map colors and figures onto the sphere surface?

    Posted by Legacy on 12/28/2001 12:00am

    Originally posted by: Michael B. Pliam

    Thanks for this great demo.

    I wonder if it would be possible to map colors and figures onto the surface of your rotatable sphere?

    This would make it very useful for certain types of mathematical mapping demonstrations. Even more so if you could produce 2 separate spheres that rotate in tandem in the same view.

    Reply
  • file missing:Tool.pch

    Posted by Legacy on 11/15/2000 12:00am

    Originally posted by: Alan

    when I am trying to compile the code, the compiler says Release/Tool.pch is missing.
    What can I do?
    Thankx.
    From Alan.

    Reply
  • "First-chance exception" error

    Posted by Legacy on 04/15/2000 12:00am

    Originally posted by: Mark McLaren

    When I run this program in debug mode, a message saying "First-chance exception in Tool.exe (GDI32.DLL): 0xC0000005: Access Violation." is printed to the debug trace. It doesn't seem to affect the output, I would just like to know what causes it...

    Reply
  • Change background Color not correct

    Posted by Legacy on 03/16/2000 12:00am

    Originally posted by: Peter

    I learned a lot from you generous contribution. Thank you very much.

    One question in running your progaram is that when I pick a color in the form view for the background, it seems that the background does not display that color sometime. So changing background color only works in Red, Green and Blue. I check your code and can not figure out what is wrong. Is there any possiblity that the color definition in GDI is different from that in OpenGL?

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date