This is the discussion forum for Helix Toolkit.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
0

how do I get transformed point or mesh coordinates for a ModelVisual3D with Transforms?

PUPPICAD 8 years ago updated by anonymous 7 years ago 1

I'm writing an STL exporter, and , also, I noticed the obj exporter doesn't work in some cases, where one of the models had a transform.

So I'd like to be able to "hardcode" the transform.

0

Billboard transparency

Rodrigo Basniak 8 years ago updated by anonymous 7 years ago 1

Hi,

I create a new Billboard and set an image on it using a DifuseMaterial:


var material = new DiffuseMaterial(new ImageBrush(new BitmapImage(new Uri($"Images/target.png", UriKind.Relative))));
_billboard1.Material = material;

The image is a PNG file with transparency. But the transparent pixels are showing as white on the HelixViewport3D:


Image 45


Are there any secrets when working with transparency or is it not supported?


Thanks,

Rodrigo

0

Vertex Buffer Optimization

Przemko 9 years ago updated by ไอยดา สุรีวงค์ 4 years ago 1

I looking for option in engine, to turn on Vertex Buffer optimization, or any other optimization.
When i was writing my own engine on SharpDX, I have got 20ms per render on 20,000,000 points and 60,000,000 triangles objects. But with HelixToolkit.SharpDX.WPF I even cant render 2,000,000 points because its laggig to much.

0

Visual Basic version of ModelViewer Example?

Alexander 9 years ago updated by anonymous 6 years ago 1

Hello.

Can someone please provide a Visual Basic version of the ModelViewer example in https://github.com/helix-toolkit/helix-toolkit/tree/master/Source/Examples/WPF/ModelViewer?

0

How to change center target in SharpDX?

Kumaran M 9 years ago 0

In helix toolkit double right click can change the center target. How can I do the same in SharpDX?

0

How can I select 3d elements on ViewPort

Дмитро Шпак 9 years ago updated by Lucas Silva 8 years ago 1

I hawe ViewPort and many "TubeVisual3D" generated on it.

Is there a way to select and delete or edit this visuals?

0

HelixToolkit.Wpf.SharpDX MeshGeometryModel3D bounds size

Igor 9 years ago updated by anonymous 7 years ago 2

Hello guys!

I have one question about bounds property of MeshGeometryModel3D.


When I create new instance of MeshGeometryModel3D it has "bounds" property {Minimum:X:0 Y:0 Z:0 Maximum:X:0 Y:0 Z:0}. If I add to this model some geometry (sphere for example) with center in (500, 500, 0) and radius 5, my MeshGeometryModel3D will have "bounds" property like {Minimum:X:0 Y:0 Z:-5 Maximum:X:505 Y:505 Z:5}!


So my question is: is there any method to set "bounds" property of MeshGeometryModel3D by geometry, which this model contains? To receive in this particular example something like {Minimum:X:495 Y:495 Z:-5 Maximum:X:505 Y:505 Z:5}.


Thanks in advance!

0

Obj files import and cursor position in HelixToolkit.Wpf.SharpDX

Igor 9 years ago updated 9 years ago 2

Hello guys! Thank you for great toolkit!


I have 2 questions, maybe anyone can help me:


First: I want to import obj model (with textures) and display it in Viewport3DX. How to do it correctly?
Now I have next:

ObjReader Reader = new HelixToolkit.Wpf.SharpDX.ObjReader();
List<Object3D> objs = Reader.Read(ModelPath);

After reading objs variable contains near 1000 objects. What shall be the next steps to to display model in viewport?


Second: And one more question: How to receive cursor position in Viewport3DX. Is there some property like CursorPosition in HelixViewport3D?

Thank you in advance!

0

Cutting of LinesVisual3D doesn't word

Tadeusz Wilczek 9 years ago 0

LinesVisual3D doesn't properly cat by cutting plane. In my example code:


<ht:CuttingPlaneGroup x:Name="CuttingGroup" IsEnabled="True">

<ht:CuttingPlaneGroup.CuttingPlanes>

<ht:Plane3D Normal="0,0,1" Position="0,0,0"/>

</ht:CuttingPlaneGroup.CuttingPlanes>

<ht:CubeVisual3D Center="4,4,2" SideLength="8"/>

<ht:LinesVisual3D Points="0,0,-10,0,0,22" Thickness="3" ></ht:LinesVisual3D>

</ht:CuttingPlaneGroup>


When cuttingPlaneGroup is disabled it looks good:

Image 39


When cuttingPlaneGroup is enabled, line is one-side-visible and has wrong size and direction:

Image 38


0

Find mesh in model

Vladimir 9 years ago updated by anonymous 7 years ago 2

Hi all!!

I have the 3d model in Blender. It has several objects (meshes). Image 33


I export the model and load it into helix. How can I get a link to mesh by it's name? GetName() functions retun null.

Image 34