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
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 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
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 | 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