Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 29 15:48
    holance commented #1791
  • Jun 29 12:22
    Shomnipotence commented #1791
  • Jun 28 21:49
    holance closed #1728
  • Jun 28 21:49
    holance commented #1728
  • Jun 28 21:44
    holance labeled #1756
  • Jun 28 21:44
    holance labeled #1756
  • Jun 28 21:39
    holance commented #1790
  • Jun 28 16:04
    holance commented #1791
  • Jun 28 16:04
    holance commented #1791
  • Jun 28 10:25
    Shomnipotence edited #1791
  • Jun 28 10:20
    Shomnipotence opened #1791
  • Jun 28 04:55
    holance closed #1789
  • Jun 28 03:31
    holance labeled #1789
  • Jun 28 03:31
    holance labeled #1789
  • Jun 26 10:52
    x1y9 commented #1789
  • Jun 26 10:36
    x1y9 commented #1789
  • Jun 26 02:51
    holance commented #1789
  • Jun 26 02:50
    holance commented #1789
  • Jun 26 02:49
    holance commented #1789
  • Jun 26 02:48
    holance commented #1789
chrishepburn
@chrishepburn
Hi, I am working on a WPF application where it would be convenient if the hitTestResult of the MouseMove3DEventArgs could be populated on each mouse move . At the moment, it is only populated on a MouseDown3DEvent. Maybe I am just missing some xaml for this option?
sd1975
@sd1975

HelixTonolkit.Wpf.SharpDX
Hello to all programmer friends. I am in despair.I have the following problem: I have added 3 boxes to a MeshGeometry3D with messbuilder.
Now I want to move the positions of each box. But not with the mouse but with CodeBehind. How can I find the individual boxes without the mouse? It is written again and again one should search in the examples but one finds nothing about it always only mouse mouse mouse!

Code:
meshbuilder = new MeshBuilder();
messbuilder.AddBox(......);
messbuilder.AddBox(......);
messbuilder.AddBox(......);

PlatesGeometry = meshBuilder.ToMeshGeometry3D();

Lunci
@holance
@chrishepburn You can do it yourself by calling Viewport3DX.HitTest and get the hitting results for mouse move events. But be careful with it since hit test could be cpu intensive specially for large mesh. And mouse move event is fired at 100hz.
@sd1975 If you want to find individual box, you better creates separate meshes for each box. If you use single meshbuilder to create 3 boxes, all three of boxes belong to one mesh
Julien Amsellem
@ju2pom
Hello, I wanted to share with you some visual of what I did with helix-toolkit in my application
cover-image.png
Lunci
@holance
Very nice, thanks for sharing
@ju2pom
RoyLai
@RoyLaiYi
how can we flip the model?
I only know RotateTransform3D, TranslateTransform3D and ScaleTransform3D
Is there any class for flipping
Lunci
@holance
Negative scale? @RoyLaiYi
RoyLai
@RoyLaiYi
@holance Mirroring
sd1975
@sd1975
@holance thanks for your help! i will try it.
sd1975
@sd1975
Unfortunately I have not managed. could you give me an
an example. I want to add boxes at runtime which I then want to move on runtime. For a small example I would be very grateful. (MVVM)
sd1975
@sd1975
Thanks!
Lunci
@holance
@sd1975 which package are you using? Helix toolkit.wpf or helix toolkit.wpf.sharpdx? There are a lot of examples (including what you need) in the source code repo. You probably want to check them out.
sd1975
@sd1975

At the moment I switched to toolkit.wpf there is ItemSource:
so I can add objects at runtime and access them later. But with DX I have no idea how to do that:
If you can show me the alleged example where I can add a box at runtime and then move that box in the codebehind at any time I would donate you a case of beer!

View:
<h:HelixViewport3D ItemsSource="{Binding Wpf3Objects}" Height="300" Background="{h:LinearGradientBrush Gray, White}"></h:HelixViewport3D>

ViewModel
private ObservableCollection<Geometry3D> _geometryOc;
public ObservableCollection<Geometry3D> GeometryOc.
{
get { return _geometryOc ?? (_geometryOc = new ObservableCollection<Geometry3D>()); }
set
{
SetProperty(ref _geometryOc, value);
}
}

var myTransform = new Transform3DGroup();
TranslateTransform3D myTranslate = new TranslateTransform3D(loads.PosY, loads.PosX, loads.PosZ);
myTransform.Children.Add(myTranslate);
BoxVisual3D boxi = new BoxVisual3D();
boxi.Height = thickness;
boxi.Length = lenght;
boxi.Width = width;
boxi.Transform = myTransform;
Wpf3Objects.Add(boxi);

