Spoiler for OLD:
Taking a new approach: [Only registered and activated users can see links. Click Here To Register...]
Printable View
Spoiler for OLD:
Taking a new approach: [Only registered and activated users can see links. Click Here To Register...]
It's caused by overlapping faces in the model, I think osrs just handles them differently when rendering. It can be fixed by adjusting the model. There may be other solutions but I haven't really looked into it much.
Hmm, check this out. I'm comparing two crate objects packed from OSRS.Quote:
Originally Posted by Incendiary [Only registered and activated users can see links. Click Here To Register...]
obj1 = model that glitches
obj2 = model that works as it should
Are you able to see overlapping from this data?Code:id=62405
type=10 models[0]=[65585]
model=65585
id=62404
type=10 models[0]=[65541]
model=65541
faceIndicesB
[obj1] = [1, 2, 3, 4, 5, 1, 6, 7, 8, 3, 9, 10, 11, 4, 12, 13, 14, 14, 15, 16, 5, 17, 2, 18, 19, 19, 19, 21, 22, 23, 23, 24, 24, 5, 25, 26, 26, 26, 28, 29, 29, 17, 17, 30, 31, 32, 32, 33, 34, 34, 35, 36, 36, 37, 37, 37, 39, 40, 40, 24, 41, 42, 43, 43, 44, 45, 45, 46, 47, 47, 48, 48, 48, 50, 51, 51, 51, 52, 47, 46, 52, 3, 53, 54, 54, 54, 8, 55, 55, 55, 40, 56, 36, 35, 56, 24, 57, 58, 58, 58, 60, 61, 61, 4, 62, 63, 63, 63, 64, 64, 64, 62, 4, 16, 66, 66, 66, 67, 67, 67]
[obj2] = [1, 2, 3, 4, 5, 5, 6, 7, 7, 7]
face_textures_ids
[obj1] = [22, 22, 22, 22, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 22, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, 22, 22, -1, -1, -1, -1, -1, -1, -1, -1, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
[obj2] = [22, 22, 22, 22, 22, 22, 22, 22, 22, 22]
faceIndicesA
[obj1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 6, 20, 20, 20, 20, 7, 3, 4, 4, 4, 4, 12, 27, 27, 27, 13, 24, 5, 5, 5, 5, 1, 1, 1, 2, 2, 2, 17, 17, 30, 38, 38, 38, 31, 4, 4, 4, 4, 5, 5, 5, 17, 17, 17, 24, 24, 41, 49, 49, 49, 42, 44, 44, 50, 50, 50, 2, 2, 2, 18, 21, 3, 3, 53, 22, 33, 33, 39, 39, 39, 3, 3, 3, 9, 59, 59, 59, 10, 24, 24, 24, 57, 60, 60, 61, 65, 65, 65, 5, 5, 25, 28, 28, 29, 15]
[obj2] = [0, 0, 0, 0, 0, 1, 1, 3, 4, 5]
maxIndex
[obj1] = 68
[obj2] = 8
numVertices
[obj1] = 68
[obj2] = 8
face_textures_coords
[obj1] = [0, 0, 2, 4, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
[obj2] = [0, 0, 2, 4, 4, 1, 1, 2, 3, 3]
verticesY
[obj1] = [-80, -80, 0, 0, -80, -80, -72, -72, -64, -16, -64, -72, -80, -80, -80, -80, -80, 0, -16, -64, -48, -40, -32, -40, 0, -80, -80, -80, -80, -80, -16, -64, -72, -72, -64, -16, -8, -8, -40, -32, -48, -16, -64, -72, -72, -64, -16, -8, -8, -40, -32, -48, -40, -8, -8, -16, -40, -8, -8, -40, -32, -48, -64, -16, -40, -72, -80, -80]
[obj2] = [-80, -80, 0, 0, -80, -80, 0, 0]
verticesZ
[obj1] = [48, 48, 48, 48, -48, -48, 48, 48, 48, 40, 40, 32, -32, 32, 40, 40, 32, -48, 48, 48, 48, 48, 48, 48, -48, -40, -40, 0, -8, 8, -40, -40, -32, 32, 40, 40, 32, -32, -8, 0, 0, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, -48, 48, 48, 48, 8, -32, 32, 8, 0, 0, -40, -40, -8, -32, -32, 0]
[obj2] = [48, 48, 48, 48, -48, -48, -48, -48]
faceColors
[obj1] = [127, 127, 127, 127, 127, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 127, 127, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 127, 127, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 127, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812, 6812]
[obj2] = [127, 127, 127, 127, 127, 127, 127, 127, 127, 127]
verticesX
[obj1] = [-48, 48, 48, -48, -48, 48, 32, -32, -40, -48, -48, -48, -40, -40, -32, 32, 40, 48, 40, 40, 0, 8, 0, -8, -48, 32, -32, -8, 0, 0, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, -40, -40, -32, 32, 40, 40, 32, -32, -8, 0, 0, 8, -32, 32, -40, 48, -48, -48, -48, -48, -48, -48, -48, -48, -48, 40, 8]
[obj2] = [-48, 48, 48, -48, -48, 48, 48, -48]
textureMappingP
[obj1] = [0, 1, 3, 24, 0]
[obj2] = [0, 1, 3, 7, 0]
facePriorities
[obj1] = [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[obj2] = null
textureMappingM
[obj1] = [1, 5, 24, 17, 4]
[obj2] = [1, 5, 7, 6, 4]
numFaces
[obj1] = 120
[obj2] = 10
faceIndicesC
[obj1] = [2, 3, 4, 5, 1, 6, 7, 8, 3, 9, 10, 11, 4, 12, 13, 14, 1, 15, 16, 5, 17, 2, 18, 19, 6, 20, 21, 22, 23, 7, 8, 4, 5, 25, 26, 12, 27, 28, 29, 13, 14, 5, 30, 31, 32, 1, 33, 34, 2, 35, 36, 17, 37, 30, 38, 39, 40, 31, 32, 41, 42, 43, 5, 44, 45, 17, 46, 47, 24, 48, 41, 49, 50, 51, 42, 43, 52, 45, 46, 52, 51, 53, 54, 18, 21, 22, 55, 53, 22, 23, 56, 34, 35, 56, 40, 57, 58, 9, 59, 60, 61, 10, 11, 62, 63, 57, 60, 64, 61, 65, 62, 4, 11, 66, 25, 28, 67, 29, 15, 16]
[obj2] = [2, 3, 4, 5, 1, 6, 2, 4, 5, 6]
are you sure there isnt another crate obj model underneath that one?
Yes, I can spawn the object by itself elsewhere and the issue still exists.Quote:
Originally Posted by lumplum [Only registered and activated users can see links. Click Here To Register...]
also have the same issue but with other certain osrs models in 614
[Only registered and activated users can see links. Click Here To Register...]
If I figure a way to re-write the model data with it fixed I'll post it here.Quote:
Originally Posted by War93 [Only registered and activated users can see links. Click Here To Register...]
Can't tell much from raw data like that. If you were to convert the model to mqo or something similar it becomes pretty obvious.Quote:
Originally Posted by Extea [Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
If you want to take a look up close:
[Only registered and activated users can see links. Click Here To Register...]
The issue is to do with your OpenGL's Z-buffer. older revision models were not intended for this. In the gif you can also see some clipping issues on the dock's.Quote:
Originally Posted by Extea [Only registered and activated users can see links. Click Here To Register...]
Thank you.Quote:
Originally Posted by Zion [Only registered and activated users can see links. Click Here To Register...]
Do you know if there's a way to identify models that have this issue with out visually seeing them?
For example, if I identify that the model isn't going to work with Z-Buffering I won't even bother packing it.
That's the solution I'm looking into now. My other option is to manually weed out these models as I come across them.