<div dir="ltr">Yes please. If you can checkout the latest master, this should not happen. <div><br></div><div>Thanks,</div><div>Aashish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 11:48 AM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>No I'm using 7.0.0 release not a git clone.</div><div><br></div><div>I guess I should get the latest? </div><div><br></div><div>Rick</div><div><div class="h5"><div><br></div><div><br>On Apr 04, 2016, at 10:53 AM, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>> wrote:<br><br></div><div><blockquote type="cite"><div><div dir="ltr">Thanks, and are you using VTK master as of last week since we had this problem and got fixed recently. <div><br></div><div>- Aashish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 10:47 AM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,</div><div><br></div><div>Here is a portion of code:</div><div><br></div><div><br> volumeProperty->SetColor(0, colorTransferFunction);<br> volumeProperty->SetColor(1, maskColorTransferFunction);<br> volumeProperty->SetScalarOpacity(opacityTransferFunction);<br> volumeProperty->SetGradientOpacity(volumeGradientOpacityFunction);<br> volumeProperty->SetInterpolationTypeToLinear();<br> volumeProperty->ShadeOn();<br> volumeProperty->SetAmbient(0.4);<br> volumeProperty->SetDiffuse(0.8);<br> volumeProperty->SetSpecular(0.2);<br> volumeProperty->SetSpecularPower(105.0);<br> volumeProperty->SetScalarOpacityUnitDistance(0.7);<br> volume->SetProperty(volumeProperty);</div><div><br></div><div>The hard coded numbers are just picked empirically by viewing our most common inputs.</div><div><div><div><br>On Apr 03, 2016, at 10:26 PM, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>> wrote:<br><br></div><div><blockquote type="cite"><div><div dir="ltr">Rick, <div><br></div><div>Can you send me information on what you are turning on in volume property and in mapper that leads to this crash? Also, is your data is single or 2 or 4 component? </div><div><br></div><div>Thanks,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 3, 2016 at 9:25 PM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Further investigation seems to point the GradientOpacity section of shader raycasterfs.glsl, code which seems to be inserted at runtime: I guess gl_aspect is not defined in this scenario?</div><div><br></div><div>Any suggestions welcome!</div><div><br></div><div>Rick</div><div><br></div><div>vec4 computeGradient() <br>145: { <br>146: vec3 g1; <br>147: vec4 g2; <br>148: g1.x = texture3D(in_volume, vec3(g_dataPos + g_xvec)).x; <br>149: g1.y = texture3D(in_volume, vec3(g_dataPos + g_yvec)).x; <br>150: g1.z = texture3D(in_volume, vec3(g_dataPos + g_zvec)).x; <br>151: g2.x = texture3D(in_volume, vec3(g_dataPos - g_xvec)).x; <br>152: g2.y = texture3D(in_volume, vec3(g_dataPos - g_yvec)).x; <br>153: g2.z = texture3D(in_volume, vec3(g_dataPos - g_zvec)).x; <br>154: g1 = g1*in_volume_scale.r + in_volume_bias.r; <br>155: g2 = g2*in_volume_scale.r + in_volume_bias.r; <br>156: g1.x = in_scalarsRange[0] + ( <br>157: in_scalarsRange[1] - in_scalarsRange[0]) * g1.x; <br>158: g1.y = in_scalarsRange[0] + ( <br>159: in_scalarsRange[1] - in_scalarsRange[0]) * g1.y; <br>160: g1.z = in_scalarsRange[0] + ( <br>161: in_scalarsRange[1] - in_scalarsRange[0]) * g1.z; <br>162: g2.x = in_scalarsRange[0] + ( <br>163: in_scalarsRange[1] - in_scalarsRange[0]) * g2.x; <br>164: g2.y = in_scalarsRange[0] + ( <br>165: in_scalarsRange[1] - in_scalarsRange[0]) * g2.y; <br>166: g2.z = in_scalarsRange[0] + ( <br>167: in_scalarsRange[1] - in_scalarsRange[0]) * g2.z; <br>168: <a href="http://g2.xyz" target="_blank">g2.xyz</a> = g1 - <a href="http://g2.xyz" target="_blank">g2.xyz</a>; <br>169: g2.x /= g_aspect.x; <br>170: g2.y /= g_aspect.y; <br>171: g2.z /= g_aspect.z; <br>172: float grad_mag = sqrt(g2.x * g2.x + <br>173: g2.y * g2.y + <br>174: g2.z * g2.z); <br>175: if (grad_mag > 0.0) <br>176: { <br>177: g2.x /= grad_mag; <br>178: g2.y /= grad_mag; <br>179: g2.z /= grad_mag; <br>180: } <br>181: else <br>182: { <br>183: <a href="http://g2.xyz" target="_blank">g2.xyz</a> = vec3(0.0, 0.0, 0.0); <br>184: } <br>185: grad_mag = grad_mag * 1.0 / (0.25 * (in_scalarsRange[1] - <br>186: (in_scalarsRange[0]))); <br>187: grad_mag = clamp(grad_mag, 0.0, 1.0); <br>188: g2.w = grad_mag; <br>189: return g2; <br>190: }</div><div><br></div><div><br></div><div><br></div></div><br>_______________________________________________<br> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br> <br> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br> <br> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br> <br> Follow this link to subscribe/unsubscribe:<br> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br> <br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><span style="font-family:'trebuchet ms',sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></span><div><i><span style="font-family:'trebuchet ms',sans-serif">| </span><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><span face="trebuchet ms, sans-serif" style="font-family:'trebuchet ms',sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></span><div><i><span face="trebuchet ms, sans-serif" style="font-family:'trebuchet ms',sans-serif">| </span><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>