Minib3d and 2d bugs
BlitzMax Forums/MiniB3D Module/Minib3d and 2d bugs
| ||
I've been starting to use the 3d with the 2d and I'm getting more and more confused First of all when the textures aren't working. I tryed a opened the zombie mode(from Psionic) and there are no textures on him. THe second weird thing is that if I use max2d commands and don't put a "drawrect 0,0,0,0" before flip I don't see the model(just for a fraction of a second at the beginning) The second is not to much of a problem but the texture thing is starting to piss me off |
| ||
You have currently keep some things in mind when using my ext Version. In the new one these issues will be fixed. -You should use Alphablend for your 2d thingies -You may try the following: Add glDisable(GL_TEXTURE_2D) directly before your RenderWorld command. For most people this are the main bug reasons. |
| ||
Thx for the reply but I still can't get the textures to work... I added both setblend(alphablend) and glDisable(GL_TEXTURE_2D) and it still doesn't work |
| ||
Could you post a small sample code with the error included? Maybe it is something small which is causing the trouble? |
| ||
Oh shure:While Not KeyHit(key_escape) If KeyDown(KEY_UP)=True Then MoveEntity cam,0,0,0.5' move camera forward If KeyDown(KEY_DOWN)=True Then MoveEntity cam,0,0,-0.5' move camera back If KeyDown(KEY_LEFT)=True Then MoveEntity cam,-0.5,0,0 ' move camera left If KeyDown(KEY_RIGHT)=True Then MoveEntity cam,0.5,0,0 ' move camera right RenderWorld() TSGui.updategui() 'DrawRect 0,0,0,0 Flip Wend This is the main loop TSGui.update() is a function that draws and updates every gadget in a list Here is the drawgadget code: Method DrawGadget() Select GadgetType Case SGADGET_WINDOW SetColor 255,255,255 DrawRect getactualx(),getactualy(),w,h SetColor 0,0,0 SetBlend(ALPHABLEND) DrawText caption,x,y Case SGADGET_BUTTON SetColor 122,122,122 DrawRect getactualx(),getactualy(),w,h SetColor 0,0,0 SetBlend(ALPHABLEND) DrawText caption,getactualx(),getactualy() Case SGADGET_LABEL SetColor r,g,b SetBlend(ALPHABLEND) DrawText caption,getactualx(),getactualy() End Select For Local SG:TSGadget = EachIn ChildList sg.drawGadget() Next End Method Now... if I delete the " ' " before drawrect 0,0,0,0 the model is shown(else just at the beggining for a fraction of a second) but its untextured(even tough the model has the texture and everything). Now I tryed to texture the model manualy altough it should be textured because thats the way its written(the zombie form Psionic) and the texture is shown. It appears that I don't need to add gl_disable(GL_TEXTURE_2D) or enable. Still there is this problem with drawrect before flip... Also I heard that the b3dloader can't load animations that are not made with bones. Will this be changed soon?. And if you where asking yourselfes: "yes the gui will be available free after I finnish it" |