Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (steyr, alibaba), 534 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How to make a entity always visible #286166
08/23/09 15:54
08/23/09 15:54
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline OP
Serious User
painkiller  Offline OP
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
Hi, i'm making a space shuttle simulator, and i have a problem. I've set the camera.view_far to a very big number, but the moon is sometimes clipped. There is anyway to make the moon always visible?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: How to make a entity always visible [Re: painkiller] #286224
08/23/09 23:06
08/23/09 23:06
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Ummmm, try deleting camera.view_far ??

Re: How to make a entity always visible [Re: Cowabanga] #286256
08/24/09 09:59
08/24/09 09:59
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline OP
Serious User
painkiller  Offline OP
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
but if i delete the camera.view_far it will reurn to the 50000 default value no?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: How to make a entity always visible [Re: painkiller] #286285
08/24/09 12:13
08/24/09 12:13
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: painkiller
but if i delete the camera.view_far it will reurn to the 50000 default value no?
Well, yeah, i guess.

Re: How to make a entity always visible [Re: Cowabanga] #286445
08/25/09 10:51
08/25/09 10:51
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Scale your level to smaller number, like 1/10.
I think there's another more complicated way but maybe there's more simple way that I cant think of...

Re: How to make a entity always visible [Re: bart_the_13th] #286447
08/25/09 11:13
08/25/09 11:13
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline OP
Serious User
painkiller  Offline OP
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
if i do a scale smaller, the spaceship will be seen cutted, the clip_near is 1, the minimun, what is the complicated way?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: How to make a entity always visible [Re: painkiller] #286450
08/25/09 11:19
08/25/09 11:19
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
either you make the mood part of the background like a skybox,
or you have a very high viewdistance, and shut down drawing
of the smaller object using LOD.

Re: How to make a entity always visible [Re: painkiller] #286451
08/25/09 11:22
08/25/09 11:22
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
I guess you can scale the moon and reposition it using :
Code:
my.scale_x=my.realsize.x*0.1;//rescale moon position
my.scale_y=my.scale_x;
my.scale_z=my.scale_x;
vec_lerp(my.x,camera.x,my_realposition.x,0.1);//rescale it distance to camera



But it will have problem if something collides with the moon when it supposedly not.

Re: How to make a entity always visible [Re: bart_the_13th] #286463
08/25/09 12:24
08/25/09 12:24
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline OP
Serious User
painkiller  Offline OP
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
but if you travel with the spaceship to the moon you will see it very small


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: How to make a entity always visible [Re: painkiller] #286630
08/26/09 08:56
08/26/09 08:56
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Oh, sorry, I forgot that the scale function should be:
Code:
my.scale_x=my.realsize.x*scale/vec_dist(my.x,camera.x);//rescale moon position



While scale is a variable that you got to figure somehow. I think it has somthing to do with camera.arc

Page 1 of 2 1 2

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