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
1 registered members (AndrewAMD), 14,661 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
lod with models and sprites #113327
02/22/07 16:30
02/22/07 16:30
Joined: Sep 2006
Posts: 27
J
JayOkay Offline OP
Newbie
JayOkay  Offline OP
Newbie
J

Joined: Sep 2006
Posts: 27
I want me trees models to be sprites when the camera is far away. I made a model with one face and called it tree_1.mdl. My problem is that this entity needs to be faced when in lod 1,2 and 3 and oriented when lod is 0. Is there and event when lod is changed or a property I can check in the action loop or do I have to check the distance to the camera?

Re: lod with models and sprites [Re: JayOkay] #113328
02/22/07 17:21
02/22/07 17:21
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
If I remember right lod is depending on your clip_range (or camera.clip_far)
I think it was something like: 1/8 clip_range = lod1
1/4 = lod2
1/2 = lod3
You can change your Flags depending on the clip_range.
You have to take the distance between camera and model with vec_dist of course.

Last edited by RedPhoenix; 02/22/07 17:23.
Re: lod with models and sprites [Re: RedPhoenix] #113329
02/22/07 18:22
02/22/07 18:22
Joined: Sep 2006
Posts: 27
J
JayOkay Offline OP
Newbie
JayOkay  Offline OP
Newbie
J

Joined: Sep 2006
Posts: 27
okay.. thanks


Moderated by  HeelX, Spirit 

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