Cant see any textures

Discussion about ripping models and other assets from video games.

Moderators: Runa, Love2Raid, semory

Post Reply
frankalexandre
Posts: 1
Joined: Thu Dec 03, 2020 6:10 am

Cant see any textures

Post by frankalexandre »

Hi guys, sorry for a begginer question. Im loading a GTSports model on 3dsmax but when i load the ascii files i get no textures assigned on the material editor. Did a make something wrong? These asciii files are supposed to have the textures uv no?


Im pasting the begginer of one of these files:

0
633
sm_0
1
0
3692
-287.8438 22.57885 420.2069
-0.645793 -0.379648 -0.661448
0 0 0 0
0.063995 0.5
-287.9188 22.57885 420.249
-0.228963 -0.379648 -0.896282
0 0 0 0
0.209222 0.5
-287.8658 22.63798 420.1843
-0.616438 -0.469667 -0.632094
0 0 0 0
0.143944 0.75
-287.9265 22.63798 420.2184
-0.217221 -0.469667 -0.855186
0 0 0 0
0.262522 0.75
-288.0048 22.57885 420.2479
0.250489 -0.379648 -0.890411
0 0 0 0
0.354449 0.5
-287.9962 22.63798 420.2176
0.238748 -0.469667 -0.849315
0 0 0 0
0.381099 0.75
-288.0787 22.57885 420.204
0.661448 -0.379648 -0.645793
0 0 0 0
0.499677 0.5
-288.0561 22.63798 420.182
0.632094 -0.469667 -0.616438
0 0 0 0
0.499677 0.75
-288.1208 22.57885 420.129
0.896282 -0.379648 -0.228963
0 0 0 0
0.644904 0.5
-288.0902 22.63798 420.1212
0.855186 -0.469667 -0.217221
0 0 0 0
0.618254 0.75
-288.1198 22.57885 420.043
0.890411 -0.379648 0.250489
0 0 0 0
0.790131 0.5
-288.0894 22.63798 420.0515
0.849315 -0.469667 0.238748
0 0 0 0
0.736832 0.75
-288.0758 22.57885 419.9691
0.645793 -0.379648 0.661448
0 0 0 0
0.935359 0.5
-288.0538 22.63798 419.9916
0.616438 -0.469667 0.632094
0 0 0 0
0.85541 0.75
-287.8438 22.57885 420.2069
-0.645793 -0.379648 -0.661448
0 0 0 0
0.932821 0.5
-287.7998 22.57885 420.1329
-0.890411 -0.379648 -0.250489
0 0 0 0
0.788547 0.5
-287.8296 22.50999 420.2214
-0.686889 -0.18591 -0.702544
0 0 0 0
0.982749 0.25
-287.7803 22.50999 420.1384
-0.945206 -0.18591 -0.266145
0 0 0 0
0.821833 0.25
-287.7988 22.57885 420.0469
-0.896282 -0.379648 0.228963
0 0 0 0
0.644274 0.5
-287.7791 22.50999 420.0419
-0.953033 -0.18591 0.242661
0 0 0 0
0.660916 0.25
-287.8409 22.57885 419.9719
-0.661448 -0.379648 0.645793
0 0 0 0
0.5 0.5
-287.8264 22.50999 419.9577
-0.702544 -0.18591 0.686889
0 0 0 0
0.5 0.25
-287.9148 22.57885 419.928
-0.250489 -0.379648 0.890411
0 0 0 0
0.355726 0.5
-287.9093 22.50999 419.9084
-0.266145 -0.18591 0.945206
0 0 0 0
0.339084 0.25
-288.0008 22.57885 419.927
0.228963 -0.379648 0.896282
0 0 0 0
0.211453 0.5
-288.0059 22.50999 419.9073
0.242661 -0.18591 0.953033
0 0 0 0
0.178168 0.25
-288.0758 22.57885 419.9691
0.645793 -0.379648 0.661448
0 0 0 0
0.067179 0.5
-288.09 22.50999 419.9545
0.686889 -0.18591 0.702544
0 0 0 0
User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Cant see any textures

Post by semory »

0.063995 0.5

