Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Weapon poking through objects

Author
Message
MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 6th Mar 2019 19:06
Hello Community,

Can someone please give me some advice on how can I make an object not intersecting visually with other objects? Something like DBPro had: "disableobjectzdepth" or some sort.

Thank you!
www.alexmatei.com

The author of this post has marked a post as an answer.

Go to answer

Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Mar 2019 23:00
This post has been marked by the post author as the answer.
SetObjectDepthRange
Description
Sets the range of depth values that this object is mapped to. By default this is 0 to 1 where 0 is the near plane and 1 is the far plane. For example setting a depth range of 1,1 will make every pixel in this object have a depth value of 1 when comparing and writing to the depth buffer. Values will be clamped to the range 0 to 1, objects outside the near or far planes will still be clipped. Reverse mappings are allowed by setting near greater than far.
Definition
SetObjectDepthRange( objID, zNear, zFar )
Parameters
objID - The ID of the object to modify.
near - The start of the depth range for this object
far - The end of the depth range for this object
MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 8th Mar 2019 15:48
Huge thanks!
www.alexmatei.com
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 8th Mar 2019 21:26
Doing this won't make the object appear in front of something when behind it?

Login to post a reply

Server time is: 2024-11-05 23:10:48
Your offset time is: 2024-11-05 23:10:48