EntityOrder help
Blitz3D Forums/Blitz3D Beginners Area/EntityOrder help
| ||
I'm trying to put my gun at entityorder -100, but since the gun is made of several "elements" all collapsed into one mesh, it's drawing the individual components of the gun in the wrong order, but in front of everything else. Any suggestions? |
| ||
Use multiple renders instead. ShowEntity world HideEntity gun RenderWorld ShowEntity gun HideEntity world Renderworld |
| ||
that's the only fix?? It seems kind of slow. |
| ||
Wouldn't call it a 'fix' since nothings broken. Its more of a solution. You're rendering the scene in two stages instead of just one - you're not rendering anything more than once. Its no slower than rendering everything in one go. |
| ||
but the world involves TONS of entities, so it'd take forever to do that. |
| ||
code please...maybe I can help... |
| ||
pretty much it's just: gun = loadmesh("...") EntityOrder gun, -100 (it's kinda a complex file network, so putting it up would take forever) |
| ||
Did you try setting it to 0 to be drawn with everything else? Z-buffering could be a problem(it says non 0 is only for skyboxes/terrain.) |
| ||
You could attach every object to a main pivot, and hide/show that pivot. But you could also use a 2nd camera: |
| ||
i think i'll just make the collision sphere around the player bigger, less of a hassle :) |