Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(mostly) resolves errors involving beginning queries on the same object in succession without a break. #1441

Closed
wants to merge 2 commits into from

Conversation

Azaezel
Copy link
Contributor

@Azaezel Azaezel commented Oct 13, 2015

Azaezel added a commit to Azaezel/Torque3D that referenced this pull request Oct 13, 2015
SPECIAL NOTE: highly suggest GarageGames#1441 or a variation thereof to prevent debug spew and false-postives for occlusion results.

With significant research, development and prototyping assistance from both @andr3wmac (shaders and partial hook work), and @LuisAntonRebollo (additional culling)

System operates as follows:
1) materials are given an additional castDynamicShadows boolean entry. (Default at time of writing is true by request. Personal usage at time of writing defaults to false. value is default-initialized in materialDefinition.cpp. script/gui exposed)
2) lights are given a staticRefreshFreq and dynamicRefreshFreq (in milliseconds). script/gui exposed
3) materials are (effectively) sorted into dynamic and static shadowmap render lists based on flag. (see shadowMapPass.cpp)
4) initial shadowmaps are generated for each light and 'list'.
5) as each refreshFreq times out, the relevant shadowmap for a given light is refreshed.

Special notes:
dynamicRefreshFreq for all lights is set to a (script exposed) 8MS refresh timer.
StaticRefreshFreq for the lions share of lights defaults to 250 MS (1/4 of a second)
scattersky's embedded light, which is intended to operate in a mobile manner, defaults to 8
to reiterate, these are all customizable per-light via script/inspector gui in the case of alternate project needs.
@Azaezel Azaezel mentioned this pull request Oct 13, 2015
@crabmusket crabmusket added the Bug label Oct 14, 2015
@crabmusket crabmusket added this to the 3.9 milestone Oct 14, 2015
@Azaezel
Copy link
Contributor Author

Azaezel commented Nov 3, 2015

ran into a few more missing bits.

@Azaezel Azaezel closed this Jan 18, 2016
@Azaezel Azaezel deleted the quarelingQueries branch February 16, 2016 04:56
@Azaezel Azaezel restored the quarelingQueries branch June 3, 2017 00:32
@Azaezel Azaezel deleted the quarelingQueries branch August 22, 2019 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants