Skip to content

Commit

Permalink
exprot script material support added
Browse files Browse the repository at this point in the history
  • Loading branch information
soniccat committed Jan 16, 2010
1 parent c039253 commit be9d0c6
Show file tree
Hide file tree
Showing 11 changed files with 27,781 additions and 1,236 deletions.
593 changes: 269 additions & 324 deletions BlenderWork/exportScript

Large diffs are not rendered by default.

Binary file modified BlenderWork/ground.blend
Binary file not shown.
Binary file modified BlenderWork/ground.blend1
Binary file not shown.
Binary file modified BlenderWork/ground2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28,416 changes: 27,507 additions & 909 deletions BlenderWork/out.txt

Large diffs are not rendered by default.

Binary file modified BlenderWork/scriptTest.blend
Binary file not shown.
Binary file modified BlenderWork/scriptTest.blend1
Binary file not shown.
4 changes: 3 additions & 1 deletion src/3D/SEVertexGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ SEMaterialPtr SEVertexGroup::material()

void SEVertexGroup::Draw()
{
mMaterial->Use();
if( mMaterial.get() )
mMaterial->Use();

glDrawElements( GL_TRIANGLES, mIndexArraySize ,GL_UNSIGNED_SHORT, mIndexArray.get() );
}
2 changes: 1 addition & 1 deletion vs/GLUT_Window_Template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void drawObject ()
// Draw Icosahedron
//glutWireIcosahedron ();

SEMeshPtr mesh = SEObjectStore::sharedInstance()->GetMesh( "Cube" );
SEMeshPtr mesh = SEObjectStore::sharedInstance()->GetMesh( "Plane" );

static GLUquadric* quadr = gluNewQuadric();

Expand Down
Binary file modified vs/GLUT_Window_Template.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion vs/objects/out.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type Mesh
name Cube
name Plane
vertexCount 236
vert 0.500000 1.000000 0.000000
vert 0.000000 1.000000 0.000000
Expand Down

0 comments on commit be9d0c6

Please sign in to comment.