Disappearing model actors in-game at certain angles

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Sicamore
Forum Regular
Posts: 315
Joined: Sun Jun 10, 2012 5:10 pm
Location: Toronto
Clan: Scientific DM Acad
Clan Tag: [SDA]
Contact:

Disappearing model actors in-game at certain angles

#1

Post by Sicamore » Sat Jun 22, 2013 9:24 pm

Hello. I have been working with 3D models recently but discovered weird behavior that is haulting my project (sadly).

The problem seems to be that the model in question is disappearing when I get too close to it and then slowly change my angle of view. The innocent bus I am using (huge images ahead):

[spoiler]Image[/spoiler]

Getting closer and just looking at the engine part, everything seems to be fine:

[spoiler]Image[/spoiler]

And then, shifting a little bit to the left, it suddenly disappears:

[spoiler]Image[/spoiler]

Just for your information, I will also state the factual things:

-The bus is a standard .MD2 model.
-It is properly defined in modeldefs and decorate.
-It shows up in game (obviously) and in GZDoom builder.
-It is -solid.
-The other models are standard and don't interact with the bus in any way.
-The bus has a radius of 50.

GZDoom Builder shot:

[spoiler]Image[/spoiler]

Another thing worth mentioning is that this bus is not a unique case - this problem can happen with any 3D model AND even regular sprites (I have witnessed this before and sprite disappearing doesn't happen in software). I think it has something to do with the actor being too close to a wall, because when I move the bus into an open area it doesn't seem to disappear. However, this isn't right and I shouldn't have to move it every time I want proper rendering. I have heard recommendations from others to increase/decrease the radius but that does nothing.

Anyone have any idea?

Thanks.
Last edited by Sicamore on Sat Jun 22, 2013 9:26 pm, edited 1 time in total.
Image

User avatar
Zeberpal
Forum Regular
Posts: 477
Joined: Mon Jun 04, 2012 6:55 am

RE: Disappearing model actors in-game at certain angles

#2

Post by Zeberpal » Sun Jun 23, 2013 4:04 pm

Zandronum or Gzdoom renders a model once they found it's actual decorate actor on your screen.
There is might be a way to fix it by diving your bus actor into more (i'd say 3 is good), like Conflagrated did it with his chair.

[spoiler]

Code: Select all

Actor ChairColl1 {
radius 22
height 14
+SOLID
states
{
Spawn:
TNT2 A -1
stop
}}

Actor ChairColl2 {
radius 6
height 48
+SOLID
states
{
Spawn:
TNT2 A -1
stop
}}

Actor Chair 11111 {
  //$Category WDI Models
  //$Sprite TNT1A0
  //$Title "Red Chair"
States
{
Spawn:
CHAR A 1
CHAR A 1 A_SpawnItemEx("ChairColl1", -16, 4, 0, 0, 0, 0, 0, 0, 0)
CHAR A 1 A_SpawnItemEx("ChairColl2", -16, -4, 0, 0, 0, 0, 0, 0, 0)
CHAR A -1
stop
}}
[/spoiler]
Image ImageImage

User avatar
Sicamore
Forum Regular
Posts: 315
Joined: Sun Jun 10, 2012 5:10 pm
Location: Toronto
Clan: Scientific DM Acad
Clan Tag: [SDA]
Contact:

RE: Disappearing model actors in-game at certain angles

#3

Post by Sicamore » Sun Jun 23, 2013 5:24 pm

ZDoom forums helped me. They said its an engine limitation sadly. also the chair is one model. The other parts are simply blocking actors. :(
http://forum.zdoom.org/viewtopic.php?f=3&t=36593
Last edited by Sicamore on Sun Jun 23, 2013 5:35 pm, edited 1 time in total.
Image

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Disappearing model actors in-game at certain angles

#4

Post by Watermelon » Mon Jul 08, 2013 9:43 pm

Doom isn't the best to use models with unfortunately. It can't handle too many either or it lags out. Unfortunate I think.
Last edited by Watermelon on Mon Jul 08, 2013 9:43 pm, edited 1 time in total.

Post Reply