Changeset 2891 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 09/01/08 08:58:38 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2889 r2891 550 550 551 551 // the diffuse color buffer 552 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_MIPMAP_LINEAR, true);553 //fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false);552 //fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_MIPMAP_LINEAR, true); 553 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false); 554 554 555 555 // the positions buffer … … 1544 1544 visualization->Render(); 1545 1545 1546 // coordinates 1547 glColor3f(0.0f, 1.0f, 0.0f); 1548 glBegin(GL_LINES); 1549 glVertex3d(pos.x, pos.y, pos.z); 1550 glVertex3d(pos.x + 100, pos.y, pos.z); 1551 glEnd(); 1552 1553 glColor3f(0.0f, 0.0f, 1.0f); 1554 glBegin(GL_LINES); 1555 glVertex3d(pos.x, pos.y, pos.z); 1556 glVertex3d(pos.x, pos.y + 100, pos.z); 1557 glEnd(); 1546 1558 1547 1559 1548 // reset previous settings … … 1564 1553 glMatrixMode(GL_MODELVIEW); 1565 1554 glPopMatrix(); 1566 1567 Vector3 ftl, ftr, fbl, fbr, ntl, ntr, nbl, nbr;1568 1569 camera->ComputePoints(ftl, ftr, fbl, fbr, ntl, ntr, nbl, nbr);1570 1571 Vector3 bl, br, tl, tr;1572 1573 bl = Normalize(nbl - fbl) * 100;1574 br = Normalize(nbr - fbr) * 100;1575 tl = Normalize(ntl - ftl) * 100;1576 tr = Normalize(ntr - ftr) * 100;1577 1578 Vector3 dum = pos + camera->GetDirection() * 20;1579 1580 // coordinates1581 glColor3f(0.0f, 1.0f, 0.0f);1582 1583 glBegin(GL_LINES);1584 glVertex3d(dum.x, dum.y, dum.z);1585 glVertex3d(dum.x + bl.x, dum.y + bl.y, dum.z + bl.z);1586 glEnd();1587 1588 /* glColor3f(1.0f, 0.0f, 0.0f);1589 1590 glBegin(GL_LINES);1591 glVertex3d(dum.x, dum.y, dum.z);1592 glVertex3d(dum.x + br.x, dum.y + br.y, dum.z + br.z);1593 glEnd();1594 1595 */ glColor3f(0.0f, 0.0f, 1.0f);1596 1597 glBegin(GL_LINES);1598 glVertex3d(dum.x, dum.y, dum.z);1599 glVertex3d(dum.x + tl.x, dum.y + tl.y, dum.z + tl.z);1600 glEnd();1601 /*1602 glColor3f(1.0f, 0.0f, 1.0f);1603 1604 glBegin(GL_LINES);1605 glVertex3d(dum.x, dum.y, dum.z);1606 glVertex3d(dum.x + tr.x, dum.y + tr.y, dum.z + tr.z);1607 glEnd();*/1608 1555 } 1609 1556
Note: See TracChangeset
for help on using the changeset viewer.