b3d Node - Alpha problem
b3d Node - Alpha problem
I Exportet a Terrain as .b3d file to load in irrlicht.
I used T.ED for the export and enabled Vertex Alpha
I played around alittle bit with setMaterialStuff, already implemented a function to set the MaterialType to one Texture and not to all, but it didn't help.
Now I don't know if the .b3d file is broken, or if irrlicht doesn't support, what I want...
Thats what I have:
what i want are nice splatted textures.
I used T.ED for the export and enabled Vertex Alpha
I played around alittle bit with setMaterialStuff, already implemented a function to set the MaterialType to one Texture and not to all, but it didn't help.
Now I don't know if the .b3d file is broken, or if irrlicht doesn't support, what I want...
Thats what I have:
what i want are nice splatted textures.
Ok, so I’m guessing what you want are the different textures to blend, making the change between textures look nice, and realistic.
Like this:
I’d say irrlicht doesn’t support it, it lacks a lot of features with material types. But I can think of one hacky method to get this to work (which involves a lot of work, for me…)
Could you send me a copy of that mesh, I have other tools like it but I don’t have T.ED.
I’ll have a look at what I can do but I’m not making any promises, and I’ve got some bigger problems with b3d to fix first.
Like this:
I’d say irrlicht doesn’t support it, it lacks a lot of features with material types. But I can think of one hacky method to get this to work (which involves a lot of work, for me…)
Could you send me a copy of that mesh, I have other tools like it but I don’t have T.ED.
I’ll have a look at what I can do but I’m not making any promises, and I’ve got some bigger problems with b3d to fix first.
Ok, I played around with the b3d loader,
And made some progress, (Edit: by the way the method turns out to be not that hacky)
(behold my artistic skills! )
I had to fix a bug in the Irrlicht’s OpenGL driver to get that to work , (At least I think I did...) And the texture shouldn’t look that bad (Its probably from my openGL “fix”, I’ll look in to fixing it better)
I really should be fixing other problems with b3d first…
And made some progress, (Edit: by the way the method turns out to be not that hacky)
(behold my artistic skills! )
I had to fix a bug in the Irrlicht’s OpenGL driver to get that to work , (At least I think I did...) And the texture shouldn’t look that bad (Its probably from my openGL “fix”, I’ll look in to fixing it better)
I really should be fixing other problems with b3d first…
Last edited by Luke on Sun Dec 10, 2006 2:41 pm, edited 1 time in total.
Seems to work fine,
He was going to look at it today.
Are you using the SVN?
From your pm:
Sorry I don’t know of any Linux ones.
first I’ll see if bitplane can fix that bug in openGL.A patch would be realy nice, if you can provide it.
He was going to look at it today.
Are you using the SVN?
From your pm:
I know some programs do this, don’t worry the b3d loader strips the paths and only tries to loads the texture from the same folder the mesh is in. (Just put your textures in the same folder as the mesh)T.ED stores the texutres in full paths (C:\...) and point to the location the textures were, when the mesh was created, so I use setTexture to overwrite the layers.
Have a look here: http://www.blitzbasic.com/toolbox/toolbox.php?cat=7What programm have you used for the terrain on the screens.
Sorry I don’t know of any Linux ones.
Yeah, great work!Luke wrote:Seems to work fine,
I am currently using the downloadable zipfile but wouldnt make a big difference to use the svn version instead.first I’ll see if bitplane can fix that bug in openGL.
He was going to look at it today.
Are you using the SVN?
Thanks again for your great work
-
- Posts: 34
- Joined: Tue Aug 22, 2006 2:48 pm
- Location: Malaysia
Could someone explain me how to get this to work? Do I need a patch? Are the changes at SVN? Do I need to load the mesh in a specific way?
I have a terrain .b3d but when I load it I just see one texture over all the terrain.
________
Yamaha Mdr-1
I have a terrain .b3d but when I load it I just see one texture over all the terrain.
________
Yamaha Mdr-1
Last edited by rimbou on Fri Feb 18, 2011 6:08 pm, edited 1 time in total.
Screenshot of the terrain in the editor:
Screenshot of the terrain in irrlicht DX9 renderer
Screenshot of the terrain in irrlicht OGL renderer
To load the mesh I did:
So any idea of what I'm doing wrong?
Thanks.
________
DRUG TESTS
Screenshot of the terrain in irrlicht DX9 renderer
Screenshot of the terrain in irrlicht OGL renderer
To load the mesh I did:
Code: Select all
LevelMesh=smgr->getMesh("test.b3d");
LevelNode=smgr->addAnimatedMeshSceneNode(LevelMesh, DummyNode);
// I tried with the vertex alpha and without it
LevelNode->setMaterialType(EMT_TRANSPARENT_VERTEX_ALPHA);
Thanks.
________
DRUG TESTS
Last edited by rimbou on Fri Feb 18, 2011 6:08 pm, edited 1 time in total.
Oh ok thanks. I guess I'll have to be more patientsober wrote:I think the fixes from Luke are still not in the downloadable version or the svn, so you will have to wait.
________
Stranger Originated Life Insurance Forums
Last edited by rimbou on Sat Feb 19, 2011 3:48 am, edited 1 time in total.