blending problems and black boxes
Hello, I''ve started creating a small game. The level editor is almost complete (currently fully functional), ...
But some textures need to be only partly transparent.
Well, I got that working, but now, when you look at these textures from a different angle, some kinda black boxes appear below them. Can anybody help?
A screenshot can be found here:
http://www.hot.ee/marius/phil/philedit.jpg
The game itself will (sorta) be a GTA type game (probably called "The Quest of Phil"). The level editor (with source) can be downloaded from:
http://www.hot.ee/marius/phil/philedit.zip
But please don''t rip any of the code and use it in your projects without giving me proper credits, please.
The game itself will be Open Source, when ready
---
marius
http://fr.ee/linux
---conehttp://cone.cz.eePS. The Dog Ate My Homework
You might want to turn on alpha testing, in addition to blending.
Fiddle around with the parameters for glAlphaFunc to see what gets you the best results.
Jason A.
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
glEnable(GL_ALPHA_TEST);glAlphaFunc(GL_GREATER, 0.1);
Fiddle around with the parameters for glAlphaFunc to see what gets you the best results.
Jason A.
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
---I write code.DelphiGL (http://delphigl.cfxweb.net)
Thanx,
that got it working!!
---
marius
http://fr.ee/linux
that got it working!!
---
marius
http://fr.ee/linux
---conehttp://cone.cz.eePS. The Dog Ate My Homework
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement