alpha dosent work?!?
Archives Forums/Blitz3D SDK Bug Reports/alpha dosent work?!?
| ||
hi im new here and i just got the blitz3d sdk. i tryed to set the alpha property of an object and... nothing happens! i even tried it on your demo! static class RotateCube { [STAThread] static void Main() { bb.BeginBlitz3D(); bb.Graphics3D(960, 540, 0, 2); int cube = bb.CreateCube(0); int light = bb.CreateLight(1, 0); int camera = bb.CreateCamera(0); bb.PositionEntity(camera, 0, 0, -4, 1); bb.EntityAlpha(cube, 0.1f); // as i understand this line should make the cube transperent ... it dosent. while (bb.KeyHit(bb.KEY_ESCAPE) == 0) { bb.UpdateWorld(1); bb.RenderWorld(0); bb.TurnEntity(cube, .1f, .2f, .3f, 1); bb.Text(20, bb.GraphicsHeight() - 20, "Blitz3DSDK C# Example (C)2007 Blitz Research 2007", 0, 0); bb.Flip(1); } bb.EndBlitz3D(); } } i got this program after a friend showed blitz3d to me on my computer and the alpha works there (i dont think it my gfx card). as i understand the sdk is the exact same engine so i dont get it. am i doing something wrong or is this a bug? |
| ||
is any1 even going to answer me? |
| ||
Hi Kalix, Unfortunately the Blitz3DSDK forums are among the least visited (and the Blitz3DSDK is probably BRLs least bought product as well). =/ I'm not at my home-computer right now but I will try this out when I get home and post back to you with my results. |
| ||
The RenderWorld(0) looks like the problem. Your example doesn't need any value for tween#. But if you do use a value then you need something other than 0. That would be the case for ordinary Blitz3D. I don't have Blitz3DSDK installed right now. |
| ||
Floyd is right: answer in main thread: http://www.blitzbasic.com/Community/posts.php?topic=86421 |
| ||
yes yes yes HELL YES! i did not know that! that code is directly from the demo that comes with blitz! thank you very mach! |