Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: mylesblasonato on August 12, 2009, 02:28:46 AM

Title: blk_region problem (SOLVED KIND OF)
Post by: mylesblasonato on August 12, 2009, 02:28:46 AM
Hi guys...again :)
I have another problem and this time it's with the "blk_" naming convention for blocked regions. I have named the mesh in the middle of the following pic "blk_flower" but for some reason the character still treats it like its not there (not named properly)

(http://img193.imageshack.us/img193/3329/77741393.jpg) (http://img193.imageshack.us/i/77741393.jpg/)

Anyone know why it's doing that?
Cheers  ::beer
Myles Blasonato.
Title: Re: blk_region problem
Post by: Azrael on August 12, 2009, 06:53:19 AM
If you use "Find path using 2D elements only" the blk_ in geometry only works for stencil shadows, not as blocked region.
You have to set a blocked region by creating it in SceneEdit.
Title: Re: blk_region problem
Post by: mylesblasonato on August 12, 2009, 10:07:16 AM
Hi there,
Ok so what if I untick the "Find path using 2D elements only" box, will it work then?
I want to have it so that when the character walks behind it and infront of it, the character appears and dissapears accordingly.

Cheers  ::beer
Myles Blasonato.

Title: Re: blk_region problem
Post by: Azrael on August 12, 2009, 11:41:21 AM
Sorry, with "Find path using 2D elements only" the blk_ also hides the actors :P

Yes if you untick it the actor should not be able to go trough the blk_.
Also you need a .geometry file as written in documentation.

Obviously if you untick "Find path using 2D elements only" you have to put waypoints in the 3DS of the scene.
Title: Re: blk_region problem
Post by: mylesblasonato on August 13, 2009, 01:00:32 AM
Hi man,
I tried that and it still doesn't work. I have no idea WTH! is going on. I even looked at the 3D source that i downloaded from here, sorry to the creator for not remembering your name. It has a couch in one of the scenes that acts the way i want the flower orniment in our game to act but i looked in his 3ds file and it has blk_sofa_none for the name so i even changed mine to that but it still didn't work and i even copied his settings for the scene and nothing happens. Is the shadow file needed and if so what for?

Cheers  ::beer
Myles Blasonato.
Title: Re: blk_region problem
Post by: Azrael on August 13, 2009, 07:13:42 AM
Do you have a .geometry file with the same name of the 3ds in the scene's folder?
Title: Re: blk_region problem
Post by: mylesblasonato on August 13, 2009, 11:56:48 PM
Yeah, I created one and put the stuff from the WME doc in there and still nothing. Any ideas?

Cheers  ::beer
Myles Blasonato.
Title: Re: blk_region problem
Post by: Mnemonic on August 14, 2009, 12:19:03 PM
You shouldn't rely on the hidden geometry to mask the actors for you. It only works for stencil shadows and it's bit of a side effect. Scene layering should be done using the good old 2D way, as described in Scene creation tutorial in the docs.
Title: Re: blk_region problem
Post by: mylesblasonato on August 15, 2009, 05:58:34 AM
Thanks for the answer Mnemonic,
I guess i'll stick the old fashioned way.

Cheers ::beer
Myles Blasonato.