Forum

FORUMS > EON Authoring Tools Forum > BPButton in iCube
RE: BPButton in iCubetop^
Sunil Naidu
Username: sunil.naidu
Posted: Fri 17 Jun, 2011 5:40 AM
2652 days ago
Location: United States
Maintenance

We are using an iCube configuration for a 3 projector 3D powerwall (left, center, right).

 

For our simulation we are trying to display labels for parts that we are assembling.  We have used a BPButton with .png texture of the text.  If we place the BPButton under the Viewer camera in the iCube configuration it will not display in 3D.  Is there another way to display our labels?

 iCube_config.png

RE: BPButton in iCubetop^
Sunil Naidu
Username: sunil.naidu
Posted: Tue 21 Jun, 2011 12:33 AM
2649 days ago
Location: United States
Maintenance

Issue resolved.

 

The BPButton was positioned too close to the camera.  So by checking PlaceAtFarClip and increasing the value of DistanceFromCam, we were able to retain the 3D view of the BPButton.  Hope this can help someone!

RE: BPButton in iCubetop^
Lloyd Churches
Username: eonman
Posted: Tue 21 Jun, 2011 1:50 AM
2649 days ago
Location: Australia
Administrators

Also, this is from FAQ section.

 

We have created an application with several BPButton prototypes and when the simulation is run with no stereo it works fine and all of the buttons appear as normal, but when stereo is changed to quadbuffer none of the BPButton prototypes are visible. Is there some setting the i am missing to keep them in view?

By default, BPButtons are designed to be 'on top' of the 3D environment so they are placed at a distance from the camera equal to the near clipping plane, can't get any closer than that.

However in stereo this is not good. It's too close like trying to read from a postage stamp an inch in front of your nose.

So you need to push the BPButton way forward so its really is part of the 3D environment. To do that you will need to edit a field or two in the BPButton.

If you scroll down toward the bottom of the properties in your property bar you'll find 5 fields to do with placing the BPButton a certain distance from the camera.
DistanceFromCam
PlaceAtFarClip boolean
DistanceBeforeFarClip
PlaceAtNearClip boolean
DistanceFromNearClip

So by default the 'PlaceAtNearClip' field is checked which means it will be placed at a distance from the camera which is the same as the NearClip value in the viewport you are using. If you have several BPButtons and need to control which ones are in front of others then use the DistanceFromNearClip to push it further forward.

But for the stereo I would suggest you don't use this method. So uncheck the PlaceAtNearClip and instead set the DistanceFromCam to about a meter or two. But if you really did want this to be on top of the 3d world then I think the closest you could get it would be about 40 or 50 cm. Any closer and your eyes won't recognize it as stereo, the stereo effect breaks down.
Anyhow, experiment with different values.

Of course a problem you might encounter when pushing the BPButton forward like this is that other things like walls or doors etc can come between you (the camera) and the BPButton which means you don't see the BPButton. Maybe moving the NearClip plane out in this case would help. I mean normally the NearClip is 0.1 meters by default, move it to 0.5 if that is what distance from camera is best. I don't regularly play around with stereo settings but it seems logical that if I can't focus (using 2 eyes) on something too close then I shouldn't be trying to render it.