Search found 3 matches

by erivera
Wed Mar 24, 2010 2:19 am
Forum: Code Snippets
Topic: 3D Circle Drawer
Replies: 34
Views: 16445

[quote="Acki"]well, I rewrote your code (took me less than 15 mins) to be efficient and made a benchmark test... :lol:

this are 200 circles using your code ( FPS = 11 ):
http://abusoft.g0dsoft.com/temp/circle1.jpg

and this are the same 200 circles using my code ( FPS = 104 !!! ):
http://abusoft ...
by erivera
Mon Mar 22, 2010 3:50 am
Forum: Beginners Help
Topic: Apply a shader per MeshBuffer
Replies: 7
Views: 777

Have you tried node->getMaterial( meshBufferIndex ).MaterialType = .. ?

No results :(

Something is definitely wrong in my code. If I type this:

IMesh *sphere = smgr->getGeometryCreator ()->createSphereMesh (0.5f, 8, 8);
IMeshSceneNode *point_node = smgr->addMeshSceneNode (sphere);
point_node ...
by erivera
Mon Mar 22, 2010 1:33 am
Forum: Beginners Help
Topic: [SOLVED]Newbie irrlicht question: how to set a material col.
Replies: 3
Views: 484

Thanks
Cheers
Tranen

Sorrry, but i can't apply the material to my cube with cube.setMaterial(mat);

My code is:

ISceneNode* cube = smgr->addCubeSceneNode( );

cube->setPosition(vector3df(0,0,100));
SMaterial& mat = cube->getMaterial(0);
mat.EmissiveColor.set(1,1,0,0);
cube.setMaterial ...