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

Tessellation and renderer debug utils cleanup #1273

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

slipher
Copy link
Member

@slipher slipher commented Aug 30, 2024

No description provided.

This was a variable intended to track which attributes have been set
when using the "dynamic" VBO. It was only read in
Tess_StageIteratorDebug. The idea didn't work that well since sometimes
there were multiple functions called that add different subsets of
attributes, and sometimes code fills in attributes that we don't really
care about (e.g. the add cube routine used in debug
drawing adding tangents).
I always thought "tangent spaces" must be some fancy math thing, but
actually the word "spaces" was there for no reason and the meaning of
the flag is very simple.
Fix several problems with bone name debug drawing:
- Compiler warnings
- Text not drawn at all because charsetImageHash pointed at a random
  non-font image
- Enabling bone names messed up bone colors
- Don't stop if the name contains a space
- Wrong names for IQM bones
Use the Tess_Begin/End workflow consistently, as opposed to manually
setting tess.numIndexes = 0 etc.

Fixes some log warnings which were caused by calling
gl_genericShader->SetVertexAttribPointers().
Copy link
Member

@illwieckz illwieckz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@slipher slipher merged commit bcba665 into DaemonEngine:master Sep 9, 2024
9 checks passed
@slipher slipher deleted the rdebug2 branch September 9, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants