Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TedMar, AndrewAMD), 1,344 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 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 | 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