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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_trace angle and panel problem #321090
04/27/10 02:55
04/27/10 02:55
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
two questions:

one, i want to c_trace to where the camera is facing, angles and everything, how would I code this?

c_trace((camera.x,camera.pan,camera.tilt),vector(forward?),IGNORE_ME | IGNORE_PASSABLE)??


two, I've been using a panel as crosshairs for a sniper whenever I zoom, it's been working fine but recently i added a model with the mtl_mirrorWater material attached and now the crosshair panel doesn't show up when i zoom. any ideas?
in order: water action, panel statement, panel action coding


action water()
{
my.material = mtl_mirrorWater;
}


BMAP* scope_jpg = "scopeshell.bmp";

PANEL* scope =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = scope_jpg;
flags = SHOW | OVERLAY | LIGHT | TRANSLUCENT;
}


if(zoom == 40)
{
scope.alpha = 100;
}
else
{
scope.alpha = 0;
}

Re: c_trace angle and panel problem [Re: nigel] #321093
04/27/10 03:20
04/27/10 03:20
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
well you set it transparent anytime the zoom is not precisely equal to 40, this is assuming "zoom" is the camera zoom.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: c_trace angle and panel problem [Re: Nowherebrain] #321094
04/27/10 03:25
04/27/10 03:25
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
it is, and i set the zoom to exactly 40 when the sniper is zoomed in. anyway, the point is the code for the zoom panel works perfectly unless there is any model with the "water" action attached. which makes absolutely no sense to me whatsoever...

Re: c_trace angle and panel problem [Re: nigel] #321412
04/29/10 00:02
04/29/10 00:02
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
So I have narrowed my panel problem down to the OVERLAY flag. If it is set then the panel becomes invisible when a model has the realtime water reflection material attached. But I need it set so the entire window isn't used up by a single panel. Any ideas why this is happening? Otherwise, any ideas how to have parts of the panel invisible without using the OVERLAY flag?

Re: c_trace angle and panel problem [Re: nigel] #321437
04/29/10 08:43
04/29/10 08:43
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Use a Bitmap with alphacannel, so you don`t need the OVERLAY flag.

Re: c_trace angle and panel problem [Re: Widi] #321526
04/29/10 22:30
04/29/10 22:30
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
good suggestion but I ended up figuring out the problem with the panel anyway. thanks though!

But as far as the c_trace problem goes I still have no idea how to trace directly in front of the camera, factoring in the angle of the camera. Does anyone have any ideas?

Re: c_trace angle and panel problem [Re: nigel] #321527
04/29/10 22:37
04/29/10 22:37
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany

Re: c_trace angle and panel problem [Re: Pappenheimer] #321535
04/30/10 00:29
04/30/10 00:29
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
perfect! thanks a ton!


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