Changeset 13190

Show
Ignore:
Timestamp:
09/15/14 19:53:44 (11 hours ago)
Author:
robert
Message:

Added .tf & .tf-255 plugin for reading ascii 1D transfer functon files in support for volume rendering.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmultiplemovies/osgmultiplemovies.cpp

    r13189 r13190  
    652652        movie_event_handler = new MovieEventHandler(); 
    653653 
    654         unsigned int num_files_per_row = std::max(osg::round(sqrt(static_cast<float>(std::min(max_videos, static_cast<unsigned int>(files.size()))))), 1.0f); 
     654        unsigned int num_files_per_row = std::max(osg::round(sqrt(static_cast<double>(std::min(max_videos, static_cast<unsigned int>(files.size()))))), 1.0); 
    655655        static const float new_row_at = num_files_per_row * desired_height * 16 / 9.0; 
    656656