Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 05 20:59
    holance commented #1837
  • Oct 05 20:08
    ikonuk commented #1834
  • Oct 05 18:01
    ikonuk commented #1837
  • Oct 05 17:47
    ikonuk opened #1837
  • Sep 29 06:00
    vamsi5235 commented #1834
  • Sep 27 23:32

    holance on develop

    Update CHANGELOG.md (compare)

  • Sep 27 21:36
    holance labeled #1833
  • Sep 27 21:36
    holance labeled #1833
  • Sep 27 21:36
    holance labeled #1833
  • Sep 27 20:56

    holance on develop

    Fix missing invalidate event ha… Merge pull request #1836 from h… (compare)

  • Sep 27 20:56
    holance closed #1836
  • Sep 27 20:23
    holance labeled #1835
  • Sep 27 20:23
    holance labeled #1835
  • Sep 27 20:23
    holance commented #1835
  • Sep 27 20:21
    holance labeled #1834
  • Sep 27 20:21
    holance commented #1834
  • Sep 27 20:19
    holance opened #1836
  • Sep 27 20:16

    holance on 2.22.1

    (compare)

  • Sep 27 15:44
    dwpessoa opened #1835
  • Sep 26 07:14
    vamsi5235 commented #1834
Minsung
@nbright
There was no response on this question https://helixtoolkit.userecho.com/communities/1/topics/439-loading-issue-of-sharpdx-on-xbap. Is it available using HelixToolkit-SharpDx on the web?
Lunci
@holance
@redrabbit007 SceneNodeGroupModel3D only accepts SceneNode type. If you want to add WPF models, you need to use GroupModel3D.
Or change the arrowModel type to MeshNode
@nbright We no longer needs sharpdx_direct3d11_effects_x86.dll in HelixToolkit.SharpDX versions after v2.0 release
thienmenh294
@thienmenh294
In helixtoolkit.sharpdx, can I set rotation's center is model's center?
Lunci
@holance
@thienmenh294 Set Viewport3DX.FixedRotationPointEnabled = true and then set Viewport3DX.FixedRotationPoint to your model center.
Chris Hill
@robotron2084
@holance I have emailed you at the gmail address in the readme, in case you don't check that email very often. :)
John
@heyufei2008
Hi
<ht:BillboardVisual3D Position="6,10,3" Width="100" Height="100" Material="{ht:ImageMaterial roadsign.png, IsEmissive=true}"/>
How to set position of a billboardVisual3D?
what does the position mean?
Chris Hill
@robotron2084
@heyufei2008 A billboard contains a collection of ImageInfo objects, which define the positions of the billboards. The ImageInfo object defines a Position that can be used to define where the billboard should be placed.
thienmenh294
@thienmenh294
Hi
In Sharpdx, Model vibrates when zooming. How to fix it?
Lunci
@holance
@thienmenh294 Could you provide a sample to show the issue?
thienmenh294
@thienmenh294
How to send project
thienmenh294
@thienmenh294

I did ZoomFit
Vector2 center = new Vector2(Convert.ToSingle((xMax + xMin) / 2), Convert.ToSingle((yMax + yMin) / 2));//Center 2D
Vector3 center3D = new Vector3();
DieCreationWindow.ViewPort.UnProjectOnPlane(center, new Vector3(0, 0, 0), DieCreationWindow.ViewPort.Camera.LookDirection.ToVector3(), out center3D);//Find center 3D
DieCreationWindow.ViewPort.ZoomToRectangle(new Rect(new System.Windows.Point(xMin - 5, yMin - 5), new Size(sizeX + 10, sizeY + 10)));
Vector3D lookDirection = DieCreationWindow.ViewPort.Camera.LookDirection;
lookDirection.Normalize();
DieCreationWindow.ViewPort.Camera.LookDirection = lookDirection;
DieCreationWindow.ViewPort.Camera.LookAt(center3D, 0);

after using it then use the zoom to maximize, model vibrates

