Broken Windows - i know a combination, you have more ?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Broken Windows - i know a combination, you have more ?

Post by mcunha98 »

Hi people,

I read a tutorial (if i dont forget, in MiraCasta) about i make broken windows. In this tutorial it show broken windows using a mix of two textures (see in image in bottom), but i try another combinations of window textures, but dont have sucess.

If you make broken windows, tell me the name of textures like "algiers/window1a" (some example).

Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

What are you asking for? Texture pairs to use for broken windows, or how to get them to work?
Admin .MAP Forums
Image
Head above heels.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

There are some window textures with two versions, a good one and a broken one. These window textures all have names like something_frame and something_broken.
Use the something_frame version for the window and the something_broken for the script_object
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Bjarne BZR wrote:What are you asking for? Texture pairs to use for broken windows, or how to get them to work?
Exactly this !
Texture pairs to use for broken windows

For example...

Code: Select all

 dasboot/window  <-- normal
 dasboot/windowa  <-- broken
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

wacko wrote:There are some window textures with two versions, a good one and a broken one. These window textures all have names like something_frame and something_broken.
Use the something_frame version for the window and the something_broken for the script_object
Wacko,

I undersand and respect your reply, but in many test i created, i dont have sucess....
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

mcunha98 wrote:I undersand and respect your reply, but in many test i created, i dont have sucess....
I don't know the tutorial u mentioned so I can't say where ur exact problem is.
Maybe download at the mohaa recyclingbin a map with breakable windows and study the way it's done there. I am not sure about the exact content of all maps, but "dorf" got lots of these windows.
In general, u need a func_window (with key/value:target/win#) and a script_object (with targetname/win#). Once u've "killled" the func_window, it will vanish and the script_object will appear.
Working texture pairs ought to be:
general_structure/natestahwin1_broken
general_structure/window32_broken
general_structure/window4_broken
general_structure/window725_broken and their corrsponding _frame version
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Wacko,

Is this, i know the "teory" of process to make broken window. But i always use a specific pair of textures.

You tell:
general_structure/natestahwin1_broken
general_structure/window32_broken
general_structure/window4_broken
general_structure/window725_broken and their corrsponding _frame version
Starting of this indication, i presume the natestahwin1_broken have a pair like natestahwin1_frame (or natestahwin1_window or natestahwin1).


How i tell, the teory i know, i dont know the names of textures to make another windows.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

it's that simple, i think your problem is yoy haven't fit the windows to the texture. so make your window, then select a face of it and hit ctrl-F. on both of the windows. all window pairs have a "_frame" and a "_broken" texture, so a window named

my_frame

will have a broken version named

my_broken
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
RamSes
Lance Corporal
Posts: 24
Joined: Tue Jul 26, 2005 8:11 pm

Post by RamSes »

lizardkid wrote:it's that simple, i think your problem is yoy haven't fit the windows to the texture. so make your window, then select a face of it and hit ctrl-F. on both of the windows. all window pairs have a "_frame" and a "_broken" texture, so a window named

my_frame

will have a broken version named

my_broken
I also follewed the tutorial to make a breakable window,
and it works, but 1 problem, that is :when the window is not broken, i can see the broken texture in the frame texture...
is this normal? or have done something wrong?
problably the second, i guess...
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

means you havent separated the broken window from the broken one, put the unbroken underneath the map somewhere ;)
Last edited by lizardkid on Fri Jul 29, 2005 5:54 pm, edited 1 time in total.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
ganjanoof
Lance Corporal
Posts: 11
Joined: Wed Dec 22, 2004 12:09 am

Post by ganjanoof »

McCunha :

You can make your own broken textures from any (normal) window texture. Actually the difference between the broken and the normal one for a particular window only resides in the alpha channel.

Open a broken window texture in photoshop and look for the alpha channel. You'll see that only the wooden frame and the some pieces of broken glass are white. Everything else is black.
Using the blend function in your shader allows you to define the broken texture as follows :

Blend between

1) the normal window : it is semi-transparent itself because of its own alpha channel
2) the alpha mask of the "broken" texture : through another alpha channel, everything that is designed in black becomes 100% transparent this time.

So if you know how to design rectangles and triangles in photoshop, you're able to make custom broken window for every stock or even custom window texture. It might be worth trying if you can't find the broken version for the window you want (and maybe it just don't exists).

Cheers
(\_/)
(O.o) This is Bunny. Copy Bunny
(> <) to help him achieve world domination.

Image
Post Reply