3d model problem

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
ExtremeMachine
Posts: 58
Joined: Sun Aug 26, 2007 18:16

3d model problem

Post by ExtremeMachine »

Hey

I've noticed a problem with a model in my map. It looks good when u stand with it infront of you, but seems to disappear when you move left of it. (the 3d model is rescaled) This wont appear when the model is in orginal size, however i dont run into this problem with other models when rescaled them.

Here the model looks OK.

Image

When i move left, or right of it it disappears.

Image

there must be some way to fix this?

Thanks!
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

In your other thread Enjay wrote:One thing to watch, if you place the model in a very small sector, and the model itself is quite big, you can end up with the model seeming to disappear from certain angles. The trick is to make sure that the sector where the model actor is placed is visible whenever the model should be. I sometimes do this by making a small hole sector in the middle of the 3D floor model then change the line references for that sector to be the same as the sector surrounding the model. Then I place the model in the hole and because the surrounding sector is always visible when the model is, the model never vanishes.
That's my guess as to what is happening here. As you move to the side, the sector that the model item is placed in goes out of your field of view and, as a result, the model attached to the item sitting in that sector vanishes. You have to make sure that the sector concerned is visible from any point where you can see the model if you want to avoid this problem.

This it not a new thing BTW. Doom has always done this with sprites. It's just that it tends to happen more often with models because models tend to be bigger than sprites.
ExtremeMachine
Posts: 58
Joined: Sun Aug 26, 2007 18:16

Post by ExtremeMachine »

Enjay wrote:
In your other thread Enjay wrote:One thing to watch, if you place the model in a very small sector, and the model itself is quite big, you can end up with the model seeming to disappear from certain angles. The trick is to make sure that the sector where the model actor is placed is visible whenever the model should be. I sometimes do this by making a small hole sector in the middle of the 3D floor model then change the line references for that sector to be the same as the sector surrounding the model. Then I place the model in the hole and because the surrounding sector is always visible when the model is, the model never vanishes.
That's my guess as to what is happening here. As you move to the side, the sector that the model item is placed in goes out of your field of view and, as a result, the model attached to the item sitting in that sector vanishes. You have to make sure that the sector concerned is visible from any point where you can see the model if you want to avoid this problem.

This it not a new thing BTW. Doom has always done this with sprites. It's just that it tends to happen more often with models because models tend to be bigger than sprites.
Now it makes sence to me! :D

Thanks for the help!
Locked

Return to “GZDoom”