Jump to content


Photo

Surface Fix


  • Please log in to reply
7 replies to this topic

#1 mn_beta

mn_beta

    GMC Member

  • GMC Member
  • 81 posts
  • Version:GM7

Posted 09 April 2012 - 05:09 PM

After abandoning gml for a long time..... I started coding to find I had lost one of my essential extension packages: Surface Fix. The only command that I actually used from it was depth_clear(). Now most of my code is running in circles trying to fix the graphical errors that occur in all of my games.

My question is, how do you emulate depth_clear in default code? All my attempts do not work, because my concept of HOW the script worked is kind of muddled. thank you in advance.

EDIT:

Where is slayer? I believe the surface fix package was used by him continuously.

Edited by mn_beta, 09 April 2012 - 05:30 PM.

  • 0

#2 filulilus

filulilus

    GMC Member

  • GMC Member
  • 928 posts
  • Version:GM:Studio

Posted 10 April 2012 - 07:02 AM

Could explain what effect it gives? Then we might be able to fix a solution for you :thumbsup:

Edited by filulilus, 10 April 2012 - 09:49 AM.

  • 0

#3 Spaceoff

Spaceoff

    Orbital Debris

  • GMC Member
  • 787 posts
  • Version:GM:Studio

Posted 10 April 2012 - 03:09 PM

With a google search I found this: http://gmc.yoyogames...howtopic=454468
However I'm in no way familiar with the dll, and have no idea what exactly depth_clear() is actually supposed to do.
So, a topic link is all I can provide as help :/.
  • 0

#4 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9260 posts
  • Version:Unknown

Posted 10 April 2012 - 04:06 PM

The link in that topic Spaceoff posted works for me. I downloaded it and checked the help file, and according to that, depth_clear() is identical to draw_clear() and draw_clear_alpha()...is there something additional it did that wasn't mentioned in the help file?

-IMP
  • 0

#5 mn_beta

mn_beta

    GMC Member

  • GMC Member
  • 81 posts
  • Version:GM7

Posted 11 April 2012 - 04:30 PM

depth_clear resets the depths of all drawn entities, so that they do not appear in order they were created, but as in how far away from you they are.
  • 0

#6 D1g1talAli3n

D1g1talAli3n

    BoyGenius

  • New Member
  • 963 posts
  • Version:GM8

Posted 11 April 2012 - 04:47 PM

Why don't you just get the extension again?
  • 0

#7 brac37

brac37

    GMC Member

  • GMC Member
  • 765 posts
  • Version:GM7

Posted 11 April 2012 - 05:34 PM

depth_clear resets the depths of all drawn entities, so that they do not appear in order they were created, but as in how far away from you they are.

depth_clear resets the z-buffer, so you can restart drawing a 3d-scene. You can get the same effect with views over each other. Another option is to study gmapi to make an extension with the effect.
  • 0

#8 mn_beta

mn_beta

    GMC Member

  • GMC Member
  • 81 posts
  • Version:GM7

Posted 12 April 2012 - 10:03 PM

Fixed with lua, please close.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users