How to use assimp load 3D model and use shader to render it

I saw all the examples but not found a project can help me .
I want to use shader on 3D penguin project. can any body help… …thanks for show me some codes

Which examples did you look at? and what did you try? show us some of your attempts :wink:

ofShader is applied to a mesh like ofMaterial.

// in your ofApp.h
ofMaterial material;
// in your ofApp.cpp

material.begin();
mesh.draw();
material.end().

Same syntax for ofShader

// in your ofApp.h
ofShader shader;
// in your ofApp.cpp

shader.begin();
mesh.draw();
shader.end().

Have a look at the shader chapter on the ofBook http://openframeworks.cc/ofBook/chapters/shaders.html , and look for the word ofShader and ofMaterial in your example folder.

.3DModelLoaderExample this one

ofEnableDepthTest();

light.enable();

cam.begin();
ofColor(255,255);
if (bUsingMesh){
	// draws the ply file loaded into the mesh is you pressed 6
	meshNode.transformGL();
	mesh.draw();
	meshNode.restoreTransformGL();
} else {
	// draws all the other file types which are loaded into model.
	model.drawFaces();
}
cam.end();

light.disable();

ofDisableDepthTest();

I want to change that code . it was not use shader and I don’t know how.
I just learn 3D knowledge about 1month before that I write shader on cocos2dx …2D picture :frowning:

can u give me some reference :frowning:

Can u tell me which example can help …