Billboard Z Depth issue
Billboard Z Depth issue
Anyone else have a Z depth issue using Billboards? I made (AddBillboard()) 5 Billboards in the group but the farthest tree in that group overlaps the closer trees. It shows up smaller than the closer ones due to its depth but just over laps the others. Will look into it more but was just wondering if anyone else noticed this or had this issue.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
Re: Billboard Z Depth issue
Try this:
Code: Select all
SetMaterialAttribute(yourbillboardmaterial,#PB_Material_DepthWrite,#True)
Re: Billboard Z Depth issue
Thanks. It works but kills or does something strange to the alpha information of the image.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
Re: Billboard Z Depth issue
I'm not sure what is the problem with your alpha so keep the previous and add these:
Code: Select all
MaterialBlendingMode(yourbillboardmaterial,#PB_Material_AlphaBlend)
MaterialCullingMode(yourbillboardmaterial, #PB_Material_ClockWiseCull)
SetMaterialColor(yourbillboardmaterial,#PB_Material_DiffuseColor,RGBA(255,255,255,255))
SetMaterialAttribute(yourbillboardmaterial,#PB_Material_AlphaReject,128)
Re: Billboard Z Depth issue
Thank you! #PB_Material_AlphaReject works but it is not as smooth as #PB_Material_AlphaBlend.
This is what it does with #PB_Material_AlphaBlend. It kind of uses the alpha channel but then it doesn't as you can see it blocks the background tree. Using a 32bit PNG image.
This is what it does with #PB_Material_AlphaBlend. It kind of uses the alpha channel but then it doesn't as you can see it blocks the background tree. Using a 32bit PNG image.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
Re: Billboard Z Depth issue
All the 5 lines are needed for the tree material. Sorry if I wasn't clear enough. Try it, that should work.
Re: Billboard Z Depth issue
Oh, I did try that first and it didn't make a difference, so I just use the one.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT
Even the vine knows it surroundings but the man with eyes does not.