Game Development Community

TX3D 3.1.5 Beta - Billboard rendering

by Henry Shilling · in Torque X 3D · 06/26/2010 (8:20 pm) · 1 replies

Build: 3.1.5 Beta

Platform: Windows 7-64 (specs i7 920, nVidia GTS250 6GB ram)

Target: VS2008 pro

Issues: Billboards do not render correct depths.

Steps to Repeat:

1) create billboard and place in scene.
<bbtest type="GarageGames.Torque.Core.TorqueObject" name="bbtest">
    <Components>
        <T3DSceneComponent type="GarageGames.Torque.T3D.T3DSceneComponent">
            <SceneGroup>bb_01</SceneGroup>
            <ObjectType />
            <Position>
                <X>962.3731</X>
                <Y>1035.808</Y>
                <Z>3.572668</Z>
            </Position>
        </T3DSceneComponent>
        <T3DBillboardRenderComponent type="GarageGames.Torque.T3D.T3DBillboardRenderComponent">
            <Filename>databillboard</Filename>
            <Scale>1</Scale>
            <Width>1</Width>
            <Height>1</Height>
            <SceneGroupName>bb_01</SceneGroupName>
        </T3DBillboardRenderComponent>
    </Components>
    <ObjectType />
</bbtest>
2) play the level.

3) Watch this video to see the issue:



Suggested Fix: I do not know. However if you compare this implementation with the XNA sample (creators.xna.com/en-us/sample/billboard) it seems the TX version is overly heavy, and overly engineered. Adding billboards should be saving cycles, however when I add them I see a bigger hit in the frame rate than I do with adding the full dts trees.