Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to implement Sea Light?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    How to implement Sea Light?

    Hello everyone.

    I am now implementing a small fish project, which the fish can swim freely in the sea.

    I want some tutorials, references or libraries on how to implement the light under the sea, which similar to the dolphin example in DirectX SDK. Thanks you very much.

    P.S: Is there any homepage about using OpenGL to rewrite the examples in DirectX?

    [This message has been edited by takumi (edited 10-27-2002).]

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: How to implement Sea Light?

    On this website under programming advanced and FAQ, are some examples of underwater effects.

    Originally posted by takumi:
    Hello everyone.

    I am now implementing a small fish project, which the fish can swim freely in the sea.

    I want some tutorials, references or libraries on how to implement the light under the sea, which similar to the dolphin example in DirectX SDK. Thanks you very much.

    P.S: Is there any homepage about using OpenGL to rewrite the examples in DirectX?

    [This message has been edited by takumi (edited 10-27-2002).]

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    Re: How to implement Sea Light?

    Thanks a lot, let me check it.

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    Re: How to implement Sea Light?

    Thx nexusone



    [This message has been edited by takumi (edited 10-31-2002).]

  5. #5
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    Re: How to implement Sea Light?

    I have followed the demo to implement the underwater caustics. However, the light do not have any ripple effect (movement), it just performed as a static light in my scene.

    The Demo use GLUT function to build the display window, and my project are base on NeHe base code. Is that I have miss something out in this part?

    Please give me some advises. Thanks you.

    [This message has been edited by takumi (edited 10-31-2002).]

  6. #6
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: How to implement Sea Light?

    I don't think switching from glut to win32 api would change the gl code part much if at all. I looked at the program underwater.c, if you have coverted it from GLUT to widows API.

    What did you replace the glutIdelFunc with?
    This is what caused the patterns to chagne.

    Originally posted by takumi:
    I have followed the demo to implement the underwater caustics. However, the light do not have any ripple effect (movement), it just performed as a static light in my scene.

    The Demo use GLUT function to build the display window, and my project are base on NeHe base code. Is that I have miss something out in this part?

    Please give me some advises. Thanks you.

    [This message has been edited by takumi (edited 10-31-2002).]


    [This message has been edited by nexusone (edited 11-01-2002).]

  7. #7
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    Re: How to implement Sea Light?

    Originally posted by nexusone:
    I don't think switching from glut to win32 api would change the gl code part much if at all. I looked at the program underwater.c, if you have coverted it from GLUT to widows API.

    What did you replace the glutIdelFunc with?
    This is what caused the patterns to chagne.

    [This message has been edited by nexusone (edited 11-01-2002).]
    I think I have replace the glutIdelFunc wrongly...
    How should I replace the glutIdelFunc correctly in Windows API?

    Please teach me........thanks you very very very much.


    [This message has been edited by takumi (edited 11-01-2002).]

  8. #8
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: How to implement Sea Light?

    Ether post your code here or email me what you have written, so I can see what you are doing....

    Originally posted by takumi:
    I think I have replace the glutIdelFunc wrongly...
    How should I replace the glutIdelFunc correctly in Windows API?

    Please teach me........thanks you very very very much.


    [This message has been edited by takumi (edited 11-01-2002).]

  9. #9
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    Re: How to implement Sea Light?

    That's ok.......but, would u mind to give me some ideas that how to implement glutIdelFunc in Windows API? Because I want to learn and try to implement it by myself~~~

    Thx nexusone and all of you~

  10. #10
    Member Contributor
    Join Date
    Jul 2001
    Location
    Sherbrooke
    Posts
    95

    Re: How to implement Sea Light?

    I think a simple function called somewhere in your gameloop (like at the beginning) would be fine to do the code in GlutIdleFunc
    Am I wrong ?
    Just guessing...
    Good Luck that's an interresting question

    ----------------------------
    Evil-Dog
    *let's have a funny day*
    Let's have a funny day

Page 1 of 2 12 LastLast

Similar Threads

  1. What's different between ambient light and diffuse light,?
    By reader1 in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 06-12-2015, 08:41 AM
  2. How to add a light if white ambient light is active?
    By FedorSymkin in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-21-2014, 03:40 PM
  3. Positioned spot light - white light appearing from nowhere behind
    By windchine in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 08-03-2012, 02:30 AM
  4. Fixed light and moving spot light with the mouse
    By Jorcelangelo in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-18-2012, 09:56 PM
  5. Need to implement light beams under water
    By imported_sansan in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-03-2012, 12:28 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