1. Post #1
    Gold Member
    Delremos's Avatar
    June 2007
    150 Posts
    I'm not sure if this is a universal problem or not but, why is it that if a DModelPanel's Height is greater than it's width it decides not to render the model anymore (I know next to nothing about 3d2d and the like).

    e.g:
    local DMPan = vgui.Create( "DModelPanel", panel )
    	DMPan:SetSize( 256, 256 )
    	DMPan:SetModel( "models/props_c17/pulleywheels_small01.mdl" )
    Would render the model whereas:
    local DMPan = vgui.Create( "DModelPanel", panel )
    	DMPan:SetSize( 255, 256 )
    	DMPan:SetModel( "models/props_c17/pulleywheels_small01.mdl" )
    Would not.
    If anyone knows a fix (Or if I'm doing something just generally wrong) please post.

  2. Post #2
    Mechanical Mind's Avatar
    December 2007
    411 Posts
    What you can do is set the width to the height then move it over.

  3. Post #3
    Gold Member
    Delremos's Avatar
    June 2007
    150 Posts
    So DModelPanel is limited to the width being greater than the height?