-
-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Labels
Description
Environment
- LWJGL version: 3.2.4
- LWJGL build #: 2
- Java version: jdk-13.0.1
- Platform:
Windows
- Module:
assimp
Description
Assimp retrieves name of the texture cut by first 4 first chars.
insted of "123.jpg"
i get "jpg " - looks like the buffer is moved by 4 chars more than should be
Some issue with encoding or with buffer read length
Example material and code to retrieve data:
For material:
# Blender MTL File: 'None'
# Material Count: 1
newmtl Material.001
Ns 500.039216
Ka 0.000000 0.000000 0.000000
Kd 1.000000 1.000000 1.000000
Ks 1.000000 1.000000 1.000000
Ke 0.000000 1.200000 0.000000
Ni 0.500000
d 1.000000
illum 2
map_Kd 123.jpg
For fallowing code
AIString mTexPath = AIString.calloc();
aiGetMaterialTexture(mMaterial, 1, 0, mTexPath, (IntBuffer) null, null, null, null, null, null);
System.out.println(mTexPath.dataString());
result: "jpg "
should be "123.jpg"