{"action":"closed","issue":{"url":"https://api.github.com/repos/imageworks/OpenShadingLanguage/issues/670","repository_url":"https://api.github.com/repos/imageworks/OpenShadingLanguage","labels_url":"https://api.github.com/repos/imageworks/OpenShadingLanguage/issues/670/labels{/name}","comments_url":"https://api.github.com/repos/imageworks/OpenShadingLanguage/issues/670/comments","events_url":"https://api.github.com/repos/imageworks/OpenShadingLanguage/issues/670/events","html_url":"https://github.com/imageworks/OpenShadingLanguage/issues/670","id":177818628,"number":670,"title":"texture() parameters optimization broken","user":{"login":"1-Olivier","id":20310858,"avatar_url":"https://avatars.githubusercontent.com/u/20310858?v=3","gravatar_id":"","url":"https://api.github.com/users/1-Olivier","html_url":"https://github.com/1-Olivier","followers_url":"https://api.github.com/users/1-Olivier/followers","following_url":"https://api.github.com/users/1-Olivier/following{/other_user}","gists_url":"https://api.github.com/users/1-Olivier/gists{/gist_id}","starred_url":"https://api.github.com/users/1-Olivier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1-Olivier/subscriptions","organizations_url":"https://api.github.com/users/1-Olivier/orgs","repos_url":"https://api.github.com/users/1-Olivier/repos","events_url":"https://api.github.com/users/1-Olivier/events{/privacy}","received_events_url":"https://api.github.com/users/1-Olivier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-19T15:35:30Z","updated_at":"2016-09-27T22:38:00Z","closed_at":"2016-09-27T22:38:00Z","body":"There is a bug with (at least) the \"swidth\" and \"twidth\" parameters of the texture() shadeop. If they are set from a parameter and that parameter has a default or set value of 1, any connection to the parameter is ignored. It looks somewhat like there is an optimizer which pre-fills the texture opts and is not aware of connections. It is easy enough to work around by making the default 1.000001 in the shader.\r\n\r\nI'm attaching a test case for testrender. It is a simple ramp of the filter width over the image so the texture should be sharp at the top and blurry at the bottom. You can use any texture you have lying around with some detail. Uncomment the Parameter in the xml to see what it should look like without the bug. It is broken in 1.7.2 and in the current git head.\r\n\r\n[OSL_width_connection.tar.gz](https://github.com/imageworks/OpenShadingLanguage/files/480394/OSL_width_connection.tar.gz)\r\n"}}
{"actor":{"display_login":"lgritz"}}