Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 13 07:13

    holance on develop

    Fix .nuspec files (see: https:/… Merge pull request #1230 from s… (compare)

  • Sep 13 07:13
    holance closed #1230
  • Sep 12 13:22
    smischke opened #1230
  • Sep 11 22:40

    holance on develop

    Fix render exception handling t… Merge pull request #1229 from s… (compare)

  • Sep 11 22:40
    holance closed #1229
  • Sep 11 08:20
    smischke opened #1229
  • Sep 11 06:44
    holance closed #1225
  • Sep 11 06:43

    holance on develop

    Merge pull request #27 from hel… Fix wpf.input project Fix wpf.input nuget to include … and 3 more (compare)

  • Sep 11 06:43
    holance closed #1228
  • Sep 11 06:32
    holance edited #1228
  • Sep 11 06:31
    holance opened #1228
  • Sep 10 19:29
    holance commented #1225
  • Sep 10 09:47
    Reaper90 commented #1225
  • Sep 10 05:12
    JuandreG commented #1227
  • Sep 10 01:04
    holance commented #1227
  • Sep 10 01:04
    holance labeled #1227
  • Sep 10 01:04
    holance labeled #1227
  • Sep 10 01:04
    holance commented #1227
  • Sep 10 01:03
    holance commented #1227
  • Sep 09 19:20
    JuandreG commented #1227
Matt Campbell
@micampbell
I'm trying to understand the DataTemplate Demo for a big mvvm project. I see the custom ItemsVisual3D and DataTemplate3D classes and have a basic sense of what they do, but I'd like to use a Converter to change from some 3rd party class to to a visual class. Anyone try this?
Matt Campbell
@micampbell
Well, I solved my issue. I hacked up "ItemsVisual3D.cs" from the DataTemplate Demo. In our case, I thought it'd be easier to use a Converter than DataTemplates (as is done in this example), but - of course - both approaches are valid in an MVVM scenario. What I mean is that when you are augmenting WPF-free objects from the ViewModel for display in the View, you could do use DataTemplates or Converters. So, I got things working for me that combined the ItemsVisual3D with my converter code. As such, it is not generally useful. So, I say this to no one in particular: it'd be cool to add an example that uses a converter in binding an ItemsSource (ItemsSource="{Binding Path=., Converter={StaticResource ViewModelObjectToVisual3DConverter }}") in addition to the DataTemplate example.
...thanks for reading
Lunci
@holance
@MarioLung You need to use GroupModel3D.ItemsSource for your group parent binds to an ObservableElement3DCollection, then add your group1/2/3 into ObservableElement3DCollection.
@Scusemua Are you using the latest source?
Lunci
@holance
@Klamay_gitlab You need to fix the project reference manually.
<Reference Include="HelixToolkit.SharpDX.Core.Assimp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d, processorArchitecture=MSIL">
  <HintPath>packages\HelixToolkit.SharpDX.Assimp.2.8.0\lib\netstandard1.3\HelixToolkit.SharpDX.Core.Assimp.dll</HintPath>
</Reference>
Remove the HelixToolkit.Wpf.SharpDX
Lunci
@holance
@Klamay_gitlab Another way is to create a separate project using netstandard, and includes HelixTookit.SharpDX.Core and HelixToolkit.SharpDX.Assimp, this should resolve dependency automatically
Klamay
@Klamay_gitlab
@holance Yes, that's it! Thank you!
Lunci
@holance
@Scusemua BoundsWithTransform only differs from Bounds when there is a transform.
Mario Lung
@MarioLung
@holance thanks works fine now!
Mario Lung
@MarioLung
@holance is there any example how i must set and create the objects and viewport with CreateLeftHandSystem = true thx for hint and help
i work with SharpDX.WPF
Mario Lung
@MarioLung
@holance any new RoadMap SharpDX is dead now :-(
image.png
Lunci
@holance
@MarioLung Since current helixtoolkit uses dx11, I don't think there will be any changes on it. Current Sharpdx should be good for a while.
Most of the system are using right hand rules, helixtoolkit supports left hand, but never be fully tested.
Benjamin Richard Carver
@Scusemua
I figured BoundsWithTransform would only differ when indeed there is a Transform, but it didn't appear to be making a difference for me. Perhaps I am on an older version of the source though.
Moccassins
@Moccassins
Hi there, we are using the wpf version of HelixViewport3D. for some reason, the control catches the esc key. can some one get me a quick tip what i had to disable to disable the catching of that key? i allready tried to set focusable = false and on a first look i didnt find a registration for that key in the controls sourcecode
Lunci
@holance
@Moccassins hookup preview key down event and set it to handled if it is esc key
Anthony Murphy
@antmurph
Any idea why viewport.Export(path) takes so long, generally. I have a 70mb obj + mtl that takes 30-40 seconds to export to png. This is with HelixToolkit.Wpf
Lunci
@holance
@antmurph Are you including the model loading time?
Moccassins
@Moccassins
@holance didnt work. found a solution with snoop. the problem is the camera controller inside the helixviewport. i set helixviewport3d.cameracontroller.focusable = false in the loading event.
Anthony Murphy
@antmurph
@holance model is loaded in the viewport and I'm rendering at 40-50fps solid. After I call viewport export and save with the file file dialog I'm waiting at a minimum of 10 seconds for my smallest obj I have on hand(15mb) before the png file is finished saving
Anthony Murphy
@antmurph
@holance wanted to add, the initial load time into the viewport is around a second before I see the model
Lunci
@holance
@antmurph Seems like the export is using a oversampling with 2, it maybe the root cause. You can try to use BitmapExporter to export with oversampling = 1.
sinaone1
@sinaone1

I have a polygon in wpf.sharpdx and it's like this

List<Vector2> lstPnt1 = new List<Vector2>();
lstPnt1.Add(new Vector2(20, 0));
lstPnt1.Add(new Vector2(30, 0));
lstPnt1.Add(new Vector2(30, 10));
lstPnt1.Add(new Vector2(20, 10));

Now I have an another polygon and I want to make a hole in first polygon by that

var lstPnt2 = new List<Vector2>();
lstPnt2.Add(new Vector2(25, 4));
lstPnt2.Add(new Vector2(27, 4));
lstPnt2.Add(new Vector2(27, 6));
lstPnt2.Add(new Vector2(25, 6));

Do you have any idea about it?

Anthony Murphy
@antmurph
@holance That certainly helps, Thank you for the advice. 70mb obj export is only around 5 seconds now, thats much better.
Benjamin Richard Carver
@Scusemua

So after switching over from WPF-HelixToolkit to SharpDX HelixToolkit, a lot of my models look a lot darker and less vibrant. I'm using the exact same colors and I've configured the lighting to be identical. Any idea why the color difference is so drastic or how I could achieve the same appearance?

Here are the differences.

alt
alt

Lunci
@holance
@Scusemua Maybe bind your directional light direction to camera direction? Or set an ambient light.
JulYred
@JulYred
z
JulYred
@JulYred
image.png
image.png
Hi guys ,I have a three-part iron tower model.
This is the normal state,but when I want to rotate each part by 50 degrees
image.png
I get it
JulYred
@JulYred
I did this by taking the center point of the lowest plane of each model as the center of rotation
image.png
But the actual effect I want is this when roate 50°
The three models will be connected together,but i don't konw how
I roate by use the Matrix3D property
JulYred
@JulYred
like this
image.png
The problem is with my firstAxis?
Lunci
@holance
Usually you want to use a group model to group all of submodels, and rotate the group model instead of individual submodels.
@JulYred
JulYred
@JulYred
@holance Thanks,but three parts have different rotation angles
Lunci
@holance
@JulYred You need to put the original transform on submodels, then they can be attached together properly. Then transform the group model so sub model can still attached properly after transform. You may want understand what is scene graph first: https://webglfundamentals.org/webgl/lessons/webgl-scene-graph.html
JulYred
@JulYred
@holance thanks