thienmenh294
@thienmenh294
Can I set PostEffectMeshXRay for GroupModel3D?
thienmenh294
@thienmenh294
How to always see a hidden Model?
Lunci
@holance
@thienmenh294 GroupModel3D doesn't support effect.
Not sure what you mean by show hidden model.
thienmenh294
@thienmenh294
How to always see a obscured Model?
thienmenh294
@thienmenh294
Do you know the cause of my model vibrates when zooming?
Lunci
@holance
@thienmenh294 You can create an issue in github upload a sample there.
thienmenh294
@thienmenh294
can I send a email to you?
Fichtelcoder
@FrankenApps
I would like to apply a runtime generated ImageTexture to a Cube. All that I am getting no matter how I tried is a white cube. This is my code. I would greatly appreciate any help or hint to what I am doing wrong.
public MainWindow()
        {
            InitializeComponent();

            Create3DViewPort();
        }

        private void Create3DViewPort()
        {
            var hVp3D = new HelixViewport3D{ 
                ShowFrameRate = true,
                ShowViewCube = true,
                ShowCoordinateSystem = true,
                ShowTriangleCountInfo = true
            };
            var lights = new DefaultLights();
            hVp3D.Children.Add(lights);

            var meshBuilder = new MeshBuilder();
            meshBuilder.AddBox(new Point3D(0, 0, 0.5), 1, 1, 1);

            hVp3D.Items.Add(new MeshGeometryVisual3D
            {
                MeshGeometry = meshBuilder.ToMesh(),
                Fill = GetTextMaterial("T")
            });

            hVp3D.Children.Add(new GridLinesVisual3D
            {
                Width = 8,
                Length = 8,
                MajorDistance = 1,
                MinorDistance = 1,
                Thickness = 0.01
            });

            h3dContainer.Children.Add(hVp3D);
        }

        private System.Windows.Media.Brush GetTextMaterial(string text)
        {
            Bitmap bmp = new Bitmap(64, 64);
            RectangleF rectf = new RectangleF(0, 0, bmp.Width, bmp.Height);

            Graphics g = Graphics.FromImage(bmp);
            g.SmoothingMode = SmoothingMode.AntiAlias;
            g.InterpolationMode = InterpolationMode.HighQualityBicubic;
            g.PixelOffsetMode = PixelOffsetMode.HighQuality;
            g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;

            g.FillRectangle(System.Drawing.Brushes.Green, rectf);

            StringFormat format = new StringFormat()
            {
                Alignment = StringAlignment.Center,
                LineAlignment = StringAlignment.Center
            };

            g.DrawString(text, new Font("Tahoma", 8), System.Drawing.Brushes.Black, rectf, format);
            g.Flush();

            var bmpImage = Bitmap2BitmapImage(bmp);
            var material = MaterialHelper.CreateImageMaterial(bmpImage, 1, true);
            var imageBrush = new ImageBrush(bmpImage);
            return imageBrush;
        }

        private BitmapImage Bitmap2BitmapImage(Bitmap bitmap)
        {
            using (MemoryStream ms = new MemoryStream())
            {
                bitmap.Save(ms, ImageFormat.Png);
                ms.Position = 0;
                BitmapImage bi = new BitmapImage();
                bi.BeginInit();
                bi.StreamSource = ms;
                bi.EndInit();

                return bi;
            }
        }
}
Fichtelcoder
@FrankenApps
I suspect it has to do with the texture coordinates, but still I do not understand why I do not see any green, which I would expect in that case...
Lunci
@holance
@FrankenApps There are several parameters on mesh builder constructor. Make sure you set generate texture coordinate to true
F1e2r
@F1e2r
Hello! I am new to helix toolkit. I use helix toolkit wpf, everything great! And now I want to print HelixViewport3D (on real or PDF printer). I use PrintVisual method of PrintDialog and it works, but quality of image not so good as expected. It seems that wpf print it in wpf's standart 96 dpi, not in 300, 600 or 1200 dpi that I choose in printer settings. Is there any way to set dpi of image rendering for printing? Thanks in advance!
Fichtelcoder
@FrankenApps
sc.png
@holance I did. Sadly I still only see a white surface.
yonghua
@dayang
image.png
yonghua
@dayang
@holance I use ItemModel3D as the code,and FindHits when mouse move,but can only get hit result in last item's points
image.png
image.png
Lunci
@holance
@dayang are you using single point model to render your points? Or use many point model for each point?
@FrankenApps have you verified the bitmap your code rendered?
yonghua
@dayang
@holance My whole model has several hexahedrons, each hexahedron has six surfaces, and each surface uses a PointGeometryModel3D to render many points on it
image.png
This is one hexahedron
I run the OctreeDemo which works well,so maybe the use of ItemsModel3D?
yonghua
@dayang
image.png
My code wirtes like this
redrabbit007
@redrabbit007
Has anyone created a scene designer for helix-toolkit? Where I could visually place lights, models, etc.
Lunci
@holance
@dayang which version are you using?
Are you able to upload a sample to show the issue?
Gravemind2401
@Gravemind2401
if you dispose a group element does it also dispose of all its children? I can see it disposes the group's scene node, but im not sure if child nodes are part of that diposal
Lunci
@holance
@Gravemind2401 yes, all children will be disposed
miquik
@miquik

Hello,

I try to implement my custom shader technique; In order to get it works, every objects in the scene must be preprocessed in this way: object geometry is split in two part, one part (let's called A) has its own shader, vertex/index buffers, primitivetopology, also the other part (let's called B) has its own shader, buffers.

Now, to apply this technique correctly, I have to render A first and the B in this order. This must be done for every objects so, for example, if I have 3 objects in scene I have to render: A1 B1 A2 B2 A3 B3.
How could manage this in Helix? I think about create two nodes (one for A and one for B) and append both as child of an "empty" parent-Object node

kthyholdt
@kthyholdt
Hey, I'm trying to migrate my program to .Net Core, when changing to the Helixtoolkit Core SharpDX packages the append function in MeshBuilder no longer accepts MeshGeometry3D as input. Is there some using I'm forgetting, or was this intentionally removed?
Lunci
@holance
@miquik The easiest way is just use different node to contain different parts. And put them in order.