Replies: 2 comments 4 replies
-
Hi! I'm not 100% sure if I understand your questions, but is this the code in VolumeRenderedObject.cs? "... , but I'm not sure where to get the transferFunction" The difference between the plane taken from editor mode and the plane made in play mode was whether the_TFTex was null or not. Have a nice weekend! :) |
Beta Was this translation helpful? Give feedback.
-
Hmm, and the Is your source code available somewhere, so I can see it? It's difficult to see what's wrong without having the code available 😅 |
Beta Was this translation helpful? Give feedback.
-
Hello, it's a good day. I would appreciate it if you could understand that I don't speak English and use a translator.
It is intended to be available among plays other than SlicingPlane editors.
So I'm going to get the code that the producer has implemented and click the button to add Slicing Plane.
But the problem here is...
sliceMat.SetTexture("_TFTex", transferFunction.GetTexture());
In the part, a value should be included in the _TFTex, but I'm not sure where to get the transferFunction.
The difference between the plane taken from editor mode and the plane made in play mode was whether the_TFTex was null or not.
When you click the button in play mode, you can create a SlicingPlane by executing the CreateSlicingPlane() function with the OnClickCreateSlicingPlane() function.
Beta Was this translation helpful? Give feedback.
All reactions