Game Development Community

PlayerModel.setModel is bugged/doesnt work

by Azmodeus · in Torque Game Engine Advanced · 08/18/2005 (9:21 pm) · 66 replies

Just browsing at the code, most of it is commented out, so I'm guessing this is still bugged. Any eta on when it will be fixed? I would really like to have GUI's with models in them.

Yes, I have tried to use it, and it just doesnt display. No errors logged, just no model shows up.
Page «Previous 1 2 3 4 Last »
#1
08/19/2005 (12:28 am)
It'll get ported from TGE at some point. It's a pretty straightforward port, if you need it badly you can probably do it yourself and save a lot of waiting. :)
#2
08/19/2005 (3:45 am)
Objectview is much more versatile than playerview. I have a fully converted version if you wish, just email me.
#3
08/19/2005 (9:52 am)
Email sent.
#4
08/19/2005 (10:33 am)
Email sent. I would also love to have this.
#5
08/19/2005 (2:20 pm)
Both sent. Anyone else wishing it, post here AND email me. That will help me verify your ownership.
#6
08/19/2005 (3:34 pm)
Email sent.
#7
08/19/2005 (6:09 pm)
I'm getting some errors. I'm not sure if it is part of the DNA resource you mentioned or not, so I'll post it here and also try to find the DNA resource thingy you were talking about.

forceHidden is not a member of TSShapeInstance::MeshObjectInstance

getScalePerBoneList is not a member of TSShapeInstance

mScalePerBone is not a member of TSShapeInstance
#8
08/19/2005 (6:17 pm)
I found this:

Basic Information
Author: Duncan "OziMan" (Apr 03, 2005)
Code File: customshapemod.zip

Is that the DNA mod that you were talking about? If so, I hate to sound like a leech, but do you have that ported over to TSE as well so I can compile your code and have the benefit of the DNA mod also?
#9
08/19/2005 (6:19 pm)
2 of those are the DNA resource aspect, the third is my hiding meshes resource. I exposed both of them to the objectview. Yank the offending lines, and you'll be fine.
#10
08/19/2005 (6:55 pm)
Yea, I tried that, and I get a hard crash upon calling:

ModeLView.setObject("spaceOrc","myGame/data/shapes/spaceOrc/orc_player.dts","",0)

I tried with and without a skin.

The log doesnt show any errors, but the crash is when it tries to show the model. The command seems to work because in the log I get a GuiObjectView loading object command in the log and it keeps going in script. But when it tries to update the frame and draw the object, it crashes.


I tried to debug it. The debugger crashes on tsMesh.cpp on line 348:
VectorF sunVector = lights[0]->mDirection; //first light is always the sun.


Is there anything different that needs to be called besides the line I put above? Ie do we need to add lines for lighting the scene?

As for the DNA, I'm not there yet, but later I might come bugging ya for it when I need it. The customshape mod was very neat to make different sizes of your model with the flick of a line in code.
#11
08/19/2005 (6:58 pm)
If it helps, the call stack goes back to GuiObjectView::renderWorld and is executing line 310:

mMeshObjects.mMesh[i].mesh->render();
#12
08/31/2005 (8:43 am)
Hi Erick, I'm curious to see your version. Email sent
#13
09/01/2005 (6:08 am)
Hi,

Thanks to Erik for his port.

I have the following problem. The player now load perfectly but it is show as black. Like it has no texture. I bet it's a light problem. I did not change the code from what Erik did so is there something else I should be aware of ?

CA
#14
09/01/2005 (12:56 pm)
How did you get the player to load?

Everything I have tried gives a crash.
#15
09/19/2005 (10:58 am)
Email sent
Could you pls. send i too to me at slavo@azet.sk? thx.
#16
09/20/2005 (8:45 am)
Email sent
Could you pls. send i too to me at slavo@azet.sk? thx.
#17
10/03/2005 (6:58 pm)
Hey Erik!

Proof of ownership right here :)
(max@echelon5.net)
#18
10/25/2005 (7:25 pm)
Heya Erik,

Sent an email to you, posting here with link for proof on TSE portion. Hopefully you have time to send, been struggling with converting the base guiobjectview or playerview over and finally tossing the towel and gonna admit to seeking a working bit to continue work on this portion. =) Appreciate you making the offer also, biting off more then I can chew on TSE but trying and glad to see some out here working on it so early with still changes to come.

markroberts906@gmail.com AKA Mark
#19
11/08/2005 (12:03 pm)
Email sent. Thanks again!
#20
11/13/2005 (11:08 am)
Email about to be sent. Thanks in advance! ;)
Page «Previous 1 2 3 4 Last »