login

Author Topic: Need help with GMax  (Read 5830 times)

nhm

  • Guest
Need help with GMax
« on: April 01, 2007, 02:39:14 PM »
I'm trying to rig a model I've made with Wings with GMax, and I keep getting errors when I try to export it (using SMD import/export scripts).

Here's everything I've done:
I imported (using SMD script) a rigged model I extracted with BRFEdit, I deleted the mesh, I imported my own model (with GMax's own import function), modify -> modifier list -> skin, rigged it, checked that every vertex is rigged, then tried to export the mesh (pick model, click on the mesh, then press export). After that I get the error: "-- Runtime error: Material must be a multimaterial!"

I get the same error with a couple of models I've made. I know the scripts work, because I can import and export models just fine. Am I doing something wrong? Does the model need to be textured before rigging? What gives?

Thanking you in advance,
 -Nahkh

Yoshiboy

  • Guest
Re: Need help with GMax
« Reply #1 on: April 01, 2007, 02:46:24 PM »
Have you tried just assigning a material to the mesh before exporting. The default material in Gmax should do.

nhm

  • Guest
Re: Need help with GMax
« Reply #2 on: April 01, 2007, 03:01:04 PM »
(Wow, quick response  :) )
No, I haven't. I don't really know GMax at all (nor do I really like it).
According to GMax material navigator there is a standard material assigned.
Hm. I tried creating a multimaterial material (?) and assigning that to the mesh. When I'm trying to export it gmax says "--unknown property: "filename" is undefined".

Yoshiboy

  • Guest
Re: Need help with GMax
« Reply #3 on: April 02, 2007, 02:37:59 AM »
press "m" to being up the material window. just select one of the grey spheres and drag it over your model to assign it. Is what what you were doing?

nhm

  • Guest
Re: Need help with GMax
« Reply #4 on: April 02, 2007, 06:07:01 AM »
We'll, no, I opened the menu, select the mesh, and hit apply. The same thing (I think), only in a different way.
The mesh did turn from white to gray, if that's what you mean. Still getting ""filename" is undefined".

I've tried to import a couple of different meshes with bones, after rigging it gives the same error. Those same meshes import fine, and export fine, but my meshes, never.
« Last Edit: April 02, 2007, 09:36:19 AM by nhm »

Yoshiboy

  • Guest
Re: Need help with GMax
« Reply #5 on: April 02, 2007, 09:59:58 AM »
We'll, no, I opened the menu, select the mesh, and hit apply. The same thing (I think), only in a different way.
The mesh did turn from white to gray, if that's what you mean. Still getting ""filename" is undefined".

I've tried to import a couple of different meshes with bones, after rigging it gives the same error. Those same meshes import fine, and export fine, but my meshes, never.

Hmmm, I'm not sure about this. Maybe Thorgrim will know more about it.

nhm

  • Guest
Re: Need help with GMax
« Reply #6 on: April 02, 2007, 10:30:42 AM »
How do I invoke him? Repeat his name three times in front of a mirror?-D (jokejokejoke)

The text that appears in MAXScript Listener is here:
Code: [Select]
Welcome to MAXScript.

-- Error occurred in triIdx loop
--  Frame:
--   triIdx: 1
--   texPath: undefined
--   texFilename: undefined
--   tri: undefined
--   matIdx: 1
--   texTri: undefined
--   called in WriteTris()
--  Frame:
--   multiMat: #Multi-Material:Mtl #5(Standard:Mtl #3, Standard:Mtl #4)
--   fstream: StringStream:"
version 1
nodes
  0  "0" -1
  1  "1" 0
  2  "2" 1
  3  "3" 2
  4  "4" 0
  5  "5" 4
  6  "6" 5
  7  "7" 0
  8  "8" 7
  9  "9" 8
 10  "10" 8
 11  "11" 10
 12  "12" 11
 13  "13" 12
 14  "14" 13
 15  "15" 8
 16  "16" 15
 17  "17" 16
 18  "18" 17
 19  "19" 18
end
skeleton
time 0
  0 -0.002980 -0.137334 8.603644 -1.298807 -1.320893 1.547938
  1 0.704046 0.503603 0.999895 0.277594 0.049335 2.964253
  2 4.651645 0.000001 0.000059 -0.032812 0.000260 -0.032812
  3 4.724808 0.000000 -0.000000 -1.603895 0.113773 -1.603896
  4 0.705008 -0.036968 -1.143361 0.279415 0.033027 3.011889
  5 4.672234 0.000000 -0.000052 -0.032636 0.004506 -0.032637
  6 4.698491 0.000000 -0.000000 -1.654343 0.078338 -1.654343
  7 1.910834 -0.466635 0.143460 -0.241118 -0.067382 -0.240885
  8 1.985240 0.000000 0.000025 0.000000 -0.000062 0.000000
  9 2.499809 0.006890 -0.002300 -0.000000 -0.015148 -0.000000
 10 1.758867 -0.001536 0.691072 -0.000000 -1.540331 0.000000
 11 1.454169 0.000000 0.000000 0.000000 0.050534 -0.000000
 12 2.770648 0.000000 0.000000 -0.034646 -0.030768 -0.030201
 13 2.719983 -0.022128 -0.000025 -0.254785 -0.181985 -0.254933
 14 0.674834 -0.000000 -0.000000 0.293284 0.085006 0.287551
 15 1.758127 0.027817 -0.688622 -0.000000 1.515255 -0.000000
 16 1.454170 -0.000000 0.000001 -0.000000 0.021416 -0.000000
 17 2.771103 0.007464 0.000086 0.019606 0.033889 -0.015856
 18 2.717391 -0.018908 -0.000258 -0.257119 0.184047 -0.257016
 19 0.681306 -0.000000 0.000000 0.208912 -0.250179 0.205580
end
triangles
"
--   numTris: 420
--   modelObj: $Editable_Mesh:cylinder2 @ [-0.066989,0.000000,14.437435]
--   modelAsMesh: TriMesh
--   called in WriteSMD()
--  Frame:
--   fname: undefined
--   fstream: StringStream:"
version 1
nodes
  0  "0" -1
  1  "1" 0
  2  "2" 1
  3  "3" 2
  4  "4" 0
  5  "5" 4
  6  "6" 5
  7  "7" 0
  8  "8" 7
  9  "9" 8
 10  "10" 8
 11  "11" 10
 12  "12" 11
 13  "13" 12
 14  "14" 13
 15  "15" 8
 16  "16" 15
 17  "17" 16
 18  "18" 17
 19  "19" 18
end
skeleton
time 0
  0 -0.002980 -0.137334 8.603644 -1.298807 -1.320893 1.547938
  1 0.704046 0.503603 0.999895 0.277594 0.049335 2.964253
  2 4.651645 0.000001 0.000059 -0.032812 0.000260 -0.032812
  3 4.724808 0.000000 -0.000000 -1.603895 0.113773 -1.603896
  4 0.705008 -0.036968 -1.143361 0.279415 0.033027 3.011889
  5 4.672234 0.000000 -0.000052 -0.032636 0.004506 -0.032637
  6 4.698491 0.000000 -0.000000 -1.654343 0.078338 -1.654343
  7 1.910834 -0.466635 0.143460 -0.241118 -0.067382 -0.240885
  8 1.985240 0.000000 0.000025 0.000000 -0.000062 0.000000
  9 2.499809 0.006890 -0.002300 -0.000000 -0.015148 -0.000000
 10 1.758867 -0.001536 0.691072 -0.000000 -1.540331 0.000000
 11 1.454169 0.000000 0.000000 0.000000 0.050534 -0.000000
 12 2.770648 0.000000 0.000000 -0.034646 -0.030768 -0.030201
 13 2.719983 -0.022128 -0.000025 -0.254785 -0.181985 -0.254933
 14 0.674834 -0.000000 -0.000000 0.293284 0.085006 0.287551
 15 1.758127 0.027817 -0.688622 -0.000000 1.515255 -0.000000
 16 1.454170 -0.000000 0.000001 -0.000000 0.021416 -0.000000
 17 2.771103 0.007464 0.000086 0.019606 0.033889 -0.015856
 18 2.717391 -0.018908 -0.000258 -0.257119 0.184047 -0.257016
 19 0.681306 -0.000000 0.000000 0.208912 -0.250179 0.205580
end
triangles
"
--   modelObj: $Editable_Mesh:cylinder2 @ [-0.066989,0.000000,14.437435]
--   called in exportButton()
--  Frame:
--   fname: undefined
--   good: undefined

If that is of any help.