How to draw solid material, wireframe and point cloud at the same time?
Posted: Sun Mar 17, 2024 10:46 am
Hi, if you didn't understand what I am talking about, here's the image:


Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
Code: Select all
irr::video::SMaterial lineMat;
lineMat.Lighting = true;
lineMat.Wireframe = true;
lineMat.Thickness = 2.f;
lineMat.EmissiveColor = irr::video::SColor(255, 255, 50, 50);
driver->setMaterial(lineMat);
driver->drawVertexPrimitiveList(&Vertices[0], 4, &indices[0], 4, video::EVT_STANDARD, scene::EPT_TRIANGLES, video::EIT_16BIT);
irr::video::SMaterial pointMatMat;
pointMatMat.Lighting = true;
pointMatMat.PointCloud = true;
pointMatMat.Thickness = 15.f;
pointMatMat.EmissiveColor = irr::video::SColor(255, 255, 255, 255);
driver->setMaterial(pointMatMat);
driver->drawVertexPrimitiveList(&Vertices[0], 4, &indices[0], 4, video::EVT_STANDARD, scene::EPT_TRIANGLES, video::EIT_16BIT);