Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
VIEW.genius don't work #257666
03/24/09 16:45
03/24/09 16:45
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Hi everybody, I have problem of using GENIUS pointer, I read in manual that if set GENIUS to any entity, this entity become invisible in the VIEW, but I try and nothing happened, all entites a visible in both VIEWs,that I doing wrong?

Code:
#include <acknex.h>
#include <default.c>

VIEW* test1 = 
{
	layer = 1;
	size_x = 300;
	size_y = 300;
	flags = VISIBLE;
}
void main ()
{
	ENTITY* ent;
	level_load(0);
	ent = ent_create("capsule.mdl",vector(100,30,0),NULL);
	test1.genius = ent; 
	//  After I pointed GENIUS to the *ent, it should not be visible 
	// in the test1, but for some reason this does not happen :(
	
	ent.parent = ent_create("car_mini.mdl",vector(50,0,0),NULL);
	vec_set(camera.x,vector(-100,42,0));// set position for camera
}



A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: VIEW.genius don't work [Re: XD1v0] #257740
03/25/09 10:05
03/25/09 10:05
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Hey,

That's only for c-script

use
Code:
VIEW* test1 = 
{
	layer = 1;
	size_x = 300;
	size_y = 300;
	flags = NOFLAG1 | VISIBLE;
}

ENTITY* ent;

void main ()
{
	level_load(0);
	wait(1);
	ent = ent_create("capsule.mdl",vector(100,30,0),NULL);
	wait(1);
	
	test1.genius = ent;
	//  After I pointed GENIUS to the *ent, it should not be visible 
	// in the test1, but for some reason this does not happen :(
	set(ent, FLAG1);
	ent.parent = ent_create("car_mini.mdl",vector(50,0,0),NULL);
	vec_set(camera.x,vector(-100,42,0));// set position for camera
}


Hope this helps

Re: VIEW.genius don't work [Re: MrGuest] #257757
03/25/09 11:26
03/25/09 11:26
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Quote:
That's only for c-script

I did not know about this, thanks MrGuest.
But I wonder, whether there is a way to render only one entity for each VIEW (5 entity -> 5 VIEWs)
I can not use FLAG1 for this.I would be glad to any ideas.


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: VIEW.genius don't work [Re: XD1v0] #268738
05/30/09 21:49
05/30/09 21:49
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
sorry, genius does still work, though the camera needs to be within the bounding-box of the entity.


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

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