Translate
TranslateTransform3D myTranslate = new TranslateTransform3D(x, y, z);
Wpf3Objects[ooo + 1].Transform = myTranslate;

Translated with www.DeepL.com/Translator (free version)

private ObservableCollection<Visual3D> _wpf3Objects;
public ObservableCollection<Visual3D> Wpf3Objects
{
get { return _wpf3Objects ?? (_wpf3Objects = new ObservableCollection<Visual3D>()); }
set
{
SetProperty(ref _wpf3Objects, value);
}
}
Got the wrong collection sorry
Julia
@Julia-Aalbers
Is there a way to change the view of a cube using incoming roll and pitch data?
1 reply
Julien Amsellem
@ju2pom
Hello, I have setup a "fixed" light rig in my scene with 3 directional lights and one ambient light. I also have a mesh that is a bit like a sky dome. Is it possible to apply only the ambient light on this mesh? Also, how to define which light(s) account for the shadow map?
And in the same kind of idea, is it possible to make an "unlit" material?
Lunci
@holance
@ju2pom First directional light will be used for shadow map.
1 reply
Use DiffuseMaterial and set its EnableUnLit = true to use unlit
rahoof08
@rahoof08
Hello,
Please, is there any way to combine multiple MeshGeometryModel3D objects into 1 single MeshGeometryModel3D including all materials associated with the objects? and how I can do it?
Thanks
Lunci
@holance
@rahoof08 you can combine geometries, but can't combine different materials.
Julien Amsellem
@ju2pom
Hello, I wonder why some FBX models do cast shadows and some not? For example, famous Kenney assets do not cast shadows. The same way some models works fine with SSAO and some don't. And for SSAO it's the opposite, Kenney's assets works perfectly with SSAO.
Lunci
@holance
@ju2pom probably the size of the model doesn't fit into the shadow camera.
2 replies
Simon Gosselin
@simongosselin_gitlab
Hi, does anyone know if it's possible to create a material and play a video on it as its texture?
CasperH2O
@CasperH2O
Thank you for the great framework, we've been using it in our open source application Controller Service to show an animated overlay of a gamepad controller. The controller has an IMU we use for the pose estimated and the button inputs are reflected with highlights.
DS4.gif
It's a WPF page with a transparent background, runs really well (not even SharpDX yet). Example gaming video: https://streamable.com/t20pi3
CasperH2O
@CasperH2O
The models are made with Fusion360, exported as .OBJ files. Hightlights are done through adapting material based on button inputs.
CasperH2O
@CasperH2O
Xbox360Controller.gif
Lunci
@holance
@CasperH2O Thanks for the support
RoyLai
@RoyLaiYi
Why the result of bounds seems not correct after rotating the 3D object´╝č
Is there any solution to get the correct boundingbox rect?
Lunci
@holance
@RoyLaiYi You can always calculate the exact bounding box yourself by applying the transform onto each of your model vertices. The bound from helix toolkit is an estimate due to performance consideration.
CasperH2O
@CasperH2O
@holance , thank you for the kind words. I've been investigating on how to make the models look prettier/nicer. Two things I found, using a shadowmap and SharpDX's Material demo.
Do you think those two are my best bet? Or are there other things I could try? I have very little rendering skill/know how so I don't even know what terms to look for in Google...
Lunci
@holance
@CasperH2O May I ask what do you mean by looking prettier/nicer?
3 replies
ljzz1234
@ljzz1234
how to make animations for moving 3D models
Davide Giannuzzi
@dvdgnz
how do you increase the intensity of a light or otherwise increase the overall brightness of a viewport?
3 replies
CasperH2O
@CasperH2O
image.png
See my replies in the thread, can't post a picture there, but the lights example has several options like a brightness slider:
giovannapalomba
@giovannapalomba
Hello everybody, how can I async load each element of ItemsModel3D in WinUI so that I can give the user a feedback while it is loading? Could I load one element of the list one by one instead of waiting to render all?
1 reply
yasmineNjim
@yasminenjim
hey guys, does anyone know how to load FBX file in Helixtoolkit.SharpDX using Assimp in a WPF project?
1 reply
Denissssse
@Shomnipotence
Well, hello, anyway to import OpenVDB ?