(Solved)alpha vertex looks very bad.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

(Solved)alpha vertex looks very bad.

Post by REDDemon »

this is the code. the cube is showd partially correct and partially full of "black nois"

Code: Select all

scene::IMesh* cube = smgr->addCubeSceneNode(300)->getMesh();		 
scene::ISceneNode *node = smgr->addMeshSceneNode(cube,0,-1,vector3df(0,0,0)) ;
smgr->getMeshManipulator()->setVertexColorAlpha(cube, 100);
node->setMaterialTexture(0, device->getVideoDriver()->getTexture("test_alphablend/water.jpg"));
node->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA );
noder->setMaterialFlag(video::EMF_LIGHTING,false);

Image


EDIT:
i solved just creating a cube with blender and importing it as a mesh from file.

Next time i will try to get the mesh from a node and erase the node :)
Last edited by REDDemon on Fri Nov 12, 2010 12:09 pm, edited 1 time in total.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Well it looks like you're adding 2 cubes, and there's zfighting between the two. Try moving one or scaling one down.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

already done. without succes.
I tried to move both the mesh and the cube.

I tried also to drop the cube (there is not an available remove).
but the problem persist.

Maybe it wasn't studied to work this way.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post by macron12388 »

Hm, that looks like what commonly happens when two planes share the exact same position.
Post Reply