|
3 registered members (TipmyPip, clint000, Grant),
6,810
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
render view on a model
#93004
10/04/06 11:35
10/04/06 11:35
|
Joined: Apr 2002
Posts: 4,801 Richmond B.C., Canada
Captain_Kiyaku
OP

Dichotomic
|
OP

Dichotomic
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
|
Hi, i wanted to create a portal for a game. This is how the portal looks like:  now i want the player to see another view through this portal. im planing to put a model inside the door and render a camera on this model. but is it possible when the model is deformed, and not only a plane? if yes, how does it work?
My Blog"Tag und Nacht schrei ich mich heiser, Wind weht alle Worte fort, Tag und Nacht schrei ich mein Krähenwort!"Subway To Sally - Krähenkönig
|
|
|
Re: render view on a model
[Re: Captain_Kiyaku]
#93005
10/09/06 16:01
10/09/06 16:01
|
Joined: Feb 2006
Posts: 302 Beienrode/NDS/GERMANY
Dj_Pint
Senior Member
|
Senior Member
Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
|
would it bnot be enough, if you play a movie on the model-skin?
if u want to see some stuff i made, go to youTube and search for djpint, not dj pint^^
|
|
|
Re: render view on a model
[Re: Captain_Kiyaku]
#93007
10/09/06 21:50
10/09/06 21:50
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
view portalview { layer = -1; flags = visible; arc = 60; } action levelportal { portalview.bmap = bmap_for_entity(my,0); vec_set(portalview.x, nullvector); // set the view positions here vec_set(portalview.pan, nullvector); // set the view angles here } Here you´ve something to fiddle around. It works also on deformed models. I´ve used a 512*512 skin size (resize the skin in MED) but I haven´t used a skin at all. You could make the view transparent and use a skin to create a nice effect. 
no science involved
|
|
|
Re: render view on a model
[Re: Captain_Kiyaku]
#93010
10/11/06 07:22
10/11/06 07:22
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Amazing!
Like the portals in Pray. This is a very impressive technique! Does this work with fogman's little script?
mercuryus
|
|
|
Re: render view on a model
[Re: Captain_Kiyaku]
#93012
10/11/06 08:09
10/11/06 08:09
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Absolute "geil"! Idea: place the same model transparent before the portal and attach a noisy texture (flickering). Idea: change view.arc with a looped function (sin/cos/...) to warp the portal-view.  mercuryus
|
|
|
|