forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[render] Modify vtk cube texture coordinate generation (RobotLocomoti…
…on#12972) * Modify vtk cube texture coordinate generation The default vtk cube source produces texture coordinates based on the size *and* position of the cube in the geometry frame. More or less, the vertex position becomes a uv coordinate (projected onto one of six planes). This has several undesirable properties: 1. Small boxes will only be mapped with small portions of the texture. 2. Large boxes will have the texture tiled multiple times. This introduces a new cube geometry that is equivalent to the vtk cube source, except it defaults to the texture being stretched over each face, with the possibility of tiling it via a (currently hidden) uv_scale property. It also removes all mention of the vtkCubeSource.
- Loading branch information
1 parent
7558bb6
commit f5a7ad5
Showing
9 changed files
with
419 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.