Skip to content

Commit

Permalink
Port of the OpenGL transformation bringing points in model to screen …
Browse files Browse the repository at this point in the history
…space.

PiperOrigin-RevId: 267975172
  • Loading branch information
julienvalentin authored and Copybara-Service committed Sep 10, 2019
1 parent cc4e010 commit 3210572
Show file tree
Hide file tree
Showing 6 changed files with 1,414 additions and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow_graphics/rendering/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ py_library(
visibility = ["//visibility:public"],
deps = [
"//tensorflow_graphics/rendering/camera",
"//tensorflow_graphics/rendering/opengl",
"//tensorflow_graphics/rendering/reflectance",
"//tensorflow_graphics/util:export_api",
],
Expand Down
1 change: 1 addition & 0 deletions tensorflow_graphics/rendering/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from __future__ import print_function

from tensorflow_graphics.rendering import camera
from tensorflow_graphics.rendering import opengl
from tensorflow_graphics.rendering import reflectance
from tensorflow_graphics.util import export_api as _export_api

Expand Down
68 changes: 68 additions & 0 deletions tensorflow_graphics/rendering/opengl/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Math functionalities for tf-graphics.

# google internal package dependency 8)
# google internal package dependency 5

licenses(["notice"]) # Apache 2.0

package(default_visibility = ["//visibility:public"])

py_library(
name = "opengl",
srcs = [
"__init__.py",
],
srcs_version = "PY2AND3",
# google internal rule 1
visibility = ["//visibility:public"],
deps = [
":math",
"//tensorflow_graphics/util:export_api",
],
)

py_library(
name = "math",
srcs = ["math.py"],
srcs_version = "PY2AND3",
# google internal rule 1
deps = [
# google internal package dependency 1,
"//tensorflow_graphics/math:vector",
"//tensorflow_graphics/util:asserts",
"//tensorflow_graphics/util:export_api",
"//tensorflow_graphics/util:shape",
],
)

py_test(
name = "math_test",
srcs = ["tests/math_test.py"],
srcs_version = "PY2AND3",
# google internal rule 1
# google internal rule 2
# google internal rule 3
# google internal rule 4
# google internal rule 5
# google internal rule 6
deps = [
":math",
# google internal package dependency 2
# google internal package dependency 6
# google internal package dependency 1,
"//tensorflow_graphics/util:test_case",
],
)
23 changes: 23 additions & 0 deletions tensorflow_graphics/rendering/opengl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""OpenGL module."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from tensorflow_graphics.rendering.opengl import math
from tensorflow_graphics.util import export_api as _export_api

# API contains submodules of tensorflow_graphics.rendering.
__all__ = _export_api.get_modules()

0 comments on commit 3210572

Please sign in to comment.