that's your UV coordinates. there's something else wrong. make sure you put the mesh ascii and all textures into a folder inside the data folder of XPS/XNALara.
User avatar
XNAaraL
XPS Author
Posts: 120
Joined: Fri Sep 21, 2012 9:01 am

Re: Cant see any textures

Post by XNAaraL »

The .mesh.ascii file has UV coordinates, but it haves no textures, no render group number, no bones, wrong 'mesh name' with not allowed underscore (sm_0) ...
Furthermore, the vertex colors are all black and will erase the colors of the texture.
Furthermore, the alpha value of the vertex colors is zero, and will make the model transparent (invisible).

BTW:
The model has the wrong size (scale) with the measure inch and not metric measure. The YZ vertex position looks like it is swapped.

The tool you used to create the mesh.ascii file is an extreme mess. :ohn:

Wrong:

Code: Select all

0 # bones
633 # meshes
sm_0
1 # uv layers
0 # textures
3692 # vertices
-287.8438 22.57885 420.2069 # vertex 3D position XYZ
-0.645793 -0.379648 -0.661448 # normals
0 0 0 0 # RGBA color
0.063995 0.5 # UV coordinates
-287.9188 22.57885 420.249 # vertex 3D position XYZ
-0.228963 -0.379648 -0.896282 # normals
0 0 0 0 # RGBA color
0.209222 0.5 # UV coordinates
Right:
0 # bones
633 # meshes
7_sm0
1 # uv layers
1 # textures
sm0_diffuse.dds
0 # uv layer index
3692 # vertices
-287.8438 22.57885 420.2069 # vertex 3D position XYZ
-0.645793 -0.379648 -0.661448 # normals
255 255 255 255 # RGBA color
0.063995 0.5 # UV coordinates
-287.9188 22.57885 420.249 # vertex 3D position XYZ
-0.228963 -0.379648 -0.896282 # normals
255 255 255 255 # RGBA color
0.209222 0.5 # UV coordinates
User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Cant see any textures

Post by semory »

XNAaraL wrote: The tool you used to create the mesh.ascii file is an extreme mess. :ohn:
Speaking of which, I have recently downloaded models off of dA that have a ridiculous number of UV layers lmao.
Any reason why XPS doesn't dump an error message like, "Dude, how bout deleting some of those useless UV channels before exporting lol?"

How ya been lately? Covid free?
User avatar
XNAaraL
XPS Author
Posts: 120
Joined: Fri Sep 21, 2012 9:01 am

Re: Cant see any textures

Post by XNAaraL »

semory wrote:Speaking of which, I have recently downloaded models off of dA that have a ridiculous number of UV layers lmao.
Any reason why XPS doesn't dump an error message like, "Dude, how bout deleting some of those useless UV channels before exporting lol?"

How ya been lately? Covid free?
Anx had already informed me about such DA models with more than 2 UV layers (2 UV layers are only allowed for lightmap and specular maps).

The reason why not dump an error message is ... I'm too nice :roll:

The XNALara ModelLoader.LoadMesh method had 105 lines of code. The XPS ModelLoader.LoadMesh method needs 218 lines of code to catch all this stupid misstakes.

Cochrane, the author of GLLara mentioned it here in his BUG-Fix to load this screwed up model by Marcelievsky:
if (i >= self.mesh.textures.count) {
// Grrr, idiot forgot to set texture that the shader is clearly
// using. Need to use some default.
texture.textureURL = [self.mesh.model.parameters defaultValueForTexture:texture.identifier];
} else {
texture.textureURL = self.mesh.textures;
}


Yes Covid free (fingers crossed) ... but not fine at all.
This week I have to do a 10 hour train ride. Not a good feeling about it.

How are you?
User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Cant see any textures

Post by semory »

I am good thank you! Waiting it out like everybody else! Living in Los Angeles is dangerous right now and everyone has to be really careful (unfortunately that's not the case and we have a President who inspires the absolute worst in people and places like Disneyland are still demanding to open lmao). LA is the hottest covid hotspot on Earth atm hahaha. I've broken protocol more than a few times too so :LOL: !

Train rides should be OK, just stay away from people and keep the window open!

DO WHAT YOU GOTTA DO!
Post Reply