-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates osgexport files and build script
- Loading branch information
Showing
64 changed files
with
242 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cd blender-2.5/exporter/ | ||
version=$(cat osg/__init__.py | grep '"version":' | sed 's/.*(\([0-9]*\),\([0-9]*\),\([0-9]*\).*/\1.\2.\3/' ) | ||
cd exporter/ | ||
version=$(cat osg/__init__.py | grep '"version":' | sed -e 's/[a-zA-Z "():]*//g' -e 's/,$//g' -e 's/,/-/g') | ||
appname=osgexport-$version | ||
echo $appname | ||
zip -r ../build/${appname}.zip . -i \*.py |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/avatar/avatar.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/avatar/avatar.blend ) | ||
SET ( DATA_TARGET avatar ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/bees/bees.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/bees/bees.blend ) | ||
SET ( DATA_TARGET bees ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/bignathan/bigcharacter.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/bignathan/bigcharacter.blend ) | ||
SET ( DATA_TARGET bignathan ) | ||
BUILD_DATA() |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ | |
# Authors: | ||
# Cedric Pinson <[email protected]> | ||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/car/BMW-MikePan2.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/car/BMW-MikePan2.blend ) | ||
SET ( DATA_TARGET car ) | ||
BUILD_DATA() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/cycles/cycles.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/cycles/cycles.blend ) | ||
SET ( DATA_TARGET cycles ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/example/example.blend) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/example/example.blend) | ||
SET ( DATA_TARGET example ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/ipos/simple_anim.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/ipos/simple_anim.blend ) | ||
SET ( DATA_TARGET anim ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/lights/lights.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/lights/lights.blend ) | ||
SET ( DATA_TARGET lights ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/multimaterial/floor.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/multimaterial/floor.blend ) | ||
SET ( DATA_TARGET floor ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/nathan/character.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/nathan/character.blend ) | ||
SET ( DATA_TARGET nathan ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/normalmap/barrel.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/normalmap/barrel.blend ) | ||
SET ( DATA_TARGET barrel ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ | |
# Authors: | ||
# Cedric Pinson <[email protected]> | ||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/robot/robot.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/robot/robot.blend ) | ||
SET ( DATA_TARGET robot ) | ||
BUILD_DATA() |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
# Cedric Pinson <[email protected]> | ||
|
||
|
||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/data/walker/Jansens.blend ) | ||
SET ( DATA_SOURCE ${PROJECT_SOURCE_DIR}/samples/walker/Jansens.blend ) | ||
SET ( DATA_TARGET Jansens ) | ||
BUILD_DATA() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
obj ParentBone | ||
|
||
Parsing object 'ParentBone' of type ARMATURE | ||
processing Armature ParentBone | ||
|
||
Parsing object 'Triangle' of type MESH | ||
exporting object Triangle | ||
mesh_object is Plane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
#Ascii Scene | ||
#Version 92 | ||
#Generator osgexport 0.14.2 | ||
|
||
osg::Group { | ||
UniqueID 21 | ||
Name "Root" | ||
Children 1 { | ||
osgAnimation::Skeleton { | ||
UniqueID 0 | ||
Name "ParentBone" | ||
UpdateCallback TRUE { | ||
osgAnimation::UpdateSkeleton { | ||
UniqueID 1 | ||
} | ||
} | ||
Children 1 { | ||
osgAnimation::Bone { | ||
UniqueID 2 | ||
Name "Bone" | ||
DataVariance DYNAMIC | ||
UpdateCallback TRUE { | ||
osgAnimation::UpdateBone { | ||
UniqueID 3 | ||
Name "Bone" | ||
StackedTransforms 4 { | ||
osgAnimation::StackedMatrixElement { | ||
UniqueID 4 | ||
Name "bindmatrix" | ||
Matrix { | ||
1.00000 0.00000 0.00000 0.00000 | ||
0.00000 0.00000 1.00000 0.00000 | ||
0.00000 -1.00000 0.00000 0.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
} | ||
} | ||
osgAnimation::StackedTranslateElement { | ||
UniqueID 5 | ||
Name "translate" | ||
Translate 0.00000 0.00000 0.00000 | ||
} | ||
osgAnimation::StackedQuaternionElement { | ||
UniqueID 6 | ||
Name "quaternion" | ||
Quaternion 0.00000 0.00000 0.00000 1.00000 | ||
} | ||
osgAnimation::StackedScaleElement { | ||
UniqueID 7 | ||
Name "scale" | ||
Scale 1.00000 1.00000 1.00000 | ||
} | ||
} | ||
} | ||
} | ||
Children 1 { | ||
osgAnimation::Bone { | ||
UniqueID 8 | ||
Name "Bone.002" | ||
DataVariance DYNAMIC | ||
UpdateCallback TRUE { | ||
osgAnimation::UpdateBone { | ||
UniqueID 9 | ||
Name "Bone.002" | ||
StackedTransforms 4 { | ||
osgAnimation::StackedMatrixElement { | ||
UniqueID 10 | ||
Name "bindmatrix" | ||
Matrix { | ||
1.00000 0.00000 0.00000 0.00000 | ||
0.00000 1.00000 0.00000 0.00000 | ||
0.00000 -0.00000 1.00000 0.00000 | ||
0.00000 1.00000 0.00000 1.00000 | ||
} | ||
} | ||
osgAnimation::StackedTranslateElement { | ||
UniqueID 11 | ||
Name "translate" | ||
Translate 0.00000 0.00000 0.00000 | ||
} | ||
osgAnimation::StackedQuaternionElement { | ||
UniqueID 12 | ||
Name "quaternion" | ||
Quaternion 0.00000 0.00000 0.00000 1.00000 | ||
} | ||
osgAnimation::StackedScaleElement { | ||
UniqueID 13 | ||
Name "scale" | ||
Scale 1.00000 1.00000 1.00000 | ||
} | ||
} | ||
} | ||
} | ||
Children 1 { | ||
osg::MatrixTransform { | ||
UniqueID 15 | ||
Name "Triangle" | ||
Children 1 { | ||
osg::Geode { | ||
UniqueID 19 | ||
Name "GeodePlane" | ||
Drawables 1 { | ||
osgAnimation::RigGeometry { | ||
UniqueID 18 | ||
Name "Triangle" | ||
PrimitiveSetList 1 { | ||
DrawElementsUByte GL_TRIANGLES 3 { | ||
0 1 2 | ||
} | ||
} | ||
VertexData { | ||
Array TRUE ArrayID 0 Vec3fArray 3 { | ||
1.00000 -1.00000 1.45249 | ||
1.00000 1.00000 1.45249 | ||
-1.00000 1.00000 1.45249 | ||
} | ||
Indices FALSE | ||
Binding BIND_PER_VERTEX | ||
Normalize 0 | ||
} | ||
NormalData { | ||
Array TRUE ArrayID 1 Vec3fArray 3 { | ||
-0.00000 0.00000 1.00000 | ||
-0.00000 0.00000 1.00000 | ||
-0.00000 0.00000 1.00000 | ||
} | ||
Indices FALSE | ||
Binding BIND_PER_VERTEX | ||
Normalize 0 | ||
} | ||
InfluenceMap 2 { | ||
VertexInfluence "Bone" 3 { | ||
0 0.41718 | ||
0 0.41718 | ||
1 0.35746 | ||
} | ||
VertexInfluence "Bone.002" 4 { | ||
0 0.58282 | ||
0 0.58282 | ||
1 0.64254 | ||
2 0.99334 | ||
} | ||
} | ||
SourceGeometry TRUE { | ||
osg::Geometry { | ||
UniqueID 17 | ||
Name "Triangle" | ||
PrimitiveSetList 1 { | ||
DrawElementsUByte GL_TRIANGLES 3 { | ||
0 1 2 | ||
} | ||
} | ||
VertexData { | ||
Array TRUE ArrayID 0 | ||
Indices FALSE | ||
Binding BIND_PER_VERTEX | ||
Normalize 0 | ||
} | ||
NormalData { | ||
Array TRUE ArrayID 1 | ||
Indices FALSE | ||
Binding BIND_PER_VERTEX | ||
Normalize 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Matrix { | ||
1.00000 0.00000 0.00000 0.00000 | ||
0.00000 -0.00000 -1.00000 0.00000 | ||
0.00000 1.00000 -0.00000 0.00000 | ||
0.91055 -0.60056 0.96109 1.00000 | ||
} | ||
} | ||
} | ||
Matrix { | ||
1.00000 0.00000 0.00000 0.00000 | ||
0.00000 1.00000 0.00000 0.00000 | ||
0.00000 0.00000 1.00000 0.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
} | ||
InvBindMatrixInSkeletonSpace { | ||
1.00000 -0.00000 0.00000 -0.00000 | ||
-0.00000 -0.00000 -1.00000 0.00000 | ||
0.00000 1.00000 -0.00000 -0.00000 | ||
-0.00000 -1.00000 0.00000 1.00000 | ||
} | ||
} | ||
} | ||
Matrix { | ||
1.00000 0.00000 0.00000 0.00000 | ||
0.00000 1.00000 0.00000 0.00000 | ||
0.00000 0.00000 1.00000 0.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
} | ||
InvBindMatrixInSkeletonSpace { | ||
1.00000 -0.00000 0.00000 -0.00000 | ||
-0.00000 0.00000 -1.00000 0.00000 | ||
0.00000 1.00000 0.00000 -0.00000 | ||
-0.00000 0.00000 -0.00000 1.00000 | ||
} | ||
} | ||
} | ||
Matrix { | ||
1.00000 0.00000 0.00000 0.00000 | ||
0.00000 1.00000 0.00000 0.00000 | ||
0.00000 0.00000 1.00000 0.00000 | ||
-0.27407 -0.15860 -0.39944 1.00000 | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.