Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Shadows

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2003
    Location
    Portugal
    Posts
    6

    Shadows

    Hello,
    I don't know anything about advanced opengl, but I need to implement the algorithm for Shadows.
    Can anyone help me find this algorithm implemented? But with an easy implementation code.
    I know that this work was done in the past.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Oct 2000
    Location
    Belgium
    Posts
    857

    Re: Shadows

    No shadowing algorithm is "the" shadowing algorithm. The two most popular approaches at the moment are stencil shadow volumes and shadow mapping, and they both have their pros and cons. You can find plenty of threads about both of these approaches in the forum archives.

    -- Tom

  3. #3
    Intern Contributor
    Join Date
    Mar 2003
    Posts
    95

    Re: Shadows

    If you´re used to work with multitexturing , i think you´ll find shadowmaps quite easier in a first approach ...
    stencil shadows are a little more difficult to understand due to the necessity of some knowledge of the stencil buffer... which is good thing to know AFAIK
    when oyu get more familiar with the 2 processes , then you should choose wich one gives you the type of shadows you´re looking for , and that you like more to implement
    As shadows into darkness, the Ninja fades away

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2003
    Location
    Portugal
    Posts
    6

    Re: Shadows

    Have one implementation of the stencil shadow volume, but works only in planes XZ and not in XY.
    I already try to do some changes on the program, but don't do what i want.
    The program that I use is from Mark J. Kilgard, the dinoshade with shadow and reflection.
    This program is good becouse I can change easyli the geometric shape, it's what I need.
    (

    Pedro

  5. #5
    Member Regular Contributor
    Join Date
    Nov 2000
    Location
    israel
    Posts
    332

    Re: Shadows

    these are not stencil shadows, but projected shadows. look at the nvidia site, it has enough info.
    -ofer-

  6. #6
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: Shadows

    Shall I fetch your coat, pedrovr?
    Knackered

  7. #7
    Junior Member Newbie
    Join Date
    Feb 2003
    Location
    Portugal
    Posts
    6

    Re: Shadows

    You are joking with me, knackered!?
    If yes, I don't have time to jokes, ok?
    I have a Red Line to this work and don't know kow is implemented, don't know anything about advanced OpenGL.
    Thank you,
    Pedro

  8. #8
    Junior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Portugal
    Posts
    223

    Re: Shadows

    Bem, é bom ver alguem de Portugal...

    Mas aquela pergunta tá um pouco mal feita e como isto é um forum avançado o pessoal daqui fica sempre um pouco lixado...

    Sabes pelo menos que tipo de sombras tens de implementar?

  9. #9
    Junior Member Newbie
    Join Date
    Feb 2003
    Location
    Portugal
    Posts
    6

    Re: Shadows

    Olá!
    finalmente alguém disposto a dar-me uma ajudita.
    Sei sim, basicamente qualquer tipo de sombras será bem vindo, apenas um tipo de sombras será necessário.
    Passo a explicar, estou a trabalhar para um projecto europeu, no qual é necessário criar uma biblioteca de Técnicas Avançadas de Render.
    Um dos algoritmos a implementar terá que ser necessariamente sobre sombras.
    Eu sei que há pelo menos 3 tipos de algoritmos:
    - Projective shadows
    - Shadow volumes
    - Shadow maps
    Encontrei um programa que faz alguma coisa do que eu quero, ou seja, dou-lhe uma geometria e ele calcula a sombra, só que apenas funciona bem para o chão, quando coloco paredes, a coisa dá para o torto. A sombra é cortada, ou então, não parece minimamente real.
    O que eu queria era um programa que pega numa geometria qualquer e com base na posição da luz, projecta sombras contra as paredes, chão, etc.
    Tb já percebi que as sombras terão que ser calculadas para cada um dos planos.
    Sabes de algum site, programa escrito em opengl com C, Tutorial, Aulas, etc.

    Se os meus conhecimentos de OpenGL fosse mais além do básico, já o teria implementado porque há descrições até muito boas, mas há muita coisa do OpenGL que me passa ao lado.

    Se poderes-me ajudar de alguma forma agradecia.

    Obrigado,
    Pedro

  10. #10
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: Shadows

    Have I had a stroke or are you lot talking in some kind of foreign language?
    I do hope you're not one of those Iraqi gentlemen...

    pedrovr, don't take it out on me that you lied to someone that you can do something by a certain date - that's down to your stupidity.
    Knackered

Posting Permissions

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