lorduk Posted January 27, 2003 Share Posted January 27, 2003 image3d metaDensity() { float ballDensity = 0, maxDensity = 0; export vector blendedColor = 0; forpoints(P) { ballDensity = mdensity(P); if(ballDensity > maxDensity) maxDensity = ballDensity; blendedColor = ballDensity*mattrib("Cd", P); } density = maxDensity; } But it just will NOT export extra channel called blendedColor, am I missing something really simple or might it be a bug or God knows what. I have been banging my head against the brick wall for 4 hours now and getting bit weary So any help would be verrrryyy much aprichiated -Kaspar Quote Link to comment Share on other sites More sharing options...
danteA Posted January 28, 2003 Share Posted January 28, 2003 In section 8.5 of the Shaders pdf, I think is the way how you do it. I quote: VEX can be used to create any attribute names you like. For example, to create the Quote Link to comment Share on other sites More sharing options...
lorduk Posted January 28, 2003 Author Share Posted January 28, 2003 Thanx a lot, now it works, there was mistake in the tutorial and I was looking only the documentation found in houdini/vex/html - and according to that evrything was ookay-dookey well now it works, so hooray -Kaspar Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.