Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, Martin_HH), 6,771 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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