Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, clint000, Grant), 6,810 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
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 Offline OP

Dichotomic
Captain_Kiyaku  Offline 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 Offline
Senior Member
Dj_Pint  Offline
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: Dj_Pint] #93006
10/09/06 20:30
10/09/06 20:30
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline OP

Dichotomic
Captain_Kiyaku  Offline OP

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
cause i want the people to see whats going on at the other side of the portal, and to create seamless ways through the portal.


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] #93007
10/09/06 21:50
10/09/06 21:50
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

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: fogman] #93008
10/10/06 07:02
10/10/06 07:02
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline OP

Dichotomic
Captain_Kiyaku  Offline OP

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
ok thanks, works perfect ^^


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] #93009
10/10/06 20:47
10/10/06 20:47
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline OP

Dichotomic
Captain_Kiyaku  Offline OP

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
ok got it to work on my portal xD had lots of problems somehow q_q

Portal WIP!!!

if someone is interested.


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] #93010
10/11/06 07:22
10/11/06 07:22

A
Anonymous
Unregistered
Anonymous
Unregistered
A



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: ] #93011
10/11/06 07:36
10/11/06 07:36
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline OP

Dichotomic
Captain_Kiyaku  Offline OP

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
yeah, it renders the view to the skin of the model (the portal inside). and i just have a small room behind the room you can see. there is a second cam which is rotating around the tree and get rendered on the skin.


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] #93012
10/11/06 08:09
10/11/06 08:09

A
Anonymous
Unregistered
Anonymous
Unregistered
A



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

Re: render view on a model [Re: ] #93013
10/11/06 08:31
10/11/06 08:31
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline OP

Dichotomic
Captain_Kiyaku  Offline OP

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
yeah i thought about the arc allready, and there will be a rotating "dust" texture over it too. it was just WIP and not final, only tested the script


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
Page 1 of 4 1 2 3 4

Moderated by  HeelX, rvL_eXile 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1