#easiest way to add Shadows and Reflections
48 messages · Page 1 of 1 (latest)
oh boy oh no
😆
why is that
is using 30 year old tech required
no
then please https://learnopengl.com/
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.
youre using immediate mode gl, which is a thing thats long been deprecated
hmm
how about this
https://github.com/esaeed1/Assignment-1
this is already better, apart from some questionable decisions like using C++03
Uploading an executable in your repo is also a bti weird
Also, using eigen for 3d linear algebra is a bit overkill
ok so this is my assignment
Local Illumination and Shading
Generate several cows at different positions with a ground and three walls, extend the system to support the following features:
Support for several light sources.
Interactively turn lights on and off.
Support flat/gouraud shading models.
interactive change the (RGBA) values associated with the global ambient light.
interactive change the (RGBA) values associated with the specular material properties of the objects.
Global Illumination with Ray Tracing
To facilitate global illumination, you need to consider the interactions among all the objects and lights attenuated along ray distance to enable shadows and reflections. You can demo a low resolution ray tracing image if your hardware resource is limited.
Shadows. Is there an object between the surface position and the light? If so, a shadow should be generated. You need to define a function to compute these shadow rays.
Reflections. Set some cows’ material to be reflective. If material is set to be reflective, you need to define a recursive function to traverse a ray from the camera to the surface position to find the color of light, and continue this process until the maximum number of recursions or the maximum distance of the ray path is reached.
You can do this with either GL, Shaders, or CUDA (depending on your GPU).
Texture Mapping
Put the texture on the cow mesh model with a cow texture cow-tex-fin.jpg.
The texture should be modulated by the local and global shading computation.
what direction should i go
i can use any opensource code as long as i get it done
that is a seriously big assignment lol
yea i got 5 days

good luck lmfao
a simple naive pathtracer is probably your best bet if it doesnt need to be realtime
no

got it 7 days ago
thats still quite a lot of work for 2 weeks but maybe doable
well
cpu raytracing is conceptually the simplest to get all these features working on
although its slow, itll get the job done
i dont have to build this from scratch
is there no opensource repos that best help me accomplish this task
multiple backends
yeah
it's probably your fastest way if you don't need to start from scratch
but, for an assignment, i don't think your teacher will be okay with a totally finished renderer lmao
nah its fine this guy nice
what a weird assignment though
this was my assigment 1 i forked a project made changes
and turned it in