Page 1 of 1

custom wallset trouble

Posted: Sun Feb 01, 2015 4:54 pm
by bongobeat
I have made a new wallset, from the castle wallset composed by 2 tilesets:
the problem is, when looking around, the ceiling from far distance disappears: how can I fix that?


I use all walls and door from the castle wallset, 2 custom floors, based on the castle floor.model, and finally I use the ceiling of the tomb:
I don't use any ceiling shaft.
SpoilerShow
Image
and what it looks when looking up:
SpoilerShow
Image
this is the tileset definitions:
SpoilerShow

Code: Select all

defineTile{
	name = "marble_floor",
	editorIcon = 192,
	color = {230,230,230,255},
	builder = "dungeon",
	floor = {
		"marble_floor", 1,
	},
	ceiling = {
		"marble_ceiling01", 1,
	},
	wall = {
		"marble_wall_palace01", 5,
		"marble_wall_palace01b", 1,
--	"marble_wall_palace02", 1,
	},
	pillar = {
		"marble_pillar", 1,
	},
}
defineTile{
	name = "marble_floor_palace",
	editorIcon = 192,
	color = {230,200,200,255},
	builder = "dungeon",
	floor = {
		"marble_floor_palace", 1,
	},
	ceiling = {
		"marble_ceiling02", 1,
	},
	wall = {
--		"marble_wall_palace01", 1,
	"marble_wall_palace02", 1,
	},
	pillar = {
		"marble_pillar", 1,
	},
}
and the ceilings definition:
SpoilerShow

Code: Select all

defineObject{
	name = "marble_ceiling01",
	baseObject = "base_ceiling",
	components = {
		{
			class = "Model",
			model = "mod_assets/models/marble_ceiling01.fbx",
			staticShadow = true,
			offset = vec(0, 1, 0),
		},
		{
			class = "Occluder",
			model = "assets/models/env/dungeon_ceiling_1111_occluder.fbx",
		},
	},
	minimalSaveState = true,
}

defineObject{
	name = "marble_ceiling02",
	baseObject = "base_ceiling",
	components = {
		{
			class = "Model",
			model = "mod_assets/models/marble_ceiling02.fbx",
			staticShadow = true,
			offset = vec(0, 1, 0),
		},
		{
			class = "Occluder",
			model = "assets/models/env/dungeon_ceiling_1111_occluder.fbx",
		},
	},
	minimalSaveState = true,
}
I have use an offset to raise it to the wall height.

please can someone help?

Re: custom wallset trouble

Posted: Sun Feb 01, 2015 9:12 pm
by minmay
You forgot to add your offset to the occluder as well. Here is a fixed definition:

Code: Select all

    defineObject{
       name = "marble_ceiling01",
       baseObject = "base_ceiling",
       components = {
          {
             class = "Model",
             model = "mod_assets/models/marble_ceiling01.fbx",
             staticShadow = true,
             offset = vec(0, 1, 0),
          },
          {
             class = "Occluder",
             model = "assets/models/env/dungeon_ceiling_1111_occluder.fbx",
             offset = vec(0, 1, 0),
          },
       },
       minimalSaveState = true,
    }

    defineObject{
       name = "marble_ceiling02",
       baseObject = "base_ceiling",
       components = {
          {
             class = "Model",
             model = "mod_assets/models/marble_ceiling02.fbx",
             staticShadow = true,
             offset = vec(0, 1, 0),
          },
          {
             class = "Occluder",
             model = "assets/models/env/dungeon_ceiling_1111_occluder.fbx",
             offset = vec(0, 1, 0),
          },
       },
       minimalSaveState = true,
    }

Re: custom wallset trouble

Posted: Sun Feb 01, 2015 11:32 pm
by Grimfan
While I believe minmay has solved your issue bongobeat, I just want to say that your tileset looks sweet. I look forward to seeing whatever mod it's for. :)

Re: custom wallset trouble

Posted: Mon Feb 02, 2015 12:09 am
by bongobeat
minmay wrote:You forgot to add your offset to the occluder as well. Here is a fixed definition:

Code: Select all

    defineObject{
       name = "marble_ceiling01",
       baseObject = "base_ceiling",
       components = {
          {
             class = "Model",
             model = "mod_assets/models/marble_ceiling01.fbx",
             staticShadow = true,
             offset = vec(0, 1, 0),
          },
          {
             class = "Occluder",
             model = "assets/models/env/dungeon_ceiling_1111_occluder.fbx",
             offset = vec(0, 1, 0),
          },
       },
       minimalSaveState = true,
    }

    defineObject{
       name = "marble_ceiling02",
       baseObject = "base_ceiling",
       components = {
          {
             class = "Model",
             model = "mod_assets/models/marble_ceiling02.fbx",
             staticShadow = true,
             offset = vec(0, 1, 0),
          },
          {
             class = "Occluder",
             model = "assets/models/env/dungeon_ceiling_1111_occluder.fbx",
             offset = vec(0, 1, 0),
          },
       },
       minimalSaveState = true,
    }
oh man! you re really good! :D
thank you
Grimfan wrote:While I believe minmay has solved your issue bongobeat, I just want to say that your tileset looks sweet. I look forward to seeing whatever mod it's for. :)
thank you :) . It is not yet integrated in a mod, it is just a try for some kind of imperial palace in my mod. It is going very big. But actually I have issue with exporting the mod at his actual size! Hope I will fix that :x