About Store Forum Documentation Contact



Post Reply 
GUI Viewport Question.
Author Message
Xhizors Offline
Member

Post: #1
GUI Viewport Question.
I created a GUI Viewport now and render a ball / character into it right now, what should I do so the environment should not effect on this? As you can see, if you move the camera to the ground when the character will end up in the Viewport ball / char.

Here is a picture on my problem, I want it to look like pic4 all the time.
(This post was last modified: 10-23-2009 01:51 PM by Xhizors.)
10-23-2009 12:05 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: GUI Viewport Question.
I guess you have something wrong with the codes, on first look it seems like the z buffer isn't cleared.
what code do you have in rendering/drawing of the viewport?

it is suggested to use Renderer with combine (just like in the tut of combining)
if you don't want to use Renderer, try clearing the zbuffer before rendering with D.clearZ
10-23-2009 01:25 PM
Find all posts by this user Quote this message in a reply
Xhizors Offline
Member

Post: #3
RE: GUI Viewport Question.
Thanks, D.clearZ did the trick fore render. smile
(This post was last modified: 10-23-2009 01:51 PM by Xhizors.)
10-23-2009 01:51 PM
Find all posts by this user Quote this message in a reply
Post Reply