dilevin / computer-graphics-shader-pipeline

Computer Graphics Assignment about the Shader Pipeline
2 stars 5 forks source link

Question about requirement for procedural_color.glsl #7

Closed IgorStempen closed 5 years ago

IgorStempen commented 5 years ago

Hi,

I know that the explanation for procedural_color.glsl says to be creative, but I wanted to know if there were any strict requirements that have to be met for this function?

I am having trouble making mine look exactly like the example. Would an implementation such as the one that I currently have be sufficient?

capture
rin-23 commented 5 years ago

yes it will be hard to make yours look exactly same. Yours looks fine to me.

csc418-anon commented 5 years ago

I'm kind of stuck on this part. Are we supposed to interpolate the point from a 2d grid, or a 3d cube?

My sphere kind of looks like this, and it's just brutal. I feel like I'm over doing it. I'm trying to interpolate the 3d point over a 3d cube using the random vectors as vertices.

There's sigmoidal shapes on the surface, so it's kind of working? (I disabled phong)....any ideas?

image
rin-23 commented 5 years ago

its 3d grid

This is a good resource for perlin noise - https://www.scratchapixel.com/lessons/procedural-generation-virtual-worlds/perlin-noise-part-2

This is a good intro as well - https://www.scratchapixel.com/lessons/procedural-generation-virtual-worlds/procedural-patterns-noise-part-1