Hi,
Cloned clippingPlaneContours with SimpleMaterial and LineChunk are reasonable not visible in Raytracing.
If I put a UPlasticMaterial on the Line, it is quite thin but visible.
I only found the "Line Chrome"-Material to change the width in the Material.
"The Line Chrome Material is a special variant of the chrome materials for line geometries."
Is there something like "Line Plastic"-Material? Chrome is not what i need here ๐
Or how to get thicker Lines in Raytracing and OpenGL?
Thanks
Best regards,
Marc
Solved! Go to Solution.
Solved by marc.winter2. Go to Solution.
Solved by michael_nikelsky. Go to Solution.
Solved by michael_nikelsky. Go to Solution.
Solved by michael_nikelsky. Go to Solution.
In raytracing when you apply a plastic material to the clipping contour you can control the thickness of the tubes by going to the material settings under Raytracing and changing the Line Tube Radius.
Sadly I donยดt know a solution for OpenGL for the cloned lines.
The variable is in the colorComponentData:
mat = findMaterial("PlasticMaterial")
cd = mat.fields().getFieldContainer("colorComponentData")
print( vrFieldAccess(cd).getReal32("tubeRadius"))
That is the usually issue that you need to trigger a change on the material if you change something in the component (something that should be addressed with the upcoming python V2 API):
mat = findMaterial("PlasticMaterial")
cd = mat.fields().getFieldContainer("colorComponentData")
vrFieldAccess(cd).setReal32("tubeRadius", 20.0)
mat.fields().setInt32("flags", mat.fields().getInt32("flags2"))
Can't find what you're looking for? Ask the community or share your knowledge.