You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to dynamically build a set of rolling dice, and have the models working great. I don't seem to be able to dynamically build a texture using the CanvasRenderer (tried also on WebGLRenderer, but no dice there ether. )
I don't fully understand how the UV system works (and I've looked through +alteredQ's code until my mind went a little gibbery). I've gone through the source, and it seems that I'm not setting the UVs properly in my model, though I can't seem to figure out how to get the CanvasRendered code to pull the UVs and see that they are there.
I realize my next step will be to properly build the UVs, but for now, I'm just trying with 0,1, 1,0... etc to see if they work.
My goal is to make a Dice object to add to the codebase that you can texturize with the numbers as a font, and specify the number of sides, and potentially roll and see which face is up (likely by taking the dot product of the normals with the camera? but that's a latter issue). Thanks for any help!
The text was updated successfully, but these errors were encountered:
OMG. I can't believe I spent all that effort on stupid little array error. Thanks, I owe you a beer. For this and all you and Mr. Doob's other awesomeness.
Hi all!
I'm trying to dynamically build a set of rolling dice, and have the models working great. I don't seem to be able to dynamically build a texture using the CanvasRenderer (tried also on WebGLRenderer, but no dice there ether. )
I don't fully understand how the UV system works (and I've looked through +alteredQ's code until my mind went a little gibbery). I've gone through the source, and it seems that I'm not setting the UVs properly in my model, though I can't seem to figure out how to get the CanvasRendered code to pull the UVs and see that they are there.
I realize my next step will be to properly build the UVs, but for now, I'm just trying with 0,1, 1,0... etc to see if they work.
After creating the die geometry, I'm running:
And I have all the sample code I'm using at:
http://wecreategames.com/games/Three45/examples/jayMeshTestDice2.html
The working D10 without textures is at:
http://wecreategames.com/games/Three45/examples/jayMeshTestDice.html
My goal is to make a Dice object to add to the codebase that you can texturize with the numbers as a font, and specify the number of sides, and potentially roll and see which face is up (likely by taking the dot product of the normals with the camera? but that's a latter issue). Thanks for any help!
The text was updated successfully, but these errors were encountered: