Changeset 247 for osgVisual/trunk
- Timestamp:
- Feb 18, 2011, 5:59:39 PM (14 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/bin/osgVisualConfig.xml
r240 r247 2 2 <osgvisualconfiguration> 3 3 <module name="distortion" enabled="no"> 4 <!-- XML configuration of the module "distortion" 5 channelname = name of the channel, used to load the distortion- and blendmaps 6 renderimplementation = technique to distort. 7 Available options: 8 fbo : renderImplementation = osg::Camera::FRAME_BUFFER_OBJECT 9 pbuffer : renderImplementation = osg::Camera::PIXEL_BUFFER 10 pbuffer-rtt : renderImplementation = osg::Camera::PIXEL_BUFFER_RTT 11 fb : renderImplementation = osg::Camera::FRAME_BUFFER 12 window : renderImplementation = osg::Camera::SEPERATE_WINDOW 13 --> 14 <distortion channelname="center" renderimplemmentation="fbo" width="2048" height="2048" useshader="yes" hdr="yes" usetexturerectangle="no"></distortion> 15 <!-- optional: <distortionmap filename="distmap.png"></distortionmap> to set distortionmap independend from channel map--> 16 <!-- optional: <blendmap filename="blendmap.png"></blendmap> to set blendmap independend from channel map --> 4 <distortion channelname="center" renderimplementation="fbo" width="2048" height="2048" useshader="yes" hdr="yes" usetexturerectangle="no"></distortion> 17 5 </module> 18 19 6 <module name="sky_silverlining" enabled="yes"></module> 20 21 7 <module name="vista2d" enabled="yes"> 22 8 <vista2d filename="D:\osgVisual\osgVisual\bin\altimeterSimple.v" paintBackground="no" position_x="1" position_y="1" zoom="1.0" playanimation="yes"></vista2d> 23 9 </module> 24 25 10 <module name="dataio" enabled="yes"> 26 <!-- XML configuration of the module "dataIO"27 The parameter "enabled" is ignored, because dataIO is mandatory for the visual system to place object etc.28 29 Available clusterroles:30 master: This role recieves all relevant information via the extLink implementation and sends it via cluster implementation to the slave nodes.31 slave: This role recieves all relevant rendering information via the cluster implementation.32 standalone: This role recieves all relevant data via the extLink and renders it. No cluster functionality is used.33 -->34 11 <dataio clusterrole="standalone"></dataio> 35 12 <cluster implementation="enet" hardsync="yes" master_ip="10.10.10.10" port="1234" use_zlib_compressor="yes" ></cluster> … … 73 50 <trackmodel id="2" updater_slot="TRACKING_ID"></trackmodel> 74 51 </models> 75 <datetime day="0" month="0" year="0" hour="12" minute=" 30"></datetime>52 <datetime day="0" month="0" year="0" hour="12" minute="50"></datetime> 76 53 <visibility range="50000" turbidity="2.2" ></visibility> 77 54 <clouds> -
osgVisual/trunk/include/sky_Silverlining/visual_skySilverLining.h
r221 r247 144 144 145 145 /** 146 * \brief Set time for the sky system. 146 * \brief Set time for the sky system. Only values >0 are set. 147 147 * 148 148 * @param hour_ : Hour to set. Ranging from 0 to 23 … … 153 153 154 154 /** 155 * \brief Sets the date for the sky system. 155 * \brief Sets the date for the sky system. Only values >0 are set. 156 156 * 157 157 * @param year_ : Year to set. SilverLining can only handle Gregorian calendar years, which means that years before 1582 will not be accurately simulated. -
osgVisual/trunk/src/core/visual_core.cpp
r240 r247 226 226 if(cur_node->type == XML_ELEMENT_NODE && node_name == "datetime") 227 227 { 228 int hour, minute; 229 int day=0,month=0,year=0; 228 int day=-1,month=1-,year=-1, hour=-1, minute=-1; 230 229 231 230 xmlAttr *attr = cur_node->properties; -
osgVisual/trunk/src/distortion/visual_distortion.cpp
r221 r247 97 97 OSG_NOTIFY(osg::WARN) << "WARNING: Unable to parse Frustum values from '" << pre_cfg<<channelname<<post_cfg << "' -- continue without valid frustum values." << std::endl; 98 98 } 99 if( attr_name == "renderimplem mentation" )99 if( attr_name == "renderimplementation" ) 100 100 { 101 101 if(attr_value=="fbo") -
osgVisual/trunk/src/object/object_updater.cpp
r224 r247 27 27 updater_rot_y_rad = object_->getName()+"_ROT_Y"; 28 28 updater_rot_z_rad = object_->getName()+"_ROT_Z"; 29 updater_label = object_->getName()+"_LABEL"; 30 object_->addLabel("default", " "); 29 31 } 30 32 … … 79 81 void object_updater::setUpdaterSlotNames( osgVisual::visual_object* object_, std::string lat_rad_, std::string lon_rad_, std::string alt_, std::string rot_x_rad_, std::string rot_y_rad_, std::string rot_z_rad_, std::string label_) 80 82 { 81 if(lat_rad_!="") 82 updater_lat_rad = lat_rad_; 83 if(lon_rad_!="") 84 updater_lon_rad = lon_rad_; 85 if(alt_!="") 86 updater_alt = alt_; 87 if(rot_x_rad_!="") 88 updater_rot_x_rad = rot_x_rad_; 89 if(rot_y_rad_!="") 90 updater_rot_y_rad = rot_y_rad_; 91 if(rot_z_rad_!="") 92 updater_rot_z_rad = rot_z_rad_; 93 94 if(label_!="") 95 updater_label = label_; 96 else 97 { 98 updater_label = object_->getName()+"_LABEL"; 99 object_->addLabel("default", " "); 100 } 83 updater_lat_rad = lat_rad_; 84 updater_lon_rad = lon_rad_; 85 updater_alt = alt_; 86 updater_rot_x_rad = rot_x_rad_; 87 updater_rot_y_rad = rot_y_rad_; 88 updater_rot_z_rad = rot_z_rad_; 89 updater_label = label_; 101 90 } -
osgVisual/trunk/src/sky_Silverlining/visual_skySilverLining.cpp
r221 r247 95 95 96 96 SilverLining::LocalTime t = atmosphere->GetConditions()->GetTime(); 97 t.SetHour( hour_ );98 t.SetMinutes( minute_ );99 t.SetSeconds( second_ );97 if(hour_) t.SetHour( hour_ ); 98 if(minute_) t.SetMinutes( minute_ ); 99 if(second_) t.SetSeconds( second_ ); 100 100 atmosphere->GetConditions()->SetTime( t ); 101 101 } … … 108 108 109 109 SilverLining::LocalTime t = atmosphere->GetConditions()->GetTime(); 110 t.SetYear( year_ );111 t.SetMonth( month_ );112 t.SetDay( day_ );110 if(year_) t.SetYear( year_ ); 111 if(month_) t.SetMonth( month_ ); 112 if(day_) t.SetDay( day_ ); 113 113 } 114 114
Note: See TracChangeset
for help on using the changeset viewer.