[Paraview] Multi-block Inspector - unexpected result
Greetings, When using the Multi-block Inspector I see behavior that I don't expect. After setting colors and opacity for individual blocks, if the model is then colored by a nodal scalar variable the solid colors persist. This isn't what happens if I add an extract block filter for each block. It gives weird effects if opacity is less than 1 in a block, where other blocks (not transparent) viewed through the transparent block are rendered by the scalar variable, but if viewed directly are rendered in the prescribed solid color. Is this a expected? I'm using the latest stable 4.2 on Windows 7 x64, with an EnSight Gold format reader. Thanks, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Colour bar and scale missaligned
Thanks Burlen, I'll try the nightly build (if that's what 'git pull' is?). Your scalar bar does indeed look just right; would you be willing to share the script code? I've noticed another ugly quirk with the new default scalar bar, the number format applies to all values except the limits, so there seems to be no way of suppressing a limit value from being displayed as 0.11 (for example). Regards, Bob Date: Mon, 15 Jul 2013 08:22:36 -0700 From: blor...@lbl.gov To: fland...@hotmail.com CC: paraview@paraview.org Subject: Re: [Paraview] Colour bar and scale missaligned I just tried to replicate on a recent git pull and I was not able to. It may be fixed. but I'd like to confirm that the scalar bar widget has been a bit flaky lately. One thing I'd like to point out about your screen shot is the use of too many different font sizes in the lables. Your examples only has 2 sizes, but I've seen examples with 3. This makes the color bar unusable for me. I end up generating my own in a post processing step for this reason. it would be really nice to have a simple nice looking scalar bar for plots. A single font size is a key feature. Also I like to see all of the labels on one side, and evenly spaced. The logic for deciding on which side of the widget seems to be easily confused and I've seen some crazy looking results. Simple is better. Here is an example(made by my post processing script) of how this looks On 07/14/2013 03:00 AM, Bob Flandard wrote: Hello, I'm using 4.0.1 64 bit on Windows 7. When I limit the number of discrete contours there is a misalignment of the scale and the colours in the colour bar. I've attached a plot and a state file that demonstrate the issue; a simple plane coloured by x-coordinate with the colour bar aligned above the plane to show the missalignment. Is this an issue with my specific set up (graphics drivers ...) or do others see it too? Thanks for your time, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview <>___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Colour bar and scale missaligned
Hello Burlen, That was very kind of you to share your scripts. I fear you may be casting pearls before a swine, but I will attempt to run them on my PC. The plots are very impressive; van Gogh meets Munch at Sheldon Cooper's flat. I'll send you a picture if I have some success. Thanks and regards, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Getting Python commands from the trace module (or other)
Hello, I'm using the lastest nightly build of ParaView 4.0.1 Windows 64bit on Windows 7. I'm try to develop a Python macro that will allow me to setup the scalar bar after applying some other filters to the pipeline. I'm trying to establish the required Python commands by turning on the trace feature, changing things in the GUI (specifically: Color Scale Editor - Interpret values as Categories - Color Legend Tab, change font size, tick flip labels, tick show NaN, label as "texty foos"), and then stop trace. I'm starting and stoping the trace directly in the Python Shell using: from paraview import smtrace smtrace.start_trace(CaptureAllProperties=True) # Do stuff in GUI smtrace.stop_trace() smtrace.print_trace() However the results is always: try: paraview.simple except: from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() Render() But none of the commands for fonts, text, NaN etc are there. I've tried many variants of dir() and help() for various combinations of objects, but have had no success and have spent far too long on something that should be trivial. Any help greatly appreciated. Thanks, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Scalar bar ranges jump around
Hello Ken, Maybe you are seeing something different to what I see when playing the different time steps. I see the relative size of each of the discrete colours in the scalar bar, changing in a random way. The ticks don't move and the numbers change appropriately, but the length of each colour is not constant. I've attached an image that shows the scalar bar from three time step of the data set in the state file I posted yesterday. One (t=96) has a good scalar bar and the other two are wrong. Just to clarify, I'm using ParaView 5.0 RC3 64bit on a Windows 7 machine. Thanks for your help, Bob On 29 December 2015 at 17:49, Moreland, Kenneth wrote: > Bob, > > I am confused. The "clamp and update every timestep" feature is what turns > on the behavior of changing the scale of every timestep. Just turn it off. > > -Ken > > Sent from my iPad so blame autocorrect. > > > On Dec 28, 2015, at 3:17 PM, Bob Flandard wrote: > > > > Hello, > > > > Sorry if this is old news. > > > > The colour ranges on the scalar bar should remain equally spaced, but > with the transfer function reset mode set to "clamp and update every > timestep", they jump about during a time series animation. > > > > Attached is a state file that demonstrates the issue (created with PV > v5.0 RC3). Please load it and click the play button, or manually click > through time steps. > > > > Thanks, Bob > > > > ___ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > > > Search the list archives at: http://markmail.org/search/?q=ParaView > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/paraview > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Scalar bar ranges jump around
Hello Ken, Maybe you are seeing something different to what I see when playing the different time steps. I see the relative size of each of the discrete colours in the scalar bar, changing in a random way. The ticks don't move and the numbers change appropriately, but the length of each colour is not constant. I've attached an image that shows the scalar bar from three time step of the data set in the state file I posted yesterday. One (t=96) has a good scalar bar and the other two are wrong. Thanks for your help, Bob On 29 December 2015 at 17:49, Moreland, Kenneth wrote: > Bob, > > I am confused. The "clamp and update every timestep" feature is what turns > on the behavior of changing the scale of every timestep. Just turn it off. > > -Ken > > Sent from my iPad so blame autocorrect. > > > On Dec 28, 2015, at 3:17 PM, Bob Flandard wrote: > > > > Hello, > > > > Sorry if this is old news. > > > > The colour ranges on the scalar bar should remain equally spaced, but > with the transfer function reset mode set to "clamp and update every > timestep", they jump about during a time series animation. > > > > Attached is a state file that demonstrates the issue (created with PV > v5.0 RC3). Please load it and click the play button, or manually click > through time steps. > > > > Thanks, Bob > > > > ___ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > > > Search the list archives at: http://markmail.org/search/?q=ParaView > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/paraview > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Scalar bar ranges jump around
Hello Utkarsh and Cory, This issue is not exclusive to "Automatic Annotations". It also exists with the default "Labels" type annotations with or without the "Automatic Label Format" selected. Thanks for investigating, Bob On 30 December 2015 at 21:53, Utkarsh Ayachit wrote: > Ah, the issue seems to be with "Automatic Annotations". Cory, can you > check this out when you get the chance? I am not entirely sure how > automatic annotations should work here, if at all. > > Utkarsh > > On Tue, Dec 29, 2015 at 5:26 PM, Bob Flandard wrote: > > Hello Utkarsh, > > > > Thank you for the suggestion. The plot I sent has already implicitly > > disabled "automatic label format" by only using the "Draw Annotations" > and > > "Automatic Annotation" options, with the options in the "Labels" section > > unchecked. I tried explicitly unchecking the "Automatic Label Format" as > you > > suggested, but it has no effect in this instance (as expected). > > > > Are you able to reproduce the effect from the attached state file? > > > > Thanks for your help, Bob > > > > > > > > On 29 December 2015 at 21:44, Utkarsh Ayachit < > utkarsh.ayac...@kitware.com> > > wrote: > >> > >> Can you try unchecking the "Automatic Label Format" checkbox on the > >> "Edit Color Legend Parameters" dialog accessible from the "Color Map > >> Editor" panel? I think it's the label formatting that's causing the > >> issue. > >> > >> Utkarsh > >> > >> On Tue, Dec 29, 2015 at 4:07 PM, Bob Flandard > wrote: > >> > Hello Ken, > >> > > >> > Maybe you are seeing something different to what I see when playing > the > >> > different time steps. I see the relative size of each of the discrete > >> > colours in the scalar bar, changing in a random way. The ticks don't > >> > move > >> > and the numbers change appropriately, but the length of each colour is > >> > not > >> > constant. I've attached an image that shows the scalar bar from three > >> > time > >> > step of the data set in the state file I posted yesterday. One (t=96) > >> > has a > >> > good scalar bar and the other two are wrong. > >> > > >> > Thanks for your help, Bob > >> > > >> > On 29 December 2015 at 17:49, Moreland, Kenneth > >> > wrote: > >> >> > >> >> Bob, > >> >> > >> >> I am confused. The "clamp and update every timestep" feature is what > >> >> turns > >> >> on the behavior of changing the scale of every timestep. Just turn it > >> >> off. > >> >> > >> >> -Ken > >> >> > >> >> Sent from my iPad so blame autocorrect. > >> >> > >> >> > On Dec 28, 2015, at 3:17 PM, Bob Flandard > >> >> > wrote: > >> >> > > >> >> > Hello, > >> >> > > >> >> > Sorry if this is old news. > >> >> > > >> >> > The colour ranges on the scalar bar should remain equally spaced, > but > >> >> > with the transfer function reset mode set to "clamp and update > every > >> >> > timestep", they jump about during a time series animation. > >> >> > > >> >> > Attached is a state file that demonstrates the issue (created with > PV > >> >> > v5.0 RC3). Please load it and click the play button, or manually > >> >> > click > >> >> > through time steps. > >> >> > > >> >> > Thanks, Bob > >> >> > > >> >> > ___ > >> >> > Powered by www.kitware.com > >> >> > > >> >> > Visit other Kitware open-source projects at > >> >> > http://www.kitware.com/opensource/opensource.html > >> >> > > >> >> > Please keep messages on-topic and check the ParaView Wiki at: > >> >> > http://paraview.org/Wiki/ParaView > >> >> > > >> >> > Search the list archives at: > http://markmail.org/search/?q=ParaView > >> >> > > >> >> > Follow this link to subscribe/unsubscribe: > >> >> > http://public.kitware.com/mailman/listinfo/paraview > >> > > >> > > >> > > >> > ___ > >> > Powered by www.kitware.com > >> > > >> > Visit other Kitware open-source projects at > >> > http://www.kitware.com/opensource/opensource.html > >> > > >> > Please keep messages on-topic and check the ParaView Wiki at: > >> > http://paraview.org/Wiki/ParaView > >> > > >> > Search the list archives at: http://markmail.org/search/?q=ParaView > >> > > >> > Follow this link to subscribe/unsubscribe: > >> > http://public.kitware.com/mailman/listinfo/paraview > >> > > > > > > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Scalar bar ranges jump around
Hello Cory, Thanks for confirming that you too can see this behavior, and for your efforts investigating it. Regards, Bob On 5 January 2016 at 21:57, Cory Quammen wrote: > Hi Bob, > > Thank you for reporting this issue. I don't know the underlying reason > for this behavior, but I can confirm it and will be looking into it. > > Thank you, > Cory > > On Wed, Dec 30, 2015 at 5:39 PM, Bob Flandard wrote: > > Hello Utkarsh and Cory, > > > > This issue is not exclusive to "Automatic Annotations". It also exists > with > > the default "Labels" type annotations with or without the "Automatic > Label > > Format" selected. > > > > Thanks for investigating, Bob > > > > On 30 December 2015 at 21:53, Utkarsh Ayachit < > utkarsh.ayac...@kitware.com> > > wrote: > >> > >> Ah, the issue seems to be with "Automatic Annotations". Cory, can you > >> check this out when you get the chance? I am not entirely sure how > >> automatic annotations should work here, if at all. > >> > >> Utkarsh > >> > >> On Tue, Dec 29, 2015 at 5:26 PM, Bob Flandard > wrote: > >> > Hello Utkarsh, > >> > > >> > Thank you for the suggestion. The plot I sent has already implicitly > >> > disabled "automatic label format" by only using the "Draw Annotations" > >> > and > >> > "Automatic Annotation" options, with the options in the "Labels" > section > >> > unchecked. I tried explicitly unchecking the "Automatic Label Format" > as > >> > you > >> > suggested, but it has no effect in this instance (as expected). > >> > > >> > Are you able to reproduce the effect from the attached state file? > >> > > >> > Thanks for your help, Bob > >> > > >> > > >> > > >> > On 29 December 2015 at 21:44, Utkarsh Ayachit > >> > > >> > wrote: > >> >> > >> >> Can you try unchecking the "Automatic Label Format" checkbox on the > >> >> "Edit Color Legend Parameters" dialog accessible from the "Color Map > >> >> Editor" panel? I think it's the label formatting that's causing the > >> >> issue. > >> >> > >> >> Utkarsh > >> >> > >> >> On Tue, Dec 29, 2015 at 4:07 PM, Bob Flandard > >> >> wrote: > >> >> > Hello Ken, > >> >> > > >> >> > Maybe you are seeing something different to what I see when playing > >> >> > the > >> >> > different time steps. I see the relative size of each of the > discrete > >> >> > colours in the scalar bar, changing in a random way. The ticks > don't > >> >> > move > >> >> > and the numbers change appropriately, but the length of each colour > >> >> > is > >> >> > not > >> >> > constant. I've attached an image that shows the scalar bar from > three > >> >> > time > >> >> > step of the data set in the state file I posted yesterday. One > (t=96) > >> >> > has a > >> >> > good scalar bar and the other two are wrong. > >> >> > > >> >> > Thanks for your help, Bob > >> >> > > >> >> > On 29 December 2015 at 17:49, Moreland, Kenneth > > >> >> > wrote: > >> >> >> > >> >> >> Bob, > >> >> >> > >> >> >> I am confused. The "clamp and update every timestep" feature is > what > >> >> >> turns > >> >> >> on the behavior of changing the scale of every timestep. Just turn > >> >> >> it > >> >> >> off. > >> >> >> > >> >> >> -Ken > >> >> >> > >> >> >> Sent from my iPad so blame autocorrect. > >> >> >> > >> >> >> > On Dec 28, 2015, at 3:17 PM, Bob Flandard > >> >> >> > wrote: > >> >> >> > > >> >> >> > Hello, > >> >> >> > > >> >> >> > Sorry if this is old news. > >> >> >> > > >> >> >> > The colour ranges on the scalar bar should remai
[Paraview] Custom Glyph
Hi, Any links or advice on how to create a custom glyph? I'd like a sphere divided into 8 equal sized/shaped patches and colored alternate black and white, to represent the centroid of a point mass. I have lots of these, so a glyph would be best. Thanks, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Custom Glyph
Thanks David, I did try that first and was unable to select the "Glyph Type" and gave up. Luckily your post encouraged me to RTM where it states that vtkPolyData should be used for the glyph. A quick extract surface filter fixed that, so thanks very much for your help. Bob On 2 January 2017 at 19:49, David E DeMarle wrote: > Glyph with Custom source filter can do it. Note that it works in CPU/RAM > instead of in a GPU shader so memory can be an issue for all the replicated > geometry. > > To use it, manufacture a mesh that appears the way you want it and save it > in a common mesh format. Load that into the pipeline and hide it, select > the object you want to apply glyphs to and apply the Glyph with Custom > Source filter. Choose the shape you read in as the "Glyph Type" input. > > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > > On Mon, Jan 2, 2017 at 2:35 PM, Bob Flandard wrote: > >> Hi, >> >> Any links or advice on how to create a custom glyph? >> >> I'd like a sphere divided into 8 equal sized/shaped patches and colored >> alternate black and white, to represent the centroid of a point mass. I >> have lots of these, so a glyph would be best. >> >> Thanks, Bob >> >> ___ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> >> > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Custom source glyph error
Hi Dave, In the state file, the glyph source is already polyData - created using the sphere source (sensibly the gui doesn't allow selection of a non polyData glyph source). The composite dataset feature will be very useful for multi colored glyphs. Thanks, Bob On 4 January 2017 at 17:25, David Lonie wrote: > I believe the issue here is that the glyph source must be polydata at the > moment. Does a dataset surface filter (or similar) help? > > I mentioned on the other thread that I'm working on improving the glyph > representation so you won't need to use the filter to get custom glyphs. > This patch will also add the ability to use a composite dataset (with > polydata leaves) as the glyph source. > > Cheers, > Dave > > On Wed, Jan 4, 2017 at 8:02 AM, Bob Flandard wrote: > >> Hi, >> >> I'm getting an error message (see end) using the "glyph with custom >> source filter" for the case where the input points have associated results >> data sets and the custom glyph source is of multiblock type. >> >> I've attached two small sample state files that demonstrate the issue. >> >> The custom glyph should be two hemispheres, one black and one white. One >> state file shows the desired result, but the point source data has no >> results data sets associated with it. The other state file has point >> sources with two associated results data sets (mode1 and mode2) contained >> in the attached Ensight *.case files. This second file gives the error >> message below when loading. >> >> Is this a bug or is there a filter that implements "CopyStructure", that >> I should use? >> >> Thanks for any suggestions, >> >> Bob >> >> >> The error message is: >> >> ERROR: In >> C:\bbd\df0abce0\source-paraview\VTK\Common\DataModel\vtkDataObjectTree.cxx, >> line 306 >> vtkMultiBlockDataSet (17C45180): Structure does not match. You >> must use CopyStructure before calling this method. >> >> ___ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> >> > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Custom Glyph
Excellent! Thanks Dave. Bob On 4 January 2017 at 20:36, David Lonie wrote: > On Wed, Jan 4, 2017 at 2:55 PM, Bob Flandard wrote: > >> Hi Dave, >> >> The multi-colored glyph mechanism using using multi-block data is already >> supported (see attached), but as I mentioned in my original message, >> there's an error with it if the input point data to the custom glyph has >> associated results data. >> > > Ah, gotcha -- yes, that will work. I was thinking of the case where not > only would the colors of the components differ, but the colors would also > vary from point to point. That was recently requested but no feasible with > the current glyphing code. > > Cheers, > Dave > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] OSRay and shadows
Hello, How can I lock the light source direction to change with the 3d viewing angle, so that the shadows with OSRay don't imply a moving light source as I rotate the model in 3d? Thanks, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] OSRay and shadows
Hi, I'm using version 5.2 of ParaView. Thanks, Bob On 6 January 2017 at 00:17, Scott, W Alan wrote: > Bob, > > What version of ParaView are you using? 5.1.2 is known to have issues. > > > > Alan > > > > *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Bob > Flandard > *Sent:* Thursday, January 5, 2017 5:13 PM > *To:* paraview > *Subject:* [EXTERNAL] [Paraview] OSRay and shadows > > > > Hello, > > How can I lock the light source direction to change with the 3d viewing > angle, so that the shadows with OSRay don't imply a moving light source as > I rotate the model in 3d? > > Thanks, Bob > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] OSRay and shadows
Thanks David, The Python code works well enough for my use. I see what you mean about 5.1, it almost does what I want, but is messes up the light directions. Regards, Bob On 6 January 2017 at 13:49, David E DeMarle wrote: > Bob, > > There is no control for that just yet. Work is in progress to provide the > full complement of light controls. If you are working in builting mode, you > can resort to python as follows. > > lights = GetActiveView().GetRenderer().GetLights() > for i in range(0, lights.GetNumberOfItems()): >lights.GetItemAsObject(i).SetLightTypeToSceneLight() > > Note: the light position bug in 5.1 that Alan was referring to had the > effect of making making the light positions fixed (scene lights in vtk > terms). In 5.2 that was corrected and now they are camera relative lights > that move with the viewer as they do with GL rendering. > > hope that helps > > > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > > On Fri, Jan 6, 2017 at 4:39 AM, Bob Flandard wrote: > >> Hi Scott, >> >> Here's a state file, where the shadow of the cylinder is approximately >> perpendicular the the arrows on the ground. As I move the model around in >> 3d with the mouse, I'd like the shadow to remain perpendicular to the >> arrows, similar to how it would look if I walked around the cylinder on a >> sunny day (assuming I didn't walk extremely slowly). I'd like the light >> source to be fixed relative to ground rather than the screen - I'm >> surprised that isn't the default or an option (at least I haven't found it). >> >> Thanks, Bob >> >> ParaView 5.2 on Windows 7 >> >> On 6 January 2017 at 00:17, Scott, W Alan wrote: >> >>> Bob, >>> >>> What version of ParaView are you using? 5.1.2 is known to have issues. >>> >>> >>> >>> Alan >>> >>> >>> >>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Bob >>> Flandard >>> *Sent:* Thursday, January 5, 2017 5:13 PM >>> *To:* paraview >>> *Subject:* [EXTERNAL] [Paraview] OSRay and shadows >>> >>> >>> >>> Hello, >>> >>> How can I lock the light source direction to change with the 3d viewing >>> angle, so that the shadows with OSRay don't imply a moving light source as >>> I rotate the model in 3d? >>> >>> Thanks, Bob >>> >> >> >> ___ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> >> > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] get name of source in pipeline gui
Hi, How to get the name of the active source in the pipeline? (the gui name) gas=GetActiveSource() Then what? I've spent an hour or more on this. Thanks, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] get name of source in pipeline gui
Perfect! Thanks very much Mathieu. Regards, Bob On 9 January 2017 at 09:07, Mathieu Westphal wrote: > Hi > > pxm = servermanager.ProxyManager() > > a=GetActiveSource() > > pxm.GetProxyName('sources',a.SMProxy) > > 'Box1' > > Regards, > > Mathieu Westphal > > On Sun, Jan 8, 2017 at 12:37 PM, Bob Flandard wrote: > >> Hi, >> >> How to get the name of the active source in the pipeline? (the gui name) >> >> gas=GetActiveSource() >> >> Then what? >> >> I've spent an hour or more on this. >> >> Thanks, Bob >> >> ___ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> >> > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Custom filter - coloring multi-block dataset
Hi, Is it possible to edit the *.cpd xml file (or other technique) of a custom filter so that the resulting multi-block geometry has a specific color (and opacity) applied to each block, and the "Coloring" in the "Display (GeometryRepresentation) is set to "Solid Color" rather than "vtkBlockColors"? The output from my custom filter has quite a few blocks that would each require the color/opacity to be set manually using the multi-block viewer. I thought of calling the custom filter from a Python macro, but when tracing the action of changing the colors and opacity via the multi-block viewer, nothing is recorded in the trace. Thanks, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Ansys to ParaView
Hi Anxo, If you're using Ansys MAPDL aka "Classic", then you have a lot of flexibility to code something in apdl to output mesh and results in a format that suits you (and ParaView). For efficient code you would need to make use of the vectorised functions like *vget, *vfun, *voper etc. If you're only going to want to do this once and therefore can't invest the time, upload your database and solution file and send me a link (or send me your apdl input files) and I'll try to upload something you can open in ParaView, less than 1 million nodes is fine. If you're using Workbench, then I believe it writes the apdl commands to define the mesh, loads and BCs, to the project directory along with the solution file *.rst (extension depends on the physics). Regards, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Ansys to ParaView
Hi Anxo, By upload, I mean to your dropbox account, not the ParaView server:) Regards, Bob ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Ansys to ParaView
Hi Anxo, I don't what the capabilities of the Paraview Ansys reader are, but I don't think it can read results data, but that may have changed since I last looked. Try writing the cdb file as "unblocked" and then renaming the extension as *.inp. This may get the mesh in to Paraview but not the results. If your model isn't confidential or too large, you can upload the *.rst file to your Dropbox account and I'll try and convert it for you (*.rst files zip well). I can't give you the apdl scripts to do this as they belong to the company I work for. Regards, Bob On 2 February 2017 at 10:47, Anxo MartÃnez DomÃnguez wrote: > Hi Bob, > > Now, I am working with the ANSYS workbench. I know how to obtain the .cdb > (the model) and the .rst (the result). However, when I load those two files > from ParaView, it do not load anything. It seems strange to me, because > when I try to import the .cdb and .rst files, I choose the ANSYS reader in > ParavieW. > > Thanks! > Regards, > Anxo > > On Wed, Feb 1, 2017 at 12:45 PM, Bob Flandard wrote: > >> Hi Anxo, >> >> By upload, I mean to your dropbox account, not the ParaView server:) >> >> Regards, Bob >> > > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview