Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: How to add more texture maps to obj
« Last post by a8451727 on June 11, 2022, 02:31:39 am »
Thank you. Let me check whether there is a problem with my export
2
Support / Re: How to add more texture maps to obj
« Last post by AeroShark333 on June 10, 2022, 04:31:03 pm »
In Blender, try to import the model.
Then in top-left of your screen, change from Object Mode to Edit Mode.
Press CTRL+T (Triangulate mesh).
And then export this new Mesh as .Obj

(source: https://blender.stackexchange.com/questions/19253/how-to-make-all-polygons-into-triangles)
3
Support / Re: How to add more texture maps to obj
« Last post by EgonOlsen on June 09, 2022, 08:02:35 am »
That looks a bit dark and actually as if it exploded somewhat. While loading, the Loader reports polygons with more than 4 points. The Loader doesn't support these and while this isn't the reason for texturing issues, it might be the reason for the destroyed look. Can you export the mesh with 3-4 points per polygon instead?
4
Support / Re: How to add more texture maps to obj
« Last post by a8451727 on June 08, 2022, 01:38:07 pm »
Ok, but how does the rest look like? Blank? Textured with that one texture? Not present at all? A screen shot might be really helpful.

5
Support / Re: How to add more texture maps to obj
« Last post by a8451727 on June 08, 2022, 01:36:30 pm »
Ok, but how does the rest look like? Blank? Textured with that one texture? Not present at all? A screen shot might be really helpful.

02.jpg Loading with windows10(Paint 3d)
03.jpg Loading with jpct


6
Support / Re: How to add more texture maps to obj
« Last post by EgonOlsen on June 08, 2022, 09:21:16 am »
Ok, but how does the rest look like? Blank? Textured with that one texture? Not present at all? A screen shot might be really helpful.
7
Support / Re: How to add more texture maps to obj
« Last post by a8451727 on June 08, 2022, 03:38:44 am »
I had brief try on loading (but not rendering) the object and I can't see anything wrong with it. This is an excerpt  from the log output:

Code: [Select]
2022-06-07 16:56:12.146 6204-6234/com.example.androidtestcase I/jPCT-AE: Text file from InputStream loaded...2796 bytes
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material FrontColor!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Color_E04!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Color_E03!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Color_007!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Carpet_Loop_Pattern!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material _Wood__Floor_2!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Stone_Pavers_Flagstone_Gray!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Texture named 02/Stone_Pavers_Flagstone_Gray.jpg added to TextureManager!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Wood__Floor!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Texture named 02/Wood__Floor.jpg added to TextureManager!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Stone_Coursed_Rough!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Texture named 02/Stone_Coursed_Rough.jpg added to TextureManager!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Groundcover_RiverRock_4inch!

Prior to loading the model, I assigned two textures to the manager:

Code: [Select]
TextureManager.getInstance().addTexture("02/Carpet_Loop_Pattern.jpg", texture);
TextureManager.getInstance().addTexture("02/_Wood__Floor_2.jpg", texture2);

Note that these textures don't show up in the log, only the ones that have no matching names in the TextureManager do. As all working as expected.

I'm not sure, what your actual issue is...you loaded the textures and the model but the textures don't show on the model? If that's the case, maybe you can post a screen shot of how the model looks instead?

I loaded textures and models, but only one texture can be displayed on the model
8
Support / Re: How to add more texture maps to obj
« Last post by EgonOlsen on June 07, 2022, 05:06:57 pm »
Oh, and please wrap larger chunks of text or code into code-Tags (the # in the forum's editor). I did that for your former posts.
9
Support / Re: How to add more texture maps to obj
« Last post by EgonOlsen on June 07, 2022, 05:05:47 pm »
I had brief try on loading (but not rendering) the object and I can't see anything wrong with it. This is an excerpt  from the log output:

Code: [Select]
2022-06-07 16:56:12.146 6204-6234/com.example.androidtestcase I/jPCT-AE: Text file from InputStream loaded...2796 bytes
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material FrontColor!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Color_E04!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Color_E03!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Color_007!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Carpet_Loop_Pattern!
2022-06-07 16:56:12.147 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material _Wood__Floor_2!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Stone_Pavers_Flagstone_Gray!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Texture named 02/Stone_Pavers_Flagstone_Gray.jpg added to TextureManager!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Wood__Floor!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Texture named 02/Wood__Floor.jpg added to TextureManager!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Stone_Coursed_Rough!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Texture named 02/Stone_Coursed_Rough.jpg added to TextureManager!
2022-06-07 16:56:12.148 6204-6234/com.example.androidtestcase I/jPCT-AE: Processing new material Groundcover_RiverRock_4inch!

Prior to loading the model, I assigned two textures to the manager:

Code: [Select]
TextureManager.getInstance().addTexture("02/Carpet_Loop_Pattern.jpg", texture);
TextureManager.getInstance().addTexture("02/_Wood__Floor_2.jpg", texture2);

Note that these textures don't show up in the log, only the ones that have no matching names in the TextureManager do. As all working as expected.

I'm not sure, what your actual issue is...you loaded the textures and the model but the textures don't show on the model? If that's the case, maybe you can post a screen shot of how the model looks instead?
10
Support / Re: How to add more texture maps to obj
« Last post by a8451727 on June 06, 2022, 02:59:30 am »
Yes, I just sent an email
Pages: [1] 2 3 ... 10