Closed DanielAtCosmicDNA closed 8 months ago
I was able to advance in this regard, but the outcome is still not satisfactory. I implemented on the branch feature-printed-keys the strategy from https://codesandbox.io/s/0z8i2c.
The problem with this implementation is that it is slow and the text does not seem to be printed on top of the key, for example if you move the camera, the text is also moved...
Hi, I tried to render the key text on top of each stenography keyboard key with React Three Fiber. I was not able to do so yet without losing the outline of the key in a different material and colour. Here is the source code I have developed thus far: https://github.com/CosmicDNA/touchscreen-stenography-keyboard.
But the problem is converting from THREE object to a pair of nodes
<meshLambertMaterial />
while keeping the same functionality has not been straight forward. This issue can be spotted at https://github.com/CosmicDNA/touchscreen-stenography-keyboard/blob/fcda31313b1b9295eda3f444a92295b22f95bcef/src/components/Key.js#L57Where:
And the mesh is rendered with:
The strategy I would like to use to render the text on each key is taken from one of the examples at React Three Fiber website examples https://codesandbox.io/s/0z8i2c where the material is textured with
<RenderTexture />
:Any ideas on how to achieve this without losing the gray outline?