History

temporary hack to work around model scale data corruption

ZappoMan committed 12 years ago

Commit 468cd0d1 parent 2b429ba1 file · +5 −1Browse files

Showing the changes to interface/src/ParticleTreeRenderer.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ParticleTreeRenderer.cpp+5−1
@@ -99,7 +99,11 @@ void ParticleTreeRenderer::renderElement(OctreeElement* element, RenderArgs* arg · 98 unmodified lines
9999 // TODO: need to figure out correct scale adjust, this was arbitrarily set to make a couple models work
100100 const float MODEL_SCALE = 0.00575f;
101101 glm::vec3 scale(1.0f,1.0f,1.0f);
102− model->setScale(scale * MODEL_SCALE * radius * particle.getModelScale());
102+
103+ // TODO: There is some kind of a bug in packing of the particle packets which is causing modelscale to
104+ // sometimes be garbage. We will temporarily make it always 1.0
105+ float modelScale = 1.0f; /// particle.getModelScale()
106+ model->setScale(scale * MODEL_SCALE * radius * modelScale);
103107
104108 model->simulate(0.0f);
105109 model->render(alpha); // TODO: should we allow particles to have alpha on their models?

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t