Notifications
Clear all

[Closed] How to detect an invisible object at a specific time?

I use a max scene generated by populate feature.
some time a character on the scene is invisble in view port and render frame.

But i check the character at that time, the functions
INode::IsNodeHidden(TRUE) or INode::IsNodeHidden(FALSE) or
INode::IsObjectHidden() still return FALSE.

i think it should be TRUE.

Is there any function that resolve the problem?

6 Replies

what do mean by “invisible in view port and render frame”? invisible because of visibility set to 0, or isHidden property set to TRUE, or node is out of render frame?

1 Reply
(@minhpta)
Joined: 10 months ago

Posts: 0

No, the object is still inside of frame but it is not rendered( it also is not behind any object)
In this case, it is a character in populate scene, and it is waiting to walk along the flow.

Three API bellow still return FALSE in this case.
INode::IsNodeHidden(TRUE), INode::IsNodeHidden(FALSE) or INode::IsObjectHidden()

So, i think there is a API to know the object should be rendered or not?
Any one can help?

you didn’t answer the question. why is it not visible?

or this is the matter of your question – you want to know why a node is not rendered (invisible).
?

1 Reply
(@minhpta)
Joined: 10 months ago

Posts: 0

Ok, let me explain.
I think you are used populate feature of 3ds max (2014 or 2015)
This feature simulate a crowd that includes many character.
Some character can walk along to the flow (the street). Some character stand at a specific area to talk with others.
And some character wait to specific time then walk along to the flow, they will be appear on a range of time. The other time they invisible on View port or render frame.

At that time, although they is disappear, but following function of their INode instance still return FALSE.
INode::IsNodeHidden(TRUE), INode::IsNodeHidden(FALSE) or INode::IsObjectHidden()

Do you know why? How can detect visibility of object at this case.

Just guessing here, but could it be that the Populate node is in fact not hidden (hence your results saying that) but instead just doesn’t have any generated geometry at that time? So instead of asking is it hidden, query the mesh info / facecount or something like that?

Thanks Mr SnipeyX.
That is exactly what i want but don’t know how to check that.
My question “Is there any function that resolve the problem?” is sill wait for help.