Lukich Posted September 25, 2002 Share Posted September 25, 2002 Hi. I just started workng with point colors and there things that I cannot figure out. For example, I'm trying to import a color from the middle of my texturemap into the Color section of the Point SOP using a texni function. Here's the string that I use in the Red section : texni("./Houdini5/disc2/demo/pic/Reflect.pic",$BBX*0.5, $BBY*0.5, r) the same function with g and b as a color value are applied in the Green and Blue fields. However, the grid that I apply it to turns black. I tried several different variations, but the grid is always black. What can I do wrong? Thank you, Luka Quote Link to comment Share on other sites More sharing options...
plan9 Posted September 25, 2002 Share Posted September 25, 2002 hail, what version are you using? i seem to recall there are some problems with pic() picni() tex() texni() in v5.5.xx Quote Link to comment Share on other sites More sharing options...
Lukich Posted September 25, 2002 Author Share Posted September 25, 2002 No, I'm using 5.0.46. Quote Link to comment Share on other sites More sharing options...
plan9 Posted September 26, 2002 Share Posted September 26, 2002 you have a couple options: use pic() or picni() ...might be more efficient to read it from cops...refer to the $HFS/demo/OP_specific/SOP/point for the proper format, or exhelp if you are into that sort of thing. iam getting an image when using texni("mandril.pic",$BBX*0.5, $BBY*0.5, r) ...(well at least something that looks like a mandril, using 5.5.9x). have you tried playing with the bound box values? if its black, you are getting information in. also, for shits N giggles, use a different format...although, pic shouldnt be giving you any problems. bout all my sickly nugget can think of at the moment...hollar back if it works for you. Mike C. Quote Link to comment Share on other sites More sharing options...
Lukich Posted October 2, 2002 Author Share Posted October 2, 2002 Nope,, didnt' work. It seems the function is altogether broken in both 5.0.46 and 5.5. What to do? 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.