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,117
    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,214
    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
    Senior 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.

Similar Threads

  1. Source Code
    By nacira in forum OpenGL: General
    Replies: 0
    Last Post: 12-29-2011, 05:58 AM
  2. Source Code
    By dark_os in forum OpenGL: General
    Replies: 4
    Last Post: 12-25-2007, 07:05 AM
  3. GLX 1.3 source code
    By Hummer in forum OpenGL: General
    Replies: 0
    Last Post: 11-01-2002, 12:11 PM
  4. Source code of "Sky Fly" ?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-04-2000, 04:18 PM
  5. I need the source code...please
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-06-2000, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean