Author Topic: Problem with 3d object composed of many materials  (Read 6151 times)

Offline Fierys

  • Member
  • *
  • Posts: 18
Problem with 3d object composed of many materials
« on: December 23, 2006, 03:18:37 PM »
I have tried to import a 3d object composed of 38 parts (each part has its own material). The problem is that only the first 16 materials from MTL file were applied to the surface shader through multi shader. The rest 22 materials were not connected to the surface shader. I have created another multi shader and have connected the next 16 materials to it. Then I have disconnected the first multi shader from the surface shader and have connected the second multi shader to the surface shader to see what happens. I tried to change materials connected to the second multi shader. The interesting thing is that when I changed materials connected to the multi shader the changes were applied to the parts/materials connected to the first multi shader. For example, when I changed color of the 10th material connected to the second multi shader the change was applied to the 10th part/material connected to the first multi shader although it wasn't connected to the surface shader.
My question is: How to apply the 17th material and the next ones mentioned in the MTL file to an imported 3d object composed of more than 16 parts/materials?   

Offline Tim O'Donoghue

  • Member
  • *
  • Posts: 99
    • Terragen Gallery@PBase
Re: Problem with 3d object composed of many materials
« Reply #1 on: December 23, 2006, 04:25:28 PM »
Can the multi-shaders be daisy-chained? i.e. make another multi-shader the 16th item in the first multi-shader, etc.

Offline Fierys

  • Member
  • *
  • Posts: 18
Re: Problem with 3d object composed of many materials
« Reply #2 on: December 23, 2006, 04:43:00 PM »
I tried to do it but it doesn't work.

Offline Ricowan

  • Member
  • *
  • Posts: 41
Re: Problem with 3d object composed of many materials
« Reply #3 on: December 23, 2006, 04:51:45 PM »
I've run into this problem too.  Luckily the object still looks ok in my case:


Offline manleystanley

  • Member
  • *
  • Posts: 51
Re: Problem with 3d object composed of many materials
« Reply #4 on: December 23, 2006, 05:22:21 PM »
Ya, but it sure screwed up the car I imported  :D
Ya, it was a bit highpoly, but surprisingly rendered, just most of it was default gray. 4 objects, 28 materials, and 93k verts.
"So you think you can tell, heaven from hell, blue skys from pain.
can you tell a green field, from a cold steel rail? a smile from a veil?
do you think you can tell?" P.F.

Offline Fierys

  • Member
  • *
  • Posts: 18
Re: Problem with 3d object composed of many materials
« Reply #5 on: December 23, 2006, 05:32:20 PM »
One of the solutions can be changing succession of materials in MTL file in a text editor but we are still limited to 16 materials. But this way we can apply materials to the parts which are seen by the camera.

Offline Moose

  • Member
  • *
  • Posts: 120
Re: Problem with 3d object composed of many materials
« Reply #6 on: December 23, 2006, 06:09:23 PM »
I haven't tried it, but you maybe able to combine the two multi shader nodes with an add colour node (listed under functions) - might work??

Offline Fierys

  • Member
  • *
  • Posts: 18
Re: Problem with 3d object composed of many materials
« Reply #7 on: December 23, 2006, 06:18:46 PM »
It probably will not work because materials connected to the second multi shader which was connected to the surface shader directly don't work.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12955
  • Holy snagging ducks!
Re: Problem with 3d object composed of many materials
« Reply #8 on: December 23, 2006, 09:15:58 PM »
The current 16 texture limitation is temporary. We will be implementing capabilities to import objects with an arbitrary (hopefully unlimited) number of textures for the final release.

- Oshyan