[Models] Captivated by Captive

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: [Models] Captivated by Captive

Post by msyblade »

If youre wanting to make the torches non-removable also, u can use this:
SpoilerShow

Code: Select all

function keepTorch3(t)
	t:addItem(spawn("torch"))
	setMouseItem(nil)
	hudPrint(" You cannot remove the torch...")
end

just connect your torchholder to it set on deactivate. :)
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: [Models] Captivated by Captive

Post by Komag »

that beautiful little script ought to have a home in the repository! 8-)
Finished Dungeons - complete mods to play
hyteria
Posts: 266
Joined: Sat Dec 29, 2012 8:22 pm

Re: [Models] Captivated by Captive

Post by hyteria »

haha right thx for the good idea , no more light for you fellow !!! :p
User avatar
undeaddemon
Posts: 157
Joined: Fri Mar 02, 2012 3:38 pm

Re: [Models] Captivated by Captive

Post by undeaddemon »

Love It ... No more light for you fella, except right here.... :)
User avatar
BuzzJ
Posts: 160
Joined: Sat Jan 12, 2013 4:06 pm

Re: [Models] Captivated by Captive

Post by BuzzJ »

Hi all, thanks for the replies.

I wasn't posting in this thread because I was busy implementing the things I was modelling.

so far I have ingame

1 wall
3 wall decorations which allow for 4 practical combinations
1 ceiling
1 floor

For reference, I got invisible pillars to work. And it was correctly stated previously, you just make a blank .dds saved in DXT3 format (explicit alpha) so the alpha isn't made white, and you must set "alphatest" to true. See here in materials.lua:

defineMaterial{
name = "CaptivePillar002",
diffuseMap = "mod_assets/textures/CaptivePillar002Diffuse.tga",
specularMap = "mod_assets/textures/CaptivePillar002Spec.tga",
normalMap = "mod_assets/textures/CaptivePillar002Normal.tga",
doubleSided = false,
lighting = true,
alphaTest = true,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 30,
depthBias = 0,
}

Now that I am up to speed with that, I can work on the lightsource issue. I'm about to do trials, and I'll post if I get stuck. Thanks in advance.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [Models] Captivated by Captive

Post by Neikun »

I can get true invisible out of a dxt1 compression 0:
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
BuzzJ
Posts: 160
Joined: Sat Jan 12, 2013 4:06 pm

Re: [Models] Captivated by Captive

Post by BuzzJ »

oh really? I didn't actually check that, I just assumed that's what I was supposed to do and it worked. Glad you set the record straight.
User avatar
BuzzJ
Posts: 160
Joined: Sat Jan 12, 2013 4:06 pm

Re: [Models] Captivated by Captive

Post by BuzzJ »

Okay! This worked for me, but I'm tweaking the settings right now. It appears that classes aren't altogether that determinitive of what functions they can have, which leads me to believe there are a number of hybrid things you can do.

This worked for me, but I am still tweaking the exact settings. It creates, in effect a decoration that is also a lightsource that doesn't replace wall.

defineObject{
name = "CaptiveLight001",
class = "LightSource",
model = "mod_assets/models/CaptiveLight001.fbx",
lightPosition = vec(0, 2.45, -1),
lightRange = 12,
lightColor = vec(0.45, 1, 0.45),
brightness = 5,
castShadow = true,
flicker = false,
placement = "wall",
editorIcon = 88,
}
User avatar
BuzzJ
Posts: 160
Joined: Sat Jan 12, 2013 4:06 pm

Re: [Models] Captivated by Captive

Post by BuzzJ »

Oh yeah, and what is a [models] thread without models?

here is what I currently have implemented, the spike and the socket are seperate decorations, I only realized after compiling the dungeon I should have shown them off seperately. Textures are piss poor, but so long as the models work correctly I'm happy.

Image might be a bit large, so spoilered, but less than 1mb. Also some of the image is cut off, so you can save as to see the right side.
SpoilerShow
Image
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [Models] Captivated by Captive

Post by Neikun »

Neat idea with light source.
I think that floor is a spectacular way to go about seamless floors.

I'm still recruiting for the LotNR Project. We could talk more about it over private message if you like. :)
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Post Reply