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 (AndrewAMD, VoroneTZ), 740 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Highlighting bounding box [Re: MokyjeBrute] #255692
03/11/09 21:47
03/11/09 21:47
Joined: Mar 2009
Posts: 112
Germany
K
KDuke Offline
Member
KDuke  Offline
Member
K

Joined: Mar 2009
Posts: 112
Germany
I'd say you use MokyjeBrutes idea if you use a special e.g. green texture for the selected entity.
Or if you want to preserve the textures appearance without having a light and normal version of every entity-texture in game you as well could attach a shader to the selected object if your A7 version supports it.


Using A7 Free
Click and join the 3dgs irc community!
Room: #3dgs
Re: Highlighting bounding box [Re: VeT] #255729
03/12/09 09:34
03/12/09 09:34
Joined: Mar 2009
Posts: 40
MokyjeBrute Offline
Newbie
MokyjeBrute  Offline
Newbie

Joined: Mar 2009
Posts: 40
them draw them like toons! hehe

Re: Highlighting bounding box [Re: VeT] #255767
03/12/09 13:18
03/12/09 13:18
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP

Serious User
VeT  Offline OP

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
heh.. its really simple :))
no shaders, no problems.. this take me about 2 minutes to get it work correct wink

Code:
function draw_bbox(ENTITY* ent)
{
	VECTOR vMin, vMax;  
	while(1)
	{
		vec_set(vMin,ent.min_x);    
		vec_rotate(vMin,ent.pan);
		vec_add(vMin,ent.x);
		
		vec_set(vMax,ent.max_x);		    
		vec_rotate(vMax,ent.pan);
		vec_add(vMax,ent.x);
		
		draw_box3d(vMin,vMax,vector(0,0,255),100);
		wait(1); 
	}
}



1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Highlighting bounding box [Re: VeT] #255780
03/12/09 14:44
03/12/09 14:44
Joined: Mar 2009
Posts: 112
Germany
K
KDuke Offline
Member
KDuke  Offline
Member
K

Joined: Mar 2009
Posts: 112
Germany
Glad to see it works now ^^


Using A7 Free
Click and join the 3dgs irc community!
Room: #3dgs
Page 2 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