Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 17 15:20
    holance commented #1600
  • Jun 17 08:38
    gregorsGit commented #1600
  • Jun 17 07:21
    holance commented #1600
  • Jun 17 07:11
    gregorsGit opened #1600
  • Jun 15 06:19
    eriove commented #1585
  • Jun 14 14:53
    holance commented #1585
  • Jun 14 14:52
    holance commented #1585
  • Jun 14 14:31
    eriove commented #1585
  • Jun 14 14:18
    holance commented #1585
  • Jun 14 09:15
    eriove commented #1585
  • Jun 10 23:44
    holance commented #1599
  • Jun 10 22:56
    zhichangxuexi opened #1599
  • Jun 09 19:12
    holance closed #1596
  • Jun 09 08:25
    bouazaoui commented #1596
  • Jun 08 20:45
    holance commented #1596
  • Jun 08 16:25
    bouazaoui commented #1596
  • Jun 08 00:59
    holance commented #1598
  • Jun 07 22:25
    holance commented #1596
  • Jun 07 18:24
    GeorgeS2019 edited #1598
  • Jun 07 18:10
    bouazaoui commented #1596
void110916
@void110916
Hi, I add a ModelVisual3D to my Helix Viewport3D, and this ModelVisual3D contains some model3Ds. But when I change the transform of these model3Ds, the final ModelVisual3D doesn't change. Is there any steps that can refresh the ModelVisual3D ?
Kim Kulling
@kimkulling
hi
Dimoniums
@Dimoniums
Hello, I'm using Helix SharpDX to display a collection of PointGeometryModel3D. I am attempting to use the built in "MouseDown3D="HelixView_MouseDown3D" to do hit testing, and can't seem to be able to select points. This approach works well for MeshGeometryModel3D and LineGeometryModel3D. Any advice?
Dimoniums
@Dimoniums
helix-toolkit/helix-toolkit#1416 Seems this issue existed before, but I don't see that it was corrected.
Lunci
@holance
@Dimoniums How many points in each of the PointGeometryModel3D in your case?
The issue only happens when there is only one point in PointGeometryModel3D.
Dimoniums
@Dimoniums

All points are in one ObservableCollection which is added to the view through a template

<DataTemplate x:Key="Point3DTemplate">
<hx:PointGeometryModel3D Geometry="{Binding Geometry}" Color="{Binding Color}" Size="{Binding Size}" Tag="{Binding Tag}" IsHitTestVisible="{Binding IsHitTestVisible}" FixedSize="True"/>
</DataTemplate>
<hx:ItemsModel3D ItemTemplate="{StaticResource Point3DTemplate}" ItemsSource="{Binding HelixPoints}"/>

Wait, If i understand correctly. When adding points to the list there should only be 1 point object which holds all point positions?
Lunci
@holance
@Dimoniums It's prefer to aggregate points into few point models for performance reason. It is better for gpu to just draw a lot of points in one pass than to draw points one at a time.
Dimoniums
@Dimoniums
I was doing one at a time to take advantage of the .Tag property. That way I can use hit test to find related data object. Now using .Indecies for same purpose. Hit test working.
Titibo26
@Titibo26

Hi everyone, I have a list of double[] representing points for some calculation. for now i'm adding points into the view by creating a point with corresponding coordinate and updating the geometry.
Now i need to remove some of theses points [using sharpDX]. Is there a way to link my double[] list to points of the geometry so when i remove a double[] from the list, it'll be removed from the geometry (and the view) ?

For now, when i have a point to remove, i'm iterating though all the geometry to find the corresponding point, and i feel like it's an uggly way to do.
Thank you

