Comments (5)
I meant by 'simple' that there's a single material (diffuse only), single texture, and the mesh is given directly in the code. However, there is nothing fundamentally different about rendering an obj+mtl.
from dirt.
from dirt.
Can you explain what you mean by simple textured rendering? How is that different from normal textured rendering?
from dirt.
Can you explain what you mean by simple textured rendering? How is that different from normal textured rendering?
I think sample/deferred.py
provides a good demo. And I successfully made my model with texture based on this code. You can have a try.
from dirt.
@pmh47 Hi~ sorry for bothering. I want to know how to render an obj with a transparent background or specific image? I rendered some results, and all my results are like:
I know I should adjust the background_attributes, but I do not know how to set it.
pixels = dirt.rasterise_deferred(
vertices=cube_vertices_clip,
vertex_attributes=tf.concat([
tf.ones_like(cube_vertices_object[:, :1]), # mask
cube_uvs, # texture coordinates
cube_normals_world # normals
], axis=1),
faces=cube_faces,
background_attributes=(tf.ones([frame_height, frame_width, 6])*255),
shader_fn=shader_fn,
shader_additional_inputs=[texture, light_direction]
)
Thanks for any help and guidance!
from dirt.
Related Issues (20)
- failed to load librasterise.so, 'NoneType' object has no attribute 'rasterise' HOT 2
- How to run it on Win10 HOT 1
- librasterise.so: undefined symbol: cuCtxSetCurrent HOT 1
- NotFoundError: ../dirt/dirt/librasterise.so: undefined symbol: _ZN10tensorflow7s... HOT 1
- Differentiability wrt vertex colors HOT 3
- glsl SDF
- Setup error using colab
- yet another none of 2 egl devices matches the active cuda device HOT 3
- undefined symbol: eglCreateContext HOT 4
- AttributeError: 'NoneType' object has no attribute 'rasterise' HOT 4
- About render normal map HOT 1
- [Error] "This compiler appears to be too old to be supported by Eigen" in building rasterize HOT 2
- Dirt installation and test errors
- Cmake error HOT 1
- Installation errors: Tensorflow-protobuf incompatibility with tensor flow v2.13.0 HOT 17
- dirt/csrc/gl_common.h:46] extensions eglQueryDevicesEXT, eglQueryDeviceAttribEXT and eglGetPlatformDisplayEXT not available
- [Test Error]no egl devices found Aborted (core dumped)
- Does this work on WSL2? HOT 1
- Unable to compile HOT 1
- Unable to find Dockerfile config (CUDA_BASE_VERSION + UBUNTU_VERSION +CUDNN_VERSION) that leads to a successful dirt installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dirt.