rendering orders
Blitz3D Forums/Blitz3D Beginners Area/rendering orders
| ||
i dont understand. ive got a rough mesh of a hillside with some trees in front of it. i gradually fade the whole scene out using entityalpha. when i fade it back in again, the trees are still in front of the hill but they are transparent in the places where there is hillside behind them and opaque elsewhere. whats going on? neil |
| ||
Is it the z-order ? I believe, when you use EntityAlpha, the object doesn't use the z-buffer anymore. |
| ||
okay, that makes sense. how do i go about changing the z-order?? thank you, neil |
| ||
hmmm. ive been looking up about z-orders. the trees and hills are all one mesh, rather than two objects being drawn in the wrong order. imagine what would happen if the mesh had a negative alpha value. its like its been turned inside out! i cant work it out... |
| ||
yep. seems like its a z-buffer problem. |
| ||
if you seperate the trees from the hill then it should work. Other than that, there's a z-order sorting source somewhere in the archives, by beaker IIRC. |
| ||
For alpha Z-sorting look here. http://www.blitzbasic.com/codearcs/codearcs.php?code=949 There is a modified include file of "Beaker's". Personally, I have never used it. Here is "Beaker's" - look at that too: http://www.blitzbasic.com/codearcs/codearcs.php?code=850 |
| ||
cool, thanks guys neil |
| ||
Problem is, i think you have to Z-sort all the time. It would be alot easier to seperate them :o) |
| ||
What?! I can't believe it! Something helpful from Puki! It's a miracle! ...Ok, ok, I guess Puki has helped in other places, too... |
| ||
Sub: Puki probably got a hold of his source code and at least would like to contribute :D |
| ||
Don't listen to Puki! If he helps you, beware! Don't give him ANY sourcecode, he'll turn right around and claim it was his idea first. What are we EVER going to do with Puki?... |
| ||
So if he ever is trying to help we should not do jokes about it. Well done puki thank you, here's a cookie... No, not the whole pack! |