Forum

The "walking flames" bug

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

The "walking flames" bug

Postby mankrip » Tue Jun 06, 2017 4:07 pm

My engine has a stupid bug, which also showed up from time to time in Makaqu: translucent static MDL entities starts slowly moving in a fixed direction. Sometimes their position is also affected by the camera position & angle, sometimes it's not.

The question is simple: how to make them stay quiet where they're supposed to be? What could be incrementing/decrementing their x/y position?
Their height always stays the same, by the way. It's only the x and/or y position that moves, which makes this bug even weirder.

I've made sure that the entity's ->origin, ->origin1 and ->origin2 are identical in CL_ParseStatic, and I'm also resetting the positional interpolation on every frame, so the positional interpolation isn't the cause.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
User avatar
mankrip
 
Posts: 908
Joined: Fri Jul 04, 2008 3:02 am

Re: The "walking flames" bug

Postby Spike » Tue Jun 06, 2017 6:58 pm

svc_spawnstatic ents(eg flames) don't get reset every network frame unlike players etc, so make sure that anything you change while rendering gets unchanged after.
I assume you set a watchpoint (although tbh 'point' is a misnomer) to see when the ent's origin changes?
Spike
 
Posts: 2853
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: The "walking flames" bug

Postby mankrip » Tue Jun 06, 2017 7:19 pm

I think the view itself may be changing for some reason. this bug indicates that there's something going wrong in the frustum or whatever.

It may be related to my new method of depth-sorting liquid types. I was sure that nothing was modified during the sorting in my algorithm, but I'll have to check it again.

Despite everything in the software renderer being heavily intertwined, it's also a pain to track down. One of my goals is to untangle everything.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
User avatar
mankrip
 
Posts: 908
Joined: Fri Jul 04, 2008 3:02 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest