Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/lwo/Object.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/lwo/Object.cpp
r11517 r13041 120 120 Unit new_unit; 121 121 for (lwo2::FORM::PNTS::Point_list::const_iterator i=pnts->point_location.begin(); i!=pnts->point_location.end(); ++i) { 122 new_unit.points()->push_back(csf_->fix_point(osg::Vec3(i->X, i->Y, i->Z) /*+ current_layer.pivot()*/)); 122 new_unit.points()->push_back(csf_->fix_point(osg::Vec3(i->X, i->Y, i->Z) /*+ current_layer.pivot()*/)); 123 123 } 124 124 new_unit.shares().assign(new_unit.points()->size(), Unit::Index_list()); … … 275 275 VertexMap *this_map = current_layer.units().back().polygons().at(i->poly.index).weight_maps()->getOrCreate(vmad->name); 276 276 (*this_map)[i->vert.index] = osg::Vec4(i->value.at(0), 0, 0, 0); 277 } 277 } 278 278 } 279 279 if (type == "TXUV") { … … 285 285 VertexMap *this_map = current_layer.units().back().polygons().at(i->poly.index).texture_maps()->getOrCreate(vmad->name); 286 286 (*this_map)[i->vert.index] = osg::Vec4(i->value.at(0), i->value.at(1), 0, 0); 287 } 287 } 288 288 } 289 289 if (type == "RGB ") { … … 295 295 VertexMap *this_map = current_layer.units().back().polygons().at(i->poly.index).rgb_maps()->getOrCreate(vmad->name); 296 296 (*this_map)[i->vert.index] = osg::Vec4(i->value.at(0), i->value.at(1), i->value.at(2), 1); 297 } 297 } 298 298 } 299 299 if (type == "RGBA") { … … 305 305 VertexMap *this_map = current_layer.units().back().polygons().at(i->poly.index).rgba_maps()->getOrCreate(vmad->name); 306 306 (*this_map)[i->vert.index] = osg::Vec4(i->value.at(0), i->value.at(1), i->value.at(2), i->value.at(3)); 307 } 307 } 308 308 } 309 309 } … … 430 430 case Image_map::Z: uv.set(cylindrical_angle(P.x(), -P.y()), P.z()); break; 431 431 default: ; 432 } 432 } 433 433 uv.x() *= block.get_image_map().wrap_amount_w; 434 434 uv += osg::Vec2(0, 0.5f);