Lunci
@holance
@Titibo26 I believe you should only use single geometry to represents all the points. After updating your list of double[], simply re-generate the point geometry and assign to the point model.
Or you can generate Vector3Collection from your own library directly without going through generating the double list.
John
@heyufei2008
image.png
How to remove the yellow lines on clicking a model?
How to prevent the model disappeared on zooming out?
image.png
some parts are disappearing on zooming out.
e.g. Here the tyre is gone.
gregorsGit
@gregorsGit
When did you plan to make a V2.16.0 Release?
zeepintor
@zeepintor
Lunci
@holance
@heyufei2008 Increase the camera far plane distance to avoid model disappearing.
Remove the post effect in xaml to remove the yellow lines.
@gregorsGit Maybe this weekend or next weekend.
Taode
@USTC-Wang
Hey guys , could you tell me how to show System.Windows.Media.Media3D.GeometryModel3D element in Wpf.SharpDX viewport3DX , because using <ModelVisual3D> turned out to be failed
Lunci
@holance
@USTC-Wang You can't use wpf 3d elements in sharpdx version.
ChengdaGuo
@ChengdaGuo
Hi guys, how can I bind two gestures to Pan operation?
<MouseBinding Command="hx:ViewportCommands.Pan" Gesture="LeftClick + RightClick" /> It's not work! How can do this?
jackal-zilla
@jackal-zilla
Is it still possible to add .obj file into wpf for viewing in 3d
?
Gravemind2401
@Gravemind2401
@jackal-zilla the example projects in the source code had some examples of importing model files
jackal-zilla
@jackal-zilla
Thanks
Gravemind2401
@Gravemind2401
in sharpdx wpf is it possible to create Element3D objects asynchronously?
i tried putting my mesh loading code inside await Dispatcher.InvokeAsync(LoadFunction) and everything seems fine in the code (and no thread ownership errors) but none of the elements are visible in the viewport
the same LoadFunction() works just fine synchronously
but of course it freezes the ui
Lunci
@holance
@Gravemind2401 You can't create element3d from another thread other than UI thread (wpf limitation). You can create scene nodes from another thread, but needs to use UI thread to attach to the viewport.
Gravemind2401
@Gravemind2401
im using Dispatcher.InvokeAsync so the elements are being created on the UI thread, they just dont seem to render at all
Gravemind2401
@Gravemind2401
if i dont use the dispatcher it just gives an ownership error about the object belonging to a different thread, so as far as i can tell it should be on the correct thread
Lunci
@holance
@Gravemind2401 Are you able to upload a sample. Seems like you are not using the dispatcher associating with the viewport.
Gravemind2401
@Gravemind2401
looks like that was the case. I didnt know dispatchers from different dispatch objects would conflict with each other, i thought it only mattered that it was on the ui thread so any dispatcher would work
i made sure all the elements were created on the same dispatcher instance and it works now
jackal-zilla
@jackal-zilla
I seriously can't find where to find code to import '.obj' and '.mtl' files in the example projects. Some one help me please.
jackal-zilla
@jackal-zilla
@holance Thanks
bouazaoui
@bouazaoui
Hi every one, i have forked helix-toolkit to help me for resolving the memory leak, when i change between models.
bouazaoui
@bouazaoui

Hi every one, i have forked helix-toolkit to help me for resolving the memory leak, when i change between models.

helix-toolkit/helix-toolkit#1596

Yunus Gündüz
@ynsgndz
Hi everyone how can I manuel rotate obj files in wpf(c# ) with textbox values
HuMingYi
@HuMingYi

@holance Would like to ask a question, import obj file, obj file path also has MTL file, but can not display normally
code:
var caritems = Load3ds(@"E:\3Dobj\file.obj").Select(x => x.Geometry as MeshGeometry3D).ToArray();

        var scale = new Vector3(1f);

        foreach (var item in caritems)
        {
            for (int i = 0; i < item.Positions.Count; ++i)
            {
                item.Positions[i] = item.Positions[i] * scale;
            }

        }
        Model = MeshGeometry3D.Merge(caritems);

public List<Object3D> Load3ds(string path)
{
var reader = new ObjReader();
var list = reader.Read(path);
return list;
}

Lunci
@holance
@HuMingYi Not sure what you mean by not display normally. Are you using helix toolkit.wpf or sharpdx version?
HuMingYi
@HuMingYi
{97af88fc-916c-4c1e-b62b-905d56f249be}.png