Page 1 of 1

ISL fruits

Posted: Sun Feb 10, 2013 7:48 am
by CTZn
Hi, for starters I want to share a shader that will turn a sphere into an apple.

The material status is: WIP snapshot. There is a seam visible in the albedo shader, I'll try to do this part with a 3d parameter.

Each apple though, including instanced meshes, is guaranteed to have a unique albedo.

This version of the shader preserves the sphere's width. I think that the apple will come upside down :D

Would you use such a material for production ?

Re: ISL fruits

Posted: Sun Feb 10, 2013 7:59 am
by OnoSendai
Not bad!
Needs a stalk in the top.
I was thinking of trying to model a tomato in a similar fashion.
I'll probably make it using a parametric surface though, so no sphere is required.

Re: ISL fruits

Posted: Sun Feb 10, 2013 8:14 am
by CTZn
Please do add your contributions at will. I didn't think of using parametric surfaces.

Well that's the idea. The code is crap yet :) (e: albedo specially)

For tomatoes, I was thinking of a scatter shader using the displacement code to set limits, using the same radial distribution. See what I mean ? The pulp, with seeds eventually (secondary parametric object ?) discriminated from the flesh.

PS: back then an apple was my first serious procedural material with Maya, with a grainy skin and stuff. Shading LOD can be pushed ahead off course.

Re: ISL fruits

Posted: Sun Feb 10, 2013 8:20 am
by CTZn
OnoSendai wrote:Needs a stalk in the top.
That will be up to the user, but for an easy placement the displacement should augment the apple radius to preserve the stalk root point, leading to a trickier placement of the apple itself in the scene.

edit: now with parametric surfaces that's different, there are more options than with displacement indeed in order to shift a stalk over its height.