I've answered the same question you posted to the cocos3d forum here.
Get Texture location from CC3Vector node location
-
06-10-2022 - |
質問
I have a loaded POD file with one node.
I calculated the correct surface position from touch with the unproject method. Now i want to draw on the texture (stored in Framebuffer) with the readColorContentFrom
method.
Ho do I get the pixel location of a texture in the ccColor4B colorArray[]
.
Generally: how can i draw on the texture on a POD with touches? Is this the right way?
解決
所属していません StackOverflow