AndrewVK Posted August 20, 2002 Share Posted August 20, 2002 1. Create simple environment texture: from top to middle - white colour from midddle to bottom - red colour 2. Convert texture to Rat format (to enable blur) 3. Create simple scene: sphere on the plane. 4. Aplly this shader: surface test( string env=""; float envblur=0.0; ) { vector Nn = frontface(normalize(N),I); vector NnS = wt_nspace(Nn); vector envcol = environment(env, NnS, "wrap", "repeat", "filter", "box", "width", envblur); Cf = envcol; } In this case plane and half of sphere MUST be lit with uniform white and bottom half of the sphere with uniform red....however ....plane appears in pink ....pink dot appears on top and bottom pole of the sphere Whats wrong? (<---my favorite smile) Quote Link to comment Share on other sites More sharing options...
stevenong Posted August 23, 2002 Share Posted August 23, 2002 Hi Andrew, When you see pink(or salmon colour) on your geometry, it means the map doesn't exist or it can't be found. I tried the shader & it works for me. Suggestion: #pragma hint env image It makes testing easier. Cheers! steven Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted August 23, 2002 Author Share Posted August 23, 2002 Hi Steven, I cant attach my image Please check mail. Quote Link to comment Share on other sites More sharing options...
stevenong Posted August 23, 2002 Share Posted August 23, 2002 Hey Andrew, Okay. Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted August 23, 2002 Author Share Posted August 23, 2002 In short form "vector environment(string map; vector D)" without additional argumets uses "repeat" wrap mode which causes problem! Just use full form with "streak" wrap mode & problem desapears 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.