![]() |
![]() |
#1 |
|
How would one go about making a state with no sprite? Not a completely transparent sprite, but really no sprite? Would you just put the sprite to -1 or leave it blank?
|
![]() |
![]() |
![]() |
#2 |
|
I'm not 100% sure on what you mean, but 193 - SPR_DISS is basically a blank sprite.
__________________
<SkyTheDestroyer> Why does the Master Server delist my server once it hits 32/32? <SpiritCrusher> Your server has attained GOD STATUS <SpiritCrusher> The MS can't display it anymore |
![]() |
![]() |
![]() |
#3 |
|
Well what I'm doing is making all the scenery objects so that they stop rendering when they are far enough away from the player. So I want the game to legitimately render nothing to save time when the object is too far away, switching to the real sprite when close enough. Like how ambient-sound things or player start or the like don't render a sprite.
EDIT: Disregard the above. I actually looked up the sprite and saw that it was an empty, non-erroring sprite :-P |
![]() |
![]() |
![]() |
#4 |
|
You either use DISS or you toggle MF2_DONTDRAW.
Although, if you're having issues with the renderer drawing lots of objects, what you need to do is split the level up with some single-sided linedefs (in SRB2's case, that'd be behind a thok barrier) as the renderer generally stops polling when it hits one of those, due to how the BSP tree is set up. Also, learn how to use the culling plane. I haven't learned how, but it's apparently a great tool for stages with lots of objects you can't see. |
![]() |
![]() |
![]() |
#5 | |
Permanently Banned
|
Quote:
Last edited by Prime 2.0; 10-09-2012 at 05:23 AM. |
|
![]() |
![]() |
![]() |
#6 |
💪🐑
|
Yeah, implementing something like that with the scenery objects is only going to raise lag, not lower it.
|
![]() |
![]() |
![]() |
#7 | |
My work is never done yet
|
If it were me, I would have the objects' SpawnState be an invisible state lasting 1 tic and looping back to itself forever with A_Look as the action and Var1 set to, say, 1280 fracunits all around the object. Then, I would have the objects' SeeState be visible, last 1 tic, go to the SpawnState after it's finished, and have no action. That way, the object will appear as soon as the player moves within range and disappear when they move out of it.
__________________
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
|
I am not sure how the sprite disappearing ideas outside a certain area is going to work in a multiplayer game. I would try shadowhog's ideas first.
__________________
If you see any people named "Torgo" outside of SRB2, it isn't me. I also go by "TorgoRandomNumbers" |
![]() |
![]() |
![]() |
#9 | |
My work is never done yet
|
Actually, my method will work fine. The only change will be that if there is any player within range, the object will be visible, and if there is not, then it will be invisible.
__________________
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
|
Quote:
And Shadowhog, I would use the culling planes, but don't they only work vertically? If not then I'll grid up the map a bit and it'll work. EDIT: Do culling planes remove FOF shadows? If not I'll just stack them at good locations. Also, do zero-height sectors halt the renderer? Because I could make "boxes" that instantly raise/lower a sky-rendering ceiling to clip distant stuff. Last edited by Metal96; 10-14-2012 at 02:22 AM. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|