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.
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.
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
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
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
these are not stencil shadows, but projected shadows. look at the nvidia site, it has enough info.
-ofer-
Shall I fetch your coat, pedrovr?
Knackered
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
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?
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
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