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
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,887 guests, and 6 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
Sun Len Falre problem and c_trace : #274975
06/29/09 14:11
06/29/09 14:11
Joined: Apr 2009
Posts: 39
T
TrQuocAn Offline OP
Newbie
TrQuocAn  Offline OP
Newbie
T

Joined: Apr 2009
Posts: 39
Hi everyone !
_ I met a problem with sun flare len in my project. When i used c_trace (or trace) to find that did the sun and camera hit any entity ?, but the c_trace didn't caculate correct . it caculated on the Cube of the Model!

look picture :

The model is between camera and the sun. but the result of c_trace is zero frown and we can see the sun flare

When the Cube of Model (Double press F11 - the blue buce will appear) is between the camera and sun, c_trace calculate correct. !


see Image clearly :
http://i284.photobucket.com/albums/ll15/hisinhvien/Trace1.jpg
http://i284.photobucket.com/albums/ll15/hisinhvien/Trace2.jpg

would someone help me about that sun falre ?

You can Download my Project with such problem here :
http://www.mediafire.com/download.php?t2wrtnym2mt

Last edited by TrQuocAn; 06/29/09 14:13.
Re: Sun Len Falre problem and c_trace : [Re: TrQuocAn] #274986
06/29/09 15:09
06/29/09 15:09
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
set polygon to the spaceshiop model and thats it.

Re: Sun Len Falre problem and c_trace : [Re: MMike] #274993
06/29/09 15:38
06/29/09 15:38
Joined: Apr 2009
Posts: 39
T
TrQuocAn Offline OP
Newbie
TrQuocAn  Offline OP
Newbie
T

Joined: Apr 2009
Posts: 39
Originally Posted By: MMike
set polygon to the spaceshiop model and thats it.


Thank you !
I'm sorry but I'm a newbie... so... do this Polygon Flag makes my game slower ?
I read from the Manual :
"Only one of the objects involved in a collision should have a polygonal hull. Do not set this flag for moving objects or for animated models."...

and when the flasg Polygon is on, What about the trace_mode of c_trace ? Because I set the polygon but it still like that !

thanks againt !

Last edited by TrQuocAn; 06/29/09 15:49.
Re: Sun Len Falre problem and c_trace : [Re: TrQuocAn] #275056
06/29/09 22:11
06/29/09 22:11
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Setting the polygon of the models MAY slow the game, and it may also
make any existing collisions system you have behave differently.

Give us a look at your c_trace command. It should have the USE_POLYGON flag on
in the command and TRY not to use the USE_BOX flag as it is slow.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Sun Len Falre problem and c_trace : [Re: EvilSOB] #275151
06/30/09 10:33
06/30/09 10:33
Joined: Apr 2009
Posts: 39
T
TrQuocAn Offline OP
Newbie
TrQuocAn  Offline OP
Newbie
T

Joined: Apr 2009
Posts: 39
Thanks so much !
But when i added some code :

Code:
me.polygon = on; // IN My Ship's Action



and for my c_trace fucntion :

Code:
trace_mode = IGNORE_PASSABLE + IGNORE_SPRITES + Use_Polygon + ignore_maps + ACTIVATE_SHOOT;
r = trace(camera.x,sun_pos);



It still can't solve that problem !
The Trace() used the Box for calculating ! frown

Re: Sun Len Falre problem and c_trace : [Re: TrQuocAn] #275192
06/30/09 14:28
06/30/09 14:28
Joined: Apr 2009
Posts: 39
T
TrQuocAn Offline OP
Newbie
TrQuocAn  Offline OP
Newbie
T

Joined: Apr 2009
Posts: 39
ok ! Thanks !
I solved that problem !


Moderated by  HeelX, rvL_eXile 

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