Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: masking for wme  (Read 15455 times)

0 Members and 1 Guest are viewing this topic.

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
masking for wme
« on: June 29, 2006, 12:23:17 PM »

i think i asked for this befor some time ago, but i have not found the topic so i try again....

wouldnt it be nice to have the possibility of masking in wme. it would allow many very cool things.
like dustclouds only visibly in lighted region of the screen or some monitor effects .... there are so many situations ....
and it would be very usefull for the projected shadows, too ....

i think you already said something about it, but is it possible to integrate something like this in the engine ???
i think it would be worth the effort !!!

if i am repeating myself and bothering you with this question, thats really not my intention !!

greets
stucki
 

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: masking for wme
« Reply #1 on: June 29, 2006, 06:23:50 PM »

You'll have to use overlays with alpha channels for this (you know, like a sprite with a semi-transparent "hole", to only mask parts of the underlying image).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

manarius

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • node it. node it all together my brethren :)
    • View Profile
    • Thats one of our Games :-)
Re: masking for wme
« Reply #2 on: March 11, 2008, 08:14:27 PM »

hi folks, its me again :-)

how exactly do i use this masking? which methods do i need to use to get the character masked behind the scene?

what i would wish to achieve is, that the characters PARTS which are behind an alphachanneled png disappear,
but only that parts?

all i saw regarding anything like this was the red flashing light in the wintermute demo project. but there the whole actor gets tinted, not only parts of it.

i am sorry to have to ask this, but i got no idea right now and am in an urgent development. if i find out how i can mask, i will write it here.

cheers and thanks again for all that work which you do for us.
manarius

(btw we have much to complex rendered objects to cut them by hand. really. i am talking about trees and stuff. just the thinking of cutting this out by hand makes me look this way:  :-\)
Logged

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #3 on: July 23, 2008, 11:34:16 PM »

just reviving a "HUGE" wish of me ... and bothering you again with it ....

would it be possible to have masking realized in wme, or is it impossible.
it just gets to my head everytime i work with the engine on chess-worlds.
now i have these sky-actors and they really do fine. three or more layers of clouds moving smoothly in the back of the scene

it would add so much realism to my scenes if i could add cloud-shadows moving over the landscape and buildings.
the problem is that these cloud shadows are also affecting the sky actors.

the only way i can imagine is a mask that covers the sceneparts i would like to have these shadows visible...

or do you know any other way of realising cloud shadows ..[ this brings me back to texture offset for 3d actors .. ]

sorry if i am getting on your nerves ... just tell me masking is impossible and i will live with it ...

best regards
stucki

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: masking for wme
« Reply #4 on: July 24, 2008, 05:10:14 AM »

Quote
how exactly do i use this masking? which methods do i need to use to get the character masked behind the scene?

Just use a oerlay sprite with a embeded alpha channel. WME shouldn auto pick up the alpha. If you want to use a truecolour gradiant in the alpha make the image a PNG.

or do you know any other way of realising cloud shadows ..[ this brings me back to texture offset for 3d actors ..

Why do you not just have a ogg video overlay on the background plate that plays the animation of the cloud shadows? Then a animated region for actor darkening that matches the shadow layer animation?
« Last Edit: July 24, 2008, 05:13:19 AM by Jyujinkai »
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #5 on: July 24, 2008, 07:45:34 AM »

Quote
Why do you not just have a ogg video overlay on the background plate that plays the animation of the cloud shadows? Then a animated region for actor darkening that matches the shadow layer animation?

thanks for the suggestion but i do not understand the idea. sorry.
can you explain it a little more please .

i do not want to use a video because i think it would be very large and slow down my scenes i think. And scenes are already very large and cpu heavy ..
i would prefer to have particles for cloud shadows.they could have individual speed and forms and so they would never look the same. a video would repeat after a short while ...

and i think that the video would also affect the sky actors in the back of the scenes, or am i wrong ?

greets
stucki

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: masking for wme
« Reply #6 on: July 24, 2008, 09:24:39 AM »

mnemonic added alpha overlays to ogg video didn't he?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #7 on: July 24, 2008, 09:51:08 AM »

yes, but i really do think a 1280 *800 video with alpha mask isnt a proper solution .
how long will this video have to be to have a realistic impression of clouds moving over the landscape. 3 minutes .. and than it will loop forever ...

i think these videos would be far to big and they would kill my scenes framerate.

particles with real masking would be so cool !
   

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: masking for wme
« Reply #8 on: July 24, 2008, 10:03:40 AM »

your video dosen't to have to be full screen you can position it how you would like. Sure there will be a trade of of realism vs practicality but that is something you need to figure out in the design.

Don't 3D actors cast shadows? Can you try makeing real actor clods that cast full shadows in the scene onto the backgrnd geom?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #9 on: July 24, 2008, 01:41:51 PM »

interesting idea but i think 3d actors for clouds would not be very practicable i think.

- every 3d actor reduces the framerate significantly
- they all have the same shadow colour and no alpha changes particles could vary in alpha because they are pngs..
- i will have to create a whole shadow geometry instead of using only geometry where the char-shadows should be visible.

i think particles with real masking would be very efficient, easy to create and vary and easy to code as well ..

thanks for your ideas !!
stucki



Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #10 on: July 28, 2008, 08:21:46 AM »

@ jan: no comment ?

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #11 on: August 19, 2008, 01:52:50 PM »

??

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: masking for wme
« Reply #12 on: August 19, 2008, 02:45:09 PM »

Well as I told you before in IRC, I don't know how to do super-generic 2D masking. Other than using stencil buffer, which is used for shadows.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: masking for wme
« Reply #13 on: August 19, 2008, 09:58:39 PM »

damn ...
thanks again for the answer . i was just hoping ..
 

Page created in 0.104 seconds with 24 queries.