Hi everyone !,
I have a question, I want to import a 3d model , I have already did it, with assetManager.
But now I want to import his texture from a picture jpg.
I can’t do a playground because the model’s size is too big so I can share with you on a playground (>20 MB) . But I can share the result of my research :
I used dynamic Texture because I have found an example here : https://www.babylonjs-playground.com/#T100FS#18
So I have looking for something , and I have found rawTexture3D, but I don’t know if it can be used with a JPG, and how to use it. I have search in the doc of babylon, the constructor is : new RawTexture3D(data: ArrayBufferView, width: number, height: number, depth: number, format: number, scene: Scene, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, textureType?: number): RawTexture3D
But if I have a picture JPG, data == path to my JPG ?
Or if you have another solution please share it !
Here is the result with a lot of code + blender + format .glb (not what I want but it works) :
Have a nice day !