beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

GeometryToTexture Op

Ops.Gl.Meshes.GeometryToTexture


GeometryToTexture
Namespace: Ops.Gl.Meshes

Op author: pandur

convert vertices of a geometry to a data texture


summary (oneliner)

Once triggered this operator converts a given geometry to an HDR texture where every pixel contains XYZ position data of the given geometry, represented with RGB values.



doc

issues

youtube id

caniuse query

collections

related ops

Inputs

Render (Trigger)

Trigger the op


Geometry (Object)

Tex Size (integer /Number)

set the dimension of the square texture


Texture settings

filter index (integer /Number)

Pick a filter mode with an integer


wrap index (integer /Number)

Pick a wrap mode with an integer


Randomize (boolean /Number)

Outputs

Next (Trigger)

Trigger out


Total Vertices (Number)

Texture (Object)

Texture out


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Geometry to Texture

in this example we modify our cube geometry in realtime, and visualize the positional data as a texture to demonstrate how our geometry data is changing.

each pixel in this 25x25 pixel texture represents a position of a vertex from our demo cube. See how it smoothly changes from red to green to blue and everything in between?

you can further manipulate this texture with an imagecompose or plug it into a pointcloud.

Open Example In Editor


Youtube Video Tutorial

Changelog


cloned op from Ops.Gl.Shader.Shader2Texture
2021-02-27 - pandur

Ops.User.pandur.MeshToTexture renamed to Ops.Gl.MeshToTexture
2021-02-28 - pandur

Ops.Gl.MeshToTexture renamed to Ops.Gl.Meshes.MeshToTexture
2021-02-28 - pandur

added core lib: cgl_shadermodifier
2021-07-08 - pandur

Ops.Gl.Meshes.MeshToTexture renamed to Ops.Gl.Meshes.GeometryToTexture
2021-08-04 - pandur

Ops.Gl.Meshes.GeometryToTexture renamed to Ops.Dev.Gl.Meshes.GeometryToTexture
2021-08-04 - pandur

Ops.Dev.Gl.Meshes.GeometryToTexture renamed to Ops.Gl.Meshes.GeometryToTexture
2022-02-07 - pandur

Examples using GeometryToTexture ()

Public Patches using GeometryToTexture ()