Jump to content

Recommended Posts

Posted

I have the model of a castle which disappears when the camera leaves a bit away (really few meters for its dimensions, I haven't measured but it is clear that something doesn't work there):

 

It does not have any LOD and the following is its record in the SBX file:

Model {
path="castle2_castle.gmf"
position=0.000000000,0.000000000,0.000000000
rotation=-0.000000000,-0.000000000,0.000000000
scale=1.00000000,1.00000000,1.00000000
id=222440568

"aligntoground"="0"
"class"="Model"
"collisiontype"="2"
"friction"="0.500000000,0.500000000"
"hidden"="0"
"intensity"="1.0000000000000000"
"mass"="0.00000000000000000"
"name"="castle_2"
"occlusionculling"="0"
"order"="0"
"viewdistance"="0.000000000,0.000000000"
}

 

Any thoughts about why it happens? Don't know if it is evident in the video, but the model of statue inside the castle is still visible when the castle suddenly disappears.

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Posted

"viewdistance"="3"

LE 2.32R4V4 displays by default only objects which are closer than 20m. There is also the "far" distance, but it's also only 100m or so. Normally games need around 2000-10000m range of objects, so you have to use the option viewdistance=3 which means infinite. Josh said this makes things easier for newbies, but for professionals it seems to make things much more difficult :)

 

In addition, if you have entities parented, then the parent's viewdistance counts also, so make sure you have viewdistance=3 for everything which you need further away than 20m. A neat trick is to say:

EntityViewRange(scene,3,1);

so all objects in the scene will be visible. After that you can selectively set the view distance for objects which are always closer than 20m visible (for example unmovable objects inside a room which has no windows and the door is opposite to a corridor).

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

Yes, unfortunately. The infinite option makes scenes very heavy to render and should not be used, but since the other ranges are too small for real games, that's the only thing you can do at the moment. However, there will be a new command which allows you to adjust the near (=0), medium (=1) and far (=2) ranges yourself, then it will be perfect. I hope that command comes in 2.32R6.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

There is also the "far" distance, but it's also only 100m or so.

 

I guess I'm actually quite lucky to not have this problem. But 100m should not qualify as 'far'. It seems that this system was built for tight underground corridors in an FPS type game.

 

What I'm working on is an outdoor type game, where close would be up to 100m, medium up to 300m and far, 800m. Only beyond 800 would I think an infinite distance be necessary (All of these values are assuming no zoom magnification). But like I say, until I upgrade to 2.3, it's not in issue for me to worry about.

LE Version: 2.50 (Eventually)

Posted

I think Josh should give you the 2.3 upgrade for free, because then we can celebrate the complete migration of the userbase to 2.3! I'll buy a bottle of champagne when that happens too :)

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

These near/medium/far ranges are displayed where?

 

In our game, anything closer than 20m is probably under you. Object distances are typically 50m to 6,000m at tree-top level (variable according to camera zoom mode).

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Posted

I think Josh should give you the 2.3 upgrade for free, because then we can celebrate the complete migration of the userbase to 2.3! I'll buy a bottle of champagne when that happens too :)

 

Nice idea -- but it won't happen, and I wouldn't want it to. Everyone else will feel ripped off, and demand the next upgrade for free. When I have something up and running -> -Then- I'll improve it, by buying 2.3...

LE Version: 2.50 (Eventually)

Posted
These near/medium/far ranges are displayed where?
You can try them out in Editor.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

However, there will be a new command which allows you to adjust the near (=0), medium (=1) and far (=2) ranges yourself, then it will be perfect. I hope that command comes in 2.32R6.

Since I'm building an outdoor game I must wait for that function since I don't like this waste of resources (we will have several castles and towns on the map).

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

  • 4 weeks later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...