Jump to content
Sign in to follow this  
wowgetoffyourcellphone

Object Rendering in Black Map (and their reveal by LOS)

Recommended Posts

Would it be difficult to add a flag to the renderer where certain actors are pre-rendered in the black map area of the map? It can be a flag in the actor itself, similar to the castshadow flag. What this would do is stop cliff objects (among other things) from "popping" into existence as the player gains line of sight/vision of the object. This kind of flag would be good for some select objects, like cliffs, large structures like Wonders, bridge sections, etc. Currently, you only gain vision of an object once the root origin of the model or actor is visible. This creates visual glitches in the way you see objects. 

I think everyone has seen this happen consciously or subconsciously. Would it be worth it to fix this? I think it would. It's one of those polish things that make the engine feel complete. 

Edited by wowgetoffyourcellphone
  • Like 2

Share this post


Link to post
Share on other sites
Quote

Currently, you only gain vision of an object once the root origin of the model or actor is visible. This creates visual glitches in the way you see objects. 

Isn't this the actual problem. So, why add more flags?

  • Thanks 1

Share this post


Link to post
Share on other sites
11 hours ago, smiley said:

Isn't this the actual problem. So, why add more flags?

Because for most things it doesn't look so bad, but for things like cliff actors or large structures it does look bad. But if there was a way to eliminate the phenomenon completely and comprehensively, then of course I would prefer that. :) 

Share this post


Link to post
Share on other sites

Two ways to fix this:

- fix the purely graphical issue. This is probably easy enough to do.

- make entities visible as soon as some of it is out of FOW. That's likely trickier, but I'd have to check the implementation.

Either way, I don't think a flag makes too much sense, though thanks for pinging about the issue, I'd forgotten about it.

  • Like 1

Share this post


Link to post
Share on other sites
15 minutes ago, wraitii said:

Either way, I don't think a flag makes too much sense, though thanks for pinging about the issue, I'd forgotten about it.

Right, whichever way is best. :) My only experience is dicking around with XML and JS files which is why my original "solution" came to mind. lol

Edited by wowgetoffyourcellphone

Share this post


Link to post
Share on other sites
13 hours ago, wraitii said:

- make entities visible as soon as some of it is out of FOW. That's likely trickier, but I'd have to check the implementation.

I think it's easy to upgrade m_LosState to answer visibility queries on a rect. But it's harder for a circle, but easier with a distance check. So we might need to store that state for a circular entity, that it was visible for some player inside the component.

13 hours ago, wraitii said:

Either way, I don't think a flag makes too much sense, though thanks for pinging about the issue, I'd forgotten about it.

I agree.

  • Like 1

Share this post


Link to post
Share on other sites
18 minutes ago, vladislavbelov said:

I think it's easy to upgrade m_LosState to answer visibility queries on a rect. But it's harder for a circle, but easier with a distance check. So we might need to store that state for a circular entity, that it was visible for some player inside the component.

I agree.

I created a ticket https://trac.wildfiregames.com/ticket/5606#ticket

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...