Page 1 of 1

objectId in bump

Posted: Wed Oct 16, 2013 4:08 am
by Musorgki
I'm using objectId and it works well in diffuse_albedo, but I'm having some trouble with it in bump.
objectId demo.jpg
Top row is noise driven by objectId in diffuse_albedo, and the pattern seems to change.
Bottom row is the same for bump, but doesn't seem to change.

diffuse_albedo

Code: Select all

def eval(vec3 pos) vec3 :
vec3( 
	noise(
		getTexCoords(0) +
		vec2(
			real(objectId())
		) 
	) ,0,0)
bump

Code: Select all

def eval() real :
	noise(
		getTexCoords(0) + 
		vec2(
			real(objectId())
		) 
	)
objectId demo.igs
(6.46 KiB) Downloaded 231 times
This is in Indigo 3.6.20.
I'm having the same problem with blend.

Thanks for any help!

Re: objectId in bump

Posted: Wed Oct 16, 2013 4:52 am
by OnoSendai
objectID() doesn't work with displace params currently (e.g. bump, displacement) sorry.
Maybe I'll change this in the future.

Re: objectId in bump

Posted: Wed Oct 16, 2013 4:59 am
by Musorgki
Ok - thanks!