Comments (7)
You don’t want to render transparency, correctly?
For that, you can change the amount rays for this via:
BlenderProc/examples/suncg_with_improved_mat/config.yaml
Lines 19 to 20 in 787f187
from blenderproc.
Thank you for your quick reply!
I've tried changing both those numbers to 0 and it appears that the transparent material becomes solid, but I check the depth map and it's still not what I'm expecting.
Here's a picture of what I mean : https://gyazo.com/366587ce0491b9998631b5d83a4d1123
The shower's doors look solid, but the depth is still behaving like it's transparent.
from blenderproc.
I found a different solution to your problem, you could also set in all principled shader the alpha value to 1.0 like this, keep in mind you have to do this before the rendering takes place:
{
"module": "manipulators.MaterialManipulator",
"config": {
"selector": {
"provider": "getter.Material",
"conditions": [
{"name": ".*"} # selects all materials
]
},
"cf_set_Alpha": 1.0 # sets the alpha value to 1.0 (not transparent)
}
},
from blenderproc.
We assume this to be closed for now, if this didn't resolve your problem. Please reopen this issue with more details.
from blenderproc.
@themasterlink Hi, could you tell me how to set alpha directly without using the config file? Since in my project it do not rely on such a config.
from blenderproc.
Hey @eugenelyj,
you can set the alpha value of a given material mat
via
mat.set_principled_shader_value("Alpha", 1)
from blenderproc.
@cornerfarmer Thank you!
from blenderproc.
Related Issues (20)
- Eager render data
- Not what I see in Blender HOT 1
- Regarding object 3D vertices in meters (8 corners and 1 centroid) extraction and project them to 2D image plane (pixel cordinate) HOT 1
- blenderproc quickstart on Mac M2 raises error. HOT 2
- Wrong Matrix Inversion HOT 4
- how to use rigidbody to fix the collision problem of ycb distractors with themselves as well as object of interest?
- ERROR: StructRNA of type Material has been removed HOT 3
- 13/5000 How can I use my images to replace textures HOT 5
- coco annotation merge for multiple .blend files HOT 2
- render hdr lighting without background HOT 2
- Unsuccessful quickstart HOT 5
- how to save object distance from camera in coco annotations HOT 7
- Duplicate linked does not work correctly with hierarchy.
- Rework MeshObject material manipulation HOT 2
- BrokenPipeError during BOP dataset generation
- Code/assets to generate the rendering of falling objects in your demo video HOT 2
- Render process break down without error. HOT 2
- ModuleNotFoundError: No module named 'blenderproc' HOT 5
- Object location and rotation not rendered properly
- The position of the Python interpreter called by blenderproce.exe is an absolute path HOT 6
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 blenderproc.