Jump to content

» «

[Q]Z-buffering, drawing

1 reply to this topic
  • DK22Pac

  • FerocYEE
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]


Posted 22 April 2012 - 07:21 PM

Hello. I want to ask is this possible to draw texture above already drawed textures. Is this possible with manipulations with Z-coordinate? I tried to set Z coord to negative value, -1.0 f.e, but then I don't see texture on a screen.

PS I use original RenderWare's procedures to draw.

  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Best Poster in Technology / Programming 2017
    Best Poster [Technology / Programming] 2016
    Best Poster [Programming] 2015
    Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010


Posted 23 April 2012 - 02:43 AM

Normally, you should be able to temporarily disable depth buffer. I have no idea how it works with RenderWare, though. Your -1.0 doesn't work because it puts the texture outside of clipping space. Personally, I would suggest working with a more civilized graphics library, if that's at all an option.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users