Adds texture to .osg models
Create one build folder, compile your package, set the file path inside the main.cpp and then run the main file
It requires 4 arguments, were they are:
$ ./build/main operation child texture_number scale_x scale y
There are 3 avaiable operations
r
- clean all the geodes who not have a drawable (geometry)p
- Preview of the child with the desired texturef
- Preview of the child in the full model with the desired texturet
- Applies the texture
After applying your texture, clean the geodes in order to reduce the model size
OpenSceneGraph required libraries:
osgDB osgUtil osgViewer osgFX osgGA
Install the OpenSceneGraph :
sudo apt install openscenegraph
The repository contains already some textures, in order to add new ones it's necessary to include the normal map and the specular, it's up to the user to change the texture options in the main code
Give an example
- OpenSceneGraph - 3D View Tool
- Tiago Trocol - Initial work - PurpleBooth
- Cleber Couto Filho - Repository organization - clebercoutof
This script was used to apply texture to simulation models, drawn on blender and converted from .obj to .osg. They were used together with camera algorithms and Gazebo simulator.