Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Help me source code

  1. #1
    Newbie Newbie
    Join Date
    Nov 2013
    Posts
    3

    Help me source code

    Hi,
    I am a Vietnamese.
    I am a drawing exam with OpenGl https://www.dropbox.com/s/8hg0bi83ebmo8h5/Untitled.png
    help me!!!!!!!
    sory, my english is not good!!!!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    Looks like you need to draw a sphere with are decal of a star with a single light source - good luck

  3. #3
    Newbie Newbie
    Join Date
    Nov 2013
    Posts
    3
    Quote Originally Posted by tonyo_au View Post
    Looks like you need to draw a sphere with are decal of a star with a single light source - good luck
    thank you very much. but my teacher doesn't permit decal stickers.

  4. #4
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,077
    The idea is to use fragment shader to accomplish that. There is a plenty of exaples, e.g. OpenGL Shading Language 3rd edition pg. 341.

  5. #5
    Newbie Newbie
    Join Date
    Nov 2013
    Posts
    3
    Quote Originally Posted by Aleksandar View Post
    The idea is to use fragment shader to accomplish that. There is a plenty of exaples, e.g. OpenGL Shading Language 3rd edition pg. 341.
    thanks. can you link to download it?

  6. #6
    Member Regular Contributor
    Join Date
    Jan 2012
    Location
    Germany
    Posts
    325
    Quote Originally Posted by xuantuan93 View Post
    thanks. can you link to download it?
    Here you are: http://www.amazon.com/OpenGL-Shading...4767017&sr=8-1 - you can download the ebook for your Kindle for 32$, not sure if there exists another eBook format, if not you'll have to go with the paper version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •