rgl icon indicating copy to clipboard operation
rgl copied to clipboard

Enhancement: allow JPEGs to be loaded as textures

Open dmurdoch opened this issue 2 years ago • 1 comments

Found in the rgl2gltf project: some glTF files use JPEG textures, but rgl doesn't support those.

dmurdoch avatar Mar 22 '22 12:03 dmurdoch

It might make sense to do this by allowing arrays as textures; then the user could read the texture any way they liked.

dmurdoch avatar Aug 02 '22 11:08 dmurdoch

This would be a great feature. I'm not sure if it is directly related, but It would be useful to allow multiple textures. Right now I'm using "simple" OBJ objects to create 3D visualizations (rayshader), but having more detailed objects would improve visualization' quality.

For example, using {rayshader} would be nice to have more detailed trees:

render_obj("Tree/Tree.obj", lat= 5, lon= 4, altitute=10, extent = raster::extent(cropped_data),heightmap = elevation_matrix,zcale=1,load_material = TRUE)

Is it possible to think that it will be feasible in the future to import such detailed objects?

SbastianGarzon avatar Mar 17 '23 17:03 SbastianGarzon

A lot more will become possible once rgl uses shaders for everything. The main difficulty will be giving users an understandable way to get what they want.

dmurdoch avatar Mar 17 '23 17:03 dmurdoch

Fixed in #347 .

dmurdoch avatar Mar 29 '23 09:03 dmurdoch