Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Playing a view/camera on a model #128500
05/07/07 21:32
05/07/07 21:32
Joined: Oct 2006
Posts: 179
ExtraCortex Offline OP
Member
ExtraCortex  Offline OP
Member

Joined: Oct 2006
Posts: 179
I'm using this code:

remote.bmap = bmap_for_entity (my, 0);

on a model, the remote is the view.

And i want to make the model to be the "screen" that shows the view in real time.

The result i get with this code is that the model disapears, and the camera is shown above my main view like this:



The camera appears in left side ofthe screen, and the half sphere model disapears.

Last edited by ExtraCortex; 05/07/07 21:33.
Re: Playing a view/camera on a model [Re: ExtraCortex] #128501
05/07/07 21:38
05/07/07 21:38
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
What remote and what half-sphere?

I see a keyboard and a fish


xXxGuitar511
- Programmer
Re: Playing a view/camera on a model [Re: xXxGuitar511] #128502
05/07/07 21:41
05/07/07 21:41
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline
Member
quasarchangel  Offline
Member

Joined: Nov 2006
Posts: 141
South Africa
What layer did you use for the remote? Its supposed to be -1. That works with me. EDIT | Thats probably not the only thing that could be wrong.

Last edited by quasarchangel; 05/07/07 21:43.

God DID give us a manual on how to change this world...
Re: Playing a view/camera on a model [Re: xXxGuitar511] #128503
05/07/07 21:44
05/07/07 21:44
Joined: Oct 2006
Posts: 179
ExtraCortex Offline OP
Member
ExtraCortex  Offline OP
Member

Joined: Oct 2006
Posts: 179
Quote:

What remote and what half-sphere?

I see a keyboard and a fish





They're just models, standing there waiting for theyr time..


The remote is the view's name, the half sphere is the model where i want the remote to be seen.

Re: Playing a view/camera on a model [Re: quasarchangel] #128504
05/07/07 21:45
05/07/07 21:45
Joined: Oct 2006
Posts: 179
ExtraCortex Offline OP
Member
ExtraCortex  Offline OP
Member

Joined: Oct 2006
Posts: 179
Quote:

What layer did you use for the remote? Its supposed to be -1. That works with me.




It was "0", now with "-1" acknex.exe gives an unhandled exception/error..

Re: Playing a view/camera on a model [Re: ExtraCortex] #128505
05/07/07 22:01
05/07/07 22:01
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline
Member
quasarchangel  Offline
Member

Joined: Nov 2006
Posts: 141
South Africa
Weird, whats your code? I'm unfortunately not very experienced with mirrors and so on. Just playing around with it now. Mine works to a certain extent, I just don't see the expected image on my entity.

Just to add I set my view up like this:
view remote_camera
{
layer=-1;
}

Last edited by quasarchangel; 05/07/07 22:02.

God DID give us a manual on how to change this world...
Re: Playing a view/camera on a model [Re: quasarchangel] #128506
05/07/07 22:04
05/07/07 22:04
Joined: Oct 2006
Posts: 179
ExtraCortex Offline OP
Member
ExtraCortex  Offline OP
Member

Joined: Oct 2006
Posts: 179
view remote
{
pos_x = 0;
pos_y = 0;
// tenha certeza que o size_x e o size_y
// estão ajustados com o tamanho exato do sprite a ser usado
// como tela de monitor:
size_x = 500; // tamanho da largura do sprite a ser usado como tela
size_y = 500; // tamanho da altura do sprite a ser usado como tela
layer = 5;
flags = visible;
}







action monitor // the monitor model
{
while(pila==0){
angulo_inicial_sprite.pan=my.pan;
angulo_inicial_sprite.tilt=my.tilt;
angulo_inicial_sprite.roll=my.roll;
portal.x=my.x;
portal.y=my.y;
portal.z=my.z;
pila=1;
tamanho_sprite=50;
}
my.oriented = on; // oriented sprite
remote.bmap = bmap_for_entity (my, 0);
}

Re: Playing a view/camera on a model [Re: ExtraCortex] #128507
05/07/07 22:18
05/07/07 22:18
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline
Member
quasarchangel  Offline
Member

Joined: Nov 2006
Posts: 141
South Africa
Ok, I'll try help.

Try these changes:

view remote
{
layer =-1;
}


action monitor // the monitor model
{
my.oriented = on; // oriented sprite
while(1){
angulo_inicial_sprite.pan=my.pan;
angulo_inicial_sprite.tilt=my.tilt;
angulo_inicial_sprite.roll=my.roll;
portal.x=my.x;
portal.y=my.y;
portal.z=my.z;
tamanho_sprite=50;
remote.bmap = bmap_for_entity (my, 0);
wait(1);
}
}

The manual says that layer=-1 hides the view, so it should be there. Maybe you have a different version of 3DGS than I have?


God DID give us a manual on how to change this world...
Re: Playing a view/camera on a model [Re: quasarchangel] #128508
05/07/07 22:26
05/07/07 22:26
Joined: Oct 2006
Posts: 179
ExtraCortex Offline OP
Member
ExtraCortex  Offline OP
Member

Joined: Oct 2006
Posts: 179
Now the camera doesnt appear anymore in the left side of the screen, but the sphere model is still missing.

Re: Playing a view/camera on a model [Re: ExtraCortex] #128509
05/07/07 22:34
05/07/07 22:34
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline
Member
quasarchangel  Offline
Member

Joined: Nov 2006
Posts: 141
South Africa
Are you using the monitor action on the sphere model? If so, I think you can remove the my.oriented=on; from the action. Then try it with a different model.

Also try adding a "remote.visible = on;" to the monitor action, before the while loop.


God DID give us a manual on how to change this world...
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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