Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
MicroStation Wiki Particle Trace Rendering
    • Sign In

    • +MicroStation Wiki
    • +Administration Wiki
    • +Annotations Wiki
    • +Bentley View Wiki
    • +MicroStation PowerDraft
    • +Programming Wiki
    • -Visualization Wiki
      • Assigned Material will not render
      • +Bentley LumenRT
      • Customize the list of cities available to Solar Position
      • How to: Smart way to place a camera
      • Image from reference appears darker in MicroStation V8i (SELECTseries 3)
      • KEYIN: RENDER VIEW DOES NOT WORK
      • +Luxology beginners guide
      • Luxology Presets and additional Light Probes
      • Luxology Rendering Engine Failed
      • Particle Trace Rendering
      • Photomatch demonstration
      • Physics Simulation with Blender
      • UV Editing with MicroStation, Blender and Photoshop
      • Warning message when placing RPC cell

     
     Questions about this article, topic, or product? Click here. 

    Particle Trace Rendering

    Document Information

    Document Type: FAQ  

    Product(s):  MicroStation

    Version(s):  V8

    Original Author: Bentley Technical Support Group

    Legacy Document Number:  6212

    What is the best way to get started in Particle Tracing?

    A very good starting point is to download the V8 Particle Tracing Tutorial. This tutorial introduces the basics of particle tracing and follows on to give you pointers on what settings to use and how to improve your images.

    Why do I have color blotches in my solution?

    Color blotches or spots in your image indicate that you need to use more particles. The unevenness is caused by not enough particles hitting the element to light it evenly.

    Do I have to start again each time I need to add more particles?

    No, you can use the Add more particles and redo mesh option. This can be accessed via the second icon (from left) in the Render tool dialog box, or from the Action option menu in the Particle Tracing dialog box.

    Why does my Particle Traced image often look much brighter than the same view Ray Traced?

    Particle Tracing uses real world lighting values, and it calculates also the light reflected from walls and other objects just as happens in real life. After Particle Tracing, you can adjust the image with the Brightness Multiplier/Adapt to Brightness setting (followed by Display current solution), or interactively with the Brightness slider that is part of the Visualization Stream enhancements.

    Why are my interior lights so dull when I use Solar or Distant lights at the same time?

    As in real-life, light from the Sun (Solar lighting) is so much brighter than normal interior lights that the effect from them is washed out. If you want mainly interior lighting, with some exterior, turn down the brightness of the Solar lighting (or any Distant Lights that you have on). Alternatively, use the Brightness Multiplier/Adapt to Brightness option to adjust the image (using Display Current Solution after changing the setting). Better still, if you have the Visualization Stream enhancements, use the Brightness slider to adjust the image interactively.

    How can I get sharp shadows in my Particle Traced images?

    To get sharper shadows from Particle Tracing alone, you need to add more particles, or reduce the Smoothness setting. Reducing Smoothness, however, may introduce some noise (splotches) into the image, so you have to balance the two settings.

    Another option is to turn on Ray Trace Direct Illumination. With this setting on, you get sharp shadows from any direct illumination, while still getting soft shadows from the indirect illumination (that is from the light reflected off other objects in the scene).

    Why/how is Particle Tracing better than Radiosity?

    Particle Tracing can produce a complete solution. When Ray Traced, these produce images that include both diffuse and specular reflections, as well as caustics, such as light reflected by mirrors or focused through lenses. As well, Particle Tracing is better suited to larger designs because it writes its computations directly to disk.

    Radiosity solutions, when Ray Traced, display only diffuse reflections and specular reflections/refraction, without caustics. As well, Radiosity works in RAM, rather than on disk. This restricts the size of models that can be used effectively with Radiosity.

    What is Gamma Correction and how should I use it?

    Color displays on monitors can vary substantially from system to system. When we are dealing with photo-realistic images, this can create problems where an image looks life-like on one monitor, but unrealistic on another. Currently, there is no "standard" that makes all display devices display colors exactly the same. Because of this, we need some way to "calibrate" our monitors to produce some degree of uniformity, such as setting the colors to match a standard color card. Gamma Correction alone will not calibrate a monitor completely, as it applies to the intensity (brightness) of a pixel, but not its hue.

    For the purposes of rendering and displaying images on screen, Gamma Correction does give us some degree of control to set up our systems to display images with a similar brightness on different monitors. If the images were to be displayed only on one system, then there would not be a problem. You could "tweak" the gamma (and other) settings on that system to get the desired result. Monitor display correction can be applied:

    • At the system level - operating system
      Operating Systems, such as Windows 2000 let you set color profiles for your monitor. Currently, however, MicroStation ignores this system level setting when rendering images. If you are using Windows system-level correction for other applications, you can set MicroStation's view Gamma Correction to match the appearance of other applications.
      For saved images that you want to display in other applications, however, a gamma correction value of 1.0 probably should be used when saving the image - the system level correction will be applied when the image is displayed in the other application.

       

    • At the system level - display driver
      Many graphics cards let you control the display of your screen, including setting a gamma value. These settings affect all applications, including MicroStation, making it easier to match presentations across applications. In these cases, you should be able to leave the screen gamma setting in MicroStation at its neutral value of 1.0 (the default).

       

    • Via MicroStation
      When you set the view Gamma Correction in MicroStation, it applies to the on-screen display in MicroStation only. Any images that you render to screen will have the gamma correction applied to them, but images that you save to disk use the Gamma Correction setting in the Save Image dialog box.

       

    • To saved images
      When you save an image from MicroStation, you have the option of applying Gamma Correction to it. This may be to accommodate a printer to produce hard-copy output that more closely represents what is seen on the screen. As a rule, it is better to save images with a neutral gamma value (1.0) and let other software, or printing device software, that you use add the gamma correction that they require.
      With this philosophy, however, there is one proviso. That is, that you can perform a better gamma correction in MicroStation, while you still have floating point brightness values before they are saved in a typical integer brightness file format. What this means is, if you have a specific display or output device that you are catering for, it may be advantageous to save the image with a gamma correction value (other than 1.0). While this will tie the image to the output device, it may also give the best result.

    Typical settings
    CRT type monitors require a gamma correction value in the range of 1.8 to 2.5, while for most LCD type monitors this can be left at the neutral value of 1.0.

    Gamma settings and banded rendering
    When you create images, using banded rendering across two or more networked computers, the gamma correction factor is taken from the Save Image dialog box. The possibly varying gamma correction settings of the different machines, therefore, will have no effect on the saved image.

    Viewing saved images
    When you view your saved images via the Display Image dialog box (Utilities > Image > Display), you see the image without MicroStation's view Gamma Correction. Any gamma correction that you specified at the time of saving will be part of the saved image, but the view gamma correction is ignored. Of course, if gamma correction has been set at the system level, this will have an effect on the displayed image.

    For further research
    A very good website to investigate more fully the effects of gamma correction, how to calibrate monitors, and other related topics is http://selectservices.bentley.com/technotes/faqs/www.aim-dtp.net.

    What settings should I start with for Particle Tracing?

    Typically, the default settings are a very good starting point. Often, the only setting that needs to be changed is that for "Use...Million Particles". Even so, it is a good idea to start with the default of 1 million to have a preview look at the image, before adding more particles (and taking more time). Using the Add more particles and redo mesh tool, you can add more particles rather than starting again from scratch.

    To set your Particle Tracing settings to the defaults open the Particle Tracing dialog box, select Interface > Reset Default Settings.

    How many particles should I use?

    It is unlikely that the default setting of 1 million particles will be enough for a finished presentation image, but it does let you see, in a relatively short time, whether there are any glaring mistakes. These may be materials missing, or lights not correctly set up. If everything is satisfactory, you then can use the Add more particles and remesh option to keep adding particles until you have the quality of image that you require. Typically, this may be 10-50 million for small or simple models through to 200-500+ million particles for bigger, or more complex models.

    Where an "overall" view is required, often you can use a smaller number of particles compared to when you want the ability to zoom in on particular areas of the model. The following image has been Particle Traced with 1 million particles. You can see "splotches" on the walls and other imperfections, due to not enough particles being used.

     

    Image1

     

    When the value is increased to 50 million particles (see following image), there is an improvement, with the walls looking much smoother. Notice also that the sofas in the foreground don't have the "rainbow" effect that was evident in the first image. When you get this effect in your images it is a sure sign that you need to increase the number of particles used.

     

    Image2

     

    The relationship between Particles and Hit Points

    While one of the most important settings for Particle Tracing is the number of particles used, in fact it is the number of hit points (from these particles) that determines the quality of the resulting image. One particle can generate numerous hit points as it bounces around the model. Particles that do "hit" the model, are absorbed, reflected, refracted/transmitted by the material, and thereby "bounce" around the model. Particles that do not hit the model have no bearing on the result. Unfortunately, there is no magic number of hit points that automatically gives realistic results. It depends on many factors, but especially the complexity of your design.

    Take, for example, the situation where you found that a particular number of hit points on a design of an office building, was exactly right to get a realistic solution. If you then added a second copy of the same building, the chances are that you would need about twice as many hit points to get a similar quality image of both buildings.

    Typically, to get the best results you need hundreds of millions of hit points for a moderate to large design. In the example images discussed above, 1 million particles produced more than 3 million hits (remember the light particles "bounce" around the model. Similarly, the 50 million particle solution produced more than 150 million hits (again 3:1 hit points to particles).

    Fortunately, the particle tracer is reasonably linear and predictable in performance. For example, if you double the number of particles, it takes about twice as long to process (from start to finish).

    What affects Particle Tracing processing times?

    When running PT, the system decomposes the model into triangles (in memory), onto which particle hit points are recorded. The time needed to mesh each of these triangles is directly related to the number of hit points on it. So, the more hit points it has, the longer it takes to mesh.

    There are several areas that should be watched in order to speed up the meshing:

    Materials
    Do not make materials overly reflective. In nature, very few materials reflect more than 70 or 80% the light they receive. This applies to textures as well as base colors.

    When creating a material definition, the Specular setting is used for both specular reflection (in conjunction with the Reflect setting) and for specular highlights (in conjunction with the Finish setting). Even a small amount is enough to slow down the calculations.

    The number of light sources and number of area light samples also can affect Specular material calculations. Similarly, turning on Anti-aliasing will further complicate the processing, because it takes even more samples per pixel. As a rule, avoid superfluous use of specular materials. You can do this by:

    • setting Specular to zero,
      or by
    • setting both Reflect and Finish to zero in the material definition.

    Mesh Detail
    If sharp shadows are not important, you can lower the Mesh Detail setting from its default of 2.0, down to 1.5, or even lower. This will give better performance with only some loss of detail. Conversely, it should never be necessary to raise Mesh Detail any higher than 2.0, because it really slows things down and usually there is no noticeable improvement (Mesh Detail can be any value from 1.0 to 5.0, but values above 2.0 may need to be keyed in, depending on the version of the software - visualization stream enhancements).

    Why are some surfaces in my image faceted?

    Typically, in Particle Tracing, faceted geometry occurs on curved surfaces due to insufficient particles being shot and recording hit points on these surfaces.

    As with other rendering modes, when a view is Particle Traced, the geometry first is decomposed into a polygon mesh. The Stroke Tolerance setting (Rendering Settings dialog box) controls the size of the polygons forming this mesh. Decreasing the Stroke Tolerance will decrease the size of these polygons and increase processing time, but it will not increase the number of hit points on the surfaces.

    Reducing the Smoothness setting will help to reduce the amount of faceting, but with the possible increase of "noise" (splotches) in the image. For the best result, with Particle Tracing, use more particles to reduce faceting.

    What is the difference between Stroke Tolerance, Override, and Mesh Detail?

    Stroke Tolerance is set from the Rendering Setting dialog box (Settings > Rendering > General) or via the General tab of the Rendering Setup dialog box (Settings > Rendering > Setup). Mesh Detail is set via the Meshing Settings section of the Particle Tracing dialog box (Advanced Settings).

    Stroke Tolerance
    Determines how curved surfaces are broken up into a triangulated polygon mesh. It defines how far from the original surface any one polygon can be. This determines the geometric shape of a surface in the rendered view. Smaller settings produce surface meshes much closer to the original surface, at the expense of longer processing time.

    By default, Stroke Tolerance is set as a value in pixels, which means that the size of the geometry as seen in the view being rendered determines the accuracy of the surface representation. If you later zoom in on a part of the view, and redisplay the Particle Trace solution, some curved surfaces and edges may appear faceted. This is because the rendering database was created at the accuracy of the zoomed out view. This same phenomenon can occur when you are rendering a camera view, because the camera is turned off (in memory) prior to processing, which may cause the geometry to appear much smaller in the view.

    Override
    Is relevant only for Ray Tracing (with Render All Objects enabled), Radiosity, or Particle Tracing. It lets you override the Stroke Tolerance setting in pixels and specify the maximum deviation from the original surface in Master Units. This ensures that all surfaces are treated the same, no matter what the magnification of the view. This is the safest option when using camera views, or when creating animation files where various magnifications will be used with the existing solution. You can set the Override to a figure that ensures the surfaces display correctly at all required magnifications. Typically, the closer to the curved surfaces that you expect to go, the lower the Override setting should be, bearing in mind that lower settings produce longer processing times.

    Mesh Detail
    Controls the fineness of the Particle Tracing mesh on the surface. It doesn't change the shape of the surface. Typically, you should leave the Mesh Detail setting at its default value of 2.0. If you want to lose some image quality in return for faster performance, you could try lowering it to 1.5 or even 1.0.

    How can I simulate a "light dome" environment?

    There are times when you want to have your model illuminated "generally", with very soft shadows (as though there was a lighting dome over it). One way of doing this is to use Solar Lighting, with the Altitude Angle set to 90 degrees, in conjunction with added sky light. By adjusting the settings for Cloudiness and Air Quality, you can further "tweak" the image to produce various effects, as required.

    In the following sequence of images, using such a lighting setup, the default Sky samples settings were used for Particle Tracing - 145, and Ray Tracing - 32. In each case, the Particle Traced image is shown on the left, with the Ray Traced image on the right.

     

    Image3
    1. Cloudiness set to 0 (Clear), and Air Quality set to 1 (Perfectly Clean) Particle Traced shadows (left) look more natural. They are not as dark, nor as sharply defined as the Ray Traced image.

     

     

    Image4
    2. With Cloudiness set to 0.5, and Air Quality set to 3 (Urban) Particle Traced image (left) displays very soft shadows. Shadows from the Ray Traced image still are sharp.

     

     

    Image5
    3. With Cloudiness set to 1 (Cloudy) and Air Quality set to 1 (Perfectly Clean) Because this setting is simulating a very overcast sky, the Particle Traced image is evenly lit, with almost no sign of shadowing. With the Ray Traced image (right), the heavily overcast conditions do not provide enough light for specular highlights.

     

     

    Image7
    4. With Cloudiness set to 0 (Clear) and Air Quality set to 5 (Industrial) In both images, the shadows are softened in color by the "Industrial" air dispersing the light. Still the Particle Traced image looks more natural. By changing the Azimuth and Altitude angles, you can "skew" the direction of the principal light source.

     

    What are Sky Openings and when/why should I use them?

    Sky Openings are created in a similar fashion to an Area Light source. That is, you create a polygon, and then use the Define Light tool to convert this element to a (directional) Sky Opening. Like light sources, you can turn Sky Openings on or off as required.

    In Particle Traced images, Sky openings are a means of "focusing" particles shot from Solar or Distant light sources on to a particular part of a model. They ensure that particles are not "wasted" on parts of the model not required for the image being produced.

    In operation, each sky opening (that is turned on) is assigned a number of particles to shoot, based on its projected area as seen from the light source. The particles then are shot from random locations on each opening (in the appropriate directions). Sky Openings themselves don't receive or reflect any particles.

    Interior views
    You should use sky openings to force any Solar and Distant light particles to be shot through openings into the interior scene. You can use more than one sky opening. For example, you can place sky openings in front of each doorway and/or each window, to concentrate the particles through these openings. Without the sky openings, many particles from the Solar and Distant lighting would be "lost" illuminating the walls outside the room or building. Where the external Solar or Distant light is shining through small openings then this is even more important and can make an enormous difference to the number of hit points recorded in the required part of the model.

    In the following image, 300 million particles were shot, but no sky openings were used.

     

    Image9

     

    We can see that light is coming in through the windows, but there is not enough to illuminate the interior properly. In fact the 300 million particles produced only 132 million hits. In the following image, showing an exterior view of the model, we can see that many of these particles that produced hits were wasted on illuminating the exterior walls.

     

    Image10

     

    By adding sky openings in front of each window, we see the result (following image), which is produced from the same quantity of particles, 300 million.

     

    Image11

     

    This time, the 300 million particles produced 427 million hit points. The sky openings forced all the particles to pass through the windows to the interior. Looking at an exterior view, we see that none were wasted on the exterior walls.

     

    Image12

     

    Exterior views
    With exterior views, again you can use sky openings to maximize the number of hit points used in the calculations. A good general technique to use is to place sky openings in the form of a box, surrounding (just clear of) the model, or the part of the model required for the image. If you are particle tracing just part of the model, you should take into account any possible effects from nearby objects. That is, the sky openings should envelope all objects that may impact on the image.

    Remember, also, that Solar and Distant lighting only shines "down", so there is no need to place a sky opening underneath the model. In the following image, no Sky Openings were used. From a setting of 50 million particles, only 42 million hit points were recorded.

     

    Image13

     

    When Sky Openings are placed around and above the model as shown in heavy line weight black rectangles in the next image, the number of hit points from the same 100 million particles increases from 42 to 111 million.

     

    Image14

     

    Looking at the resulting image, at this magnification it looks similar to the first image (note the darkened band at the top and top right, at the limit of the sky openings). At this magnification, there is not much to show for the extra hit points.

     

    Image15

     

    When you zoom in closer, to a darker area in particular, the difference is easily noticeable, and shows the advantage of the extra hit points. Without Sky Openings, a close up shows that many more hit points are required for the columns, arches, and the foliage in the foreground.

     

    Image16

     

    Although the image produced with Sky Openings active also needs more particles (hit points), it is more advanced than the first image. In this second image, you can see that the arches, columns, and foreground foliage already are better defined.

     

    Image17

     

    What are sky samples and how should I use them?

    When you turn on Add Sky Light to all Solar and Distant Lights, in the Global Lighting dialog box, the Sky Samples setting determine how many "patches" the sky hemisphere is divided into to simulate the sky. They apply only to Solar and Distant light sources.

    For simple scenes, using Particle Tracing, the default setting of 145 sky patches is sufficient, but there are cases where you may need to increase this number to get better accuracy.

    One such example would be a room with very small windows. In that case, you may have to increase the setting to make sure that light from at least one sky patch gets through the window.

    Particle tracing, without Ray Trace Direct Illumination, is most efficient at handling large numbers of sky samples without losing performances (the same is true for large numbers of area light samples).

    In general, how many sky samples you need depends on the rendering mode, each of which has a default setting on the Sky Samples option menu.

    If you are using Particle Tracing without Ray Trace Direct Illumination, then the default of 145 samples should be sufficient, and efficient in terms of performance, though the number of samples really should not affect performance in this case.

    If, however, you have Ray Trace Final Display enabled, and your materials have a specular component, this could slow down the ray tracing portion of the process as checks are made for specular highlights.

    How many samples should I use for Area Lights?

    Area lights simulate diffuse lighting like that produced by fluorescent tubes, for example. The Samples setting is used by the Ray Tracing process (only) to "soften" the shadows and give a more natural look. Increasing the Samples setting, while softening the shadows, also increases processing time. The following images show the effect of various values of Samples from a single rectangular Area Light source. In each case the images were Particle Traced with Ray Trace Direct Illumination turned on.

     

    Image18
    1. Samples set to 4 (the default).

     

     

    Image19
    2. Samples set to 10

     

     

    Image20
    3. Samples set to 256 (the maximum)

     

    Looking at the three images, notice that setting Samples too low produces individual shadows (at this magnification). With the maximum setting, this is not noticeable, but the processing time is much longer. If using this feature, it is a good idea to render a simple example to see what setting is most suitable for your model and view magnification.

    See Also

    Product TechNotes and FAQs

    MicroStation Desktop TechNotes and FAQs

    External Links

    Bentley Technical Support KnowledgeBase

    Bentley LEARN Server

    Comments or Corrections?

    Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

     

       

    • sky sample
    • color blotch
    • Area Light
    • Light Source
    • FAQs
    • Ray Traced
    • mesh detail
    • particle tracing
    • Sky Opening
    • Stroke Tolerance
    • MicroStation V8
    • TechNote
    • Gamma Correction
    • Light dome
    • Radiosity
    • override
    • TN6212
    • FAQ6212
    • Share
    • History
    • More
    • Cancel
    • Dan Koval Created by Bentley Colleague Dan Koval
    • When: Fri, Sep 6 2013 2:02 PM
    • Leonard Jones Last revision by Bentley Colleague Leonard Jones
    • When: Wed, Jan 20 2016 2:53 AM
    • Revisions: 2
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies