1.    31 Jan 2006 #1
    LM Guest

    Advice on creating a 3d control


    Hi,

    I'm looking to create a control similar to the winforms listview (eg it has
    different icon styles, list mode, details, etc) except that it uses the 3d
    stuff in WPF to make each object a 3d mesh instead of an icon. Right now I
    just made a custom control with a big viewport3d in it and am going to do all
    to work myself (which sucks). My question is: is there a better way?
    Previously I've created custom listboxes by using databinding and the
    DataTemplate stuff which is really awesome and slick. Can I do something
    similar? (like inheriting from a 2d control and using all its layout logic
    and containers to support databinding) One way i was thinking was to use a
    listview then in the datatemplate make a new viewport for each item.
    Although I'm not sure if this would allow things like making the items fly to
    their new positions when the sorting criteria changes. Also everything i know
    about windows and 3d programming tells me that making 100s of viewports is a
    bad idea performance wise, although since objects by default can extend past
    the viewport edges, avalon may be doing things behind the scenes differently
    than I assume. Any insight would be appreciated.

    Thanks,
    Lucas

      My System SpecsSystem Spec

  2.    31 Jan 2006 #2
    TheRHogue Guest

    RE: Advice on creating a 3d control


    WPF 3D is not as integrated as the 2D stuff for this version.

    You can style listbox items to each have a viewport - you can bind textures
    to materials. It's not full proof because again, 3D is not as integrated.

    You can use a single Viewport3D, but you are on your own at that point. I
    have a List3D control at http://www.therhogue.com/WinFX - graph3D sample.

    It allows for binding. It's an items control and a middleman...binding goes
    through it and then the visuals are interpreted into the viewport.


    "LM" wrote:

    > Hi,
    >
    > I'm looking to create a control similar to the winforms listview (eg it has
    > different icon styles, list mode, details, etc) except that it uses the 3d
    > stuff in WPF to make each object a 3d mesh instead of an icon. Right now I
    > just made a custom control with a big viewport3d in it and am going to do all
    > to work myself (which sucks). My question is: is there a better way?
    > Previously I've created custom listboxes by using databinding and the
    > DataTemplate stuff which is really awesome and slick. Can I do something
    > similar? (like inheriting from a 2d control and using all its layout logic
    > and containers to support databinding) One way i was thinking was to use a
    > listview then in the datatemplate make a new viewport for each item.
    > Although I'm not sure if this would allow things like making the items fly to
    > their new positions when the sorting criteria changes. Also everything i know
    > about windows and 3d programming tells me that making 100s of viewports is a
    > bad idea performance wise, although since objects by default can extend past
    > the viewport edges, avalon may be doing things behind the scenes differently
    > than I assume. Any insight would be appreciated.
    >
    > Thanks,
    > Lucas
    >

      My System SpecsSystem Spec


Similar Threads
Thread Forum
Control C and control v shortcuts aren't working
I recently discovered the shortcut keys for copy and paste, cntrl c & cntl v, do not work for certain programs. For example, if I have a picture...
General Discussion
Advice on creating outbound firewall rule
I need help forming an outbound rule for the firewall in vista home premium 32 bit. I am using Windows Mail, and the Windows firewall, and Norton...
System Security
How can I control the size of icons in Control Panel?
The size of icons in Control Panel suddenly became very large. I don't see any way (as I had in XP and even in other parts of Vista) to change the...
Vista General
Exposing contained control properties from within a custom control
I am trying to create a custom control that can be used to present a common look and feel within my application. My first start is to try and create...
Avalon
Exposing contained control properties from within a custom control
NOTE: Reposted because I missed a group in the original post. I am trying to create a custom control that can be used to present a common look and...
Avalon
Creating a ControlDesigner for a WPF Control - How to?
I've tried to post my question in the generic MSDN forums, I'll really appriciate it if you could give me directions or any other usefull...
Avalon
How do I use Custom Control Properties in Control Templates?
Hi, how can I use Custom Control Properties in Control Templates? I always got error messages.
Avalon

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • PC Help Forum
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 20:47.
    .