Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question for the devs: Skinning
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#1
Question for the devs: Skinning

So yea. For some reason, after I skin my model in Maya, the model viewer and editor won't open it. I tried to mimic the joint settings from other Amnesia models, but no go. So my question is, is there any specific skinning type/configuration needed for this? I just tried a basic smooth skin for mine.
04-25-2011, 01:33 AM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#2
RE: Question for the devs: Skinning

Does the log file for modelview or game say anything when you try to open it?

There is nothing special that needs to be done, but there are tons of stuff that can go wrong.
04-25-2011, 10:54 AM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#3
RE: Question for the devs: Skinning

Oh, I didn't know the viewer had log files. Just found them in the main directory.

Yea, I guess the problem is that I have more than 4 bones connected to a vertex. I'm guessing that's the limit for the engine then.
04-25-2011, 01:58 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#4
RE: Question for the devs: Skinning

I fixed the vertex problem by setting max influences below 4, but there still seems to be something wrong. For one, when I create my own joints, they don't seem to be recognized by the modelviewer, it says in the log that they don't exist. So I tried to copy the joints from the grunt. They recognize those, and everything seems to be fine, but the viewer still crashes! This is the log:

Spoiler below!
-------- THE HPL ENGINE LOG ------------
Engine build ID 20100731000830

Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Setting video mode: 1024 x 768 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: NVIDIA Corporation
Renderer: GeForce 9600 GT/PCI/SSE2
Version: 3.2.0
Max texture image units: 32
Max texture coord units: 8
Max user clip planes: 6
Two sided stencil: 1
Vertex Buffer Object: 1
Anisotropic filtering: 1
Max Anisotropic degree: 16
Multisampling: 1
Texture compression: 1
Texture compression S3TC: 1
Auto generate MipMaps: 1
Render to texture: 1
Max draw buffers: 8
Max color render targets: 8
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 1.50 NVIDIA via Cg compiler
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 1
OGL ATIFragmentShader: 0
Adding engine materials
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
Trying to open device 'Generic Software on Headset Earphone (4- Logitech USB Headset)'... Success!
Number of mono sources: 32
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
--------------------------------------------------------

Game Running
--------------------------------------------------------
Cache out of date! Reloading collada file 'D:/Models/gohei.dae'
WARNING: No 'extra scene' element found!
Loading material data for 'stick'
Using existing material!
Loading material data for 'paper'
Using existing material!
--------- MODEL INFO ------------------
MESH
Mesh path: 'D:/Models/gohei.dae'
Submeshes: 2
Name: 'stick'
Material: 'D:/Models/gohei_stick.mat'
Polycount: 12668
-----
Name: 'paper'
Material: 'D:/Models/gohei_paper.mat'
Polycount: 35480
-----
Total Polycount: 48148
Nodes: 0

SKELETON
Bones: 13
Name: 'servant_grunt_A_CenterRoot' Pos: (0.000202 : 0.902468 : -0.025305)
Name: 'servant_grunt_A_LeftHip' Pos: (-0.030650 : -0.023357 : -0.017569)
Name: 'servant_grunt_A_joint10' Pos: (0.085983 : 0.042703 : -0.013387)
Name: 'servant_grunt_A_joint11' Pos: (0.062672 : -0.074880 : 0.008249)
Name: 'servant_grunt_A_joint26' Pos: (0.036269 : -0.083500 : 0.000845)
Name: 'servant_grunt_A_joint27' Pos: (0.102097 : -0.037420 : 0.001242)
Name: 'servant_grunt_A_joint28' Pos: (0.076914 : -0.045469 : 0.002485)
Name: 'servant_grunt_A_RightHip' Pos: (-0.038202 : -0.018368 : 0.016151)
Name: 'servant_grunt_A_joint5' Pos: (0.087065 : 0.043432 : 0.036641)
Name: 'servant_grunt_A_joint6' Pos: (0.064109 : -0.070090 : -0.022290)
Name: 'servant_grunt_A_joint7' Pos: (0.036348 : -0.080075 : -0.026105)
Name: 'servant_grunt_A_joint8' Pos: (0.080404 : -0.043358 : 0.023351)
Name: 'servant_grunt_A_joint25' Pos: (0.071413 : -0.058797 : 0.026774)
---------------------------------------

The polycount is high, I was gonna fix that later, but there isn't any problem viewing the model if I de-skin it, so I'm not sure what's wrong.
04-25-2011, 07:52 PM
Find




Users browsing this thread: 1 Guest(s)