[Solved] MD2 Drawing problem in Network branche
Moderator: PPS-Leaders
[Solved] MD2 Drawing problem in Network branche
The MD2 model doesn't get drawn correctly in the network branche. Altough it's no problem to draw it in the single-player levels, in the multiplayer levels the model is a mess.
Last edited by patrick on Wed Nov 15, 2006 10:53 am, edited 1 time in total.
I have just verified, that the path to the model data is correct.
There is obviously a problem in the MD2Data: the vertex informations are completely messed up:
We have to huge numbers, many 0s and nans. I assume that MD2Model->data is not set correctly. Therefore the bug is most probably found in the new resource manager.
There is obviously a problem in the MD2Data: the vertex informations are completely messed up:
Code: Select all
vertex: -1505585607220892518112805842354962432.000000, -1713284770553236935573084301567197184.000000, -2460988353144579424904165927094845440.000000
vertex: 0.000000, 0.000000, 0.000000
vertex: 0.000000, 0.000000, 0.000000
vertex: 0.000000, 0.000000, 0.000000
vertex: 0.000000, nan, nan
vertex: 0.000000, -265838987091452384136203205252149673984.000000, -71110832884136483401906295175754285056.000000
vertex: -20020496510186715262615812946643648512.000000, -7060913987668655796459355093497544704.000000, -3841966283207912420779973650679857152.000000
The CountPointer, the base reference mechanism of the ResourceManager, does not seem to work correctly:
If I create 10 times the model:
models/creatures/male.md2
the CountPointer::count() return value is always 2. If I understand the concept correctly, it should always return the number of references to the Data...
BTW: the count() always returns 2, also if there is only one such Resource needed...
eg:
If I create 10 times the model:
models/creatures/male.md2
the CountPointer::count() return value is always 2. If I understand the concept correctly, it should always return the number of references to the Data...
BTW: the count() always returns 2, also if there is only one such Resource needed...
eg:
Code: Select all
==========================| MD2Model::debug() |===
= Model FileName: /home/boenzlip/orxonox/data//models/creatures/male.md2
= Skin FileName: male_sarge.pcx
= Size in Memory: 257464 Bytes
= Number of Vertices: 315
= Number of Frames: 198
= Height, Width: 195, 284
= DATA:
= Count pointer address: 0x959abd0
= Number of references to data: 2
===================================================
and
==========================| MD2Model::debug() |===
= Model FileName: /home/boenzlip/orxonox/data//models/creatures/male.md2
= Skin FileName: male_sarge.pcx
= Size in Memory: 257464 Bytes
= Number of Vertices: 315
= Number of Frames: 198
= Height, Width: 195, 284
= DATA:
= Count pointer address: 0x9568848
= Number of references to data: 2
===================================================
Who is online
Users browsing this forum: No registered users and 53 guests