lighting
ray tracing lighting
I am trying to implement specular and diffuse lighting for a simple sphere ray tracing application, but I am having problems with my vectors.[详细]
2023-04-13 05:22 分类:问答Unusual Lighting Effects - Random Polygons Coloured
I am working on creating an object loader for use with iOS, I have managed to load the vertices, normals and face data from and OBJ file, and then place this data into arrays for reconstructing the ob[详细]
2023-04-09 08:39 分类:问答Light Direction and its Transformation in the Simplest Lighting Model
So, I\'ve gotten to basic lighting in my OpenGL learning quest. Imagine this simplest lighting model. Each vertex has a position, color, and normal. The shader gets the ModelViewProjection matrix (M[详细]
2023-04-02 19:11 分类:问答realtime terrain lighting
What would be the best way to provide realtime lighting in an OpenGL terrain scene? The level of detail between of each quad will be generated dynamically as it is subdivided as it zooms in, so a pre-[详细]
2023-03-26 02:37 分类:问答per-fragment lighting coordinate system
I\'m developing an OpenGL 2.1 application using shaders and I\'m having a problem with my per-fragment lighting. The lighting is correct when my scene initial loads, but as I navigate around the scene[详细]
2023-03-19 14:52 分类:问答Light source inside a room acting unexpectedly
I\'ve written several Android apps, but this is my first experience with 3D programming. I\'ve created a room (4 walls, ceiling and floor) with a couple objects inside and am able to move the camera开[详细]
2023-03-14 13:52 分类:问答Why does GLSL lighting code shift the light spot with the camera?
I am trying to make a custom light shader and was trying a lot of different things over time. Some of the solutions I found work better, others worse. For this question I\'m using the solution which w[详细]
2023-03-14 05:09 分类:问答2d platformer light sources
Making a prototype for a platformer that uses moving and stationary light sources and encountering some tricky problems and just basically looking for some sort of workaround or alternate solution.[详细]
2023-03-13 03:15 分类:问答Opengl proper lighting problem
I have written the following program to display a teapot on a table in a room with 2side walls and a floor.[详细]
2023-03-09 19:58 分类:问答How do I tell if the active texture is texture id 0 in GLSL?
I have model assets that are untextured and I am tired of rendering them as black without lighting. This is because if texture id 0 is bound and I ask the sampler it tells me its black. Later leading[详细]
2023-03-09 17:57 分类:问答