For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!

Database view at run time
mateovidro wrote at 2012-04-13 22:48:
Hi all,
Good job, I am new to the development
and started with WPF in
C #, I can create a small application
and export .obj files
but:
1. When loading a file. obj
will change the texture Helixviewport3d
blue. Where I can change to white
by default?
2. When I load the
obj. of Viewport3D. What is the best
way to save the file, some text and some
trace of the line? (Access, SQL, compact, etc)
3. Where do I get an example
to make this data link (code) ?
Thanks for the help
Novice
objo wrote at 2012-04-14 00:23:
1. The ObjReader class has a property DefaultColor where you can set the color of elements that don't have materials assigned.
The ObjExporter should export the materials defined in your Model3D. I think it supports all kinds of materials, for complex materials (e.g. gradients) it will export an image file.
2. Currently the ObjExporter only supports writing to files (the .obj itself could be written to a stream, but it also needs to write material files...) If you just need to persist your model - try serializing the Xaml of the Viewport3D (see the XamlExporter class).
3. Sorry, I have not planned examples with databases in this library.
mateovidro wrote at 2012-04-14 14:20:
Thanks Objo i'm really grateful
for your help
mateovidro wrote at 2012-12-07 00:59:
Hi, objo
I already Viewport3D serialize XAML at runtime. I try to show my models in a simple application,
I just want to save and load models with some additional text. This is my code :(btn events)
private void button1_Click(object sender, RoutedEventArgs e) { Viewport3D viewport = this.view1.Viewport; object obj = viewport; FileStream fs = new FileStream(@"C:\test.txt", FileMode.Create, FileAccess.Write); string savedview = XamlWriter.Save(obj); byte[] byts = System.Text.ASCIIEncoding.ASCII.GetBytes(savedview); fs.Write(byts,0 ,byts.Length); fs.Close(); }
private void button2_Click(object sender, RoutedEventArgs e) { FileStream fs = new FileStream(@"C:\Users\MateoLab\Documents\test.txt", FileMode.Open, FileAccess.Read); Viewport3D vp = XamlReader.Load(fs) as Viewport3D; //Move the child visuals to a temporary collection. List<Visual3D> items = new List<Visual3D>(); foreach (Visual3D visual in vp.Children) { items.Add(visual); } //"Detach" the visuals from the original parent. vp.Children.Clear(); //Now, put it in the destination viewport. foreach (var item in items) { view1.Children.Add(item); } }
thanks

use CuttingPlanes but completely
zbw911 wrote at 2013-08-21 11:01:
<h:HelixViewport3D x:Name="view1" CameraMode="Inspect" CameraRotationMode="Trackball" ModelUpDirection="0,1,0">
<h:DefaultLights/>
<h:CuttingPlaneGroup x:Name="cuttingGroup1" IsEnabled="True">
<h:CuttingPlaneGroup.CuttingPlanes>
<!--<h:Plane3D Normal="-1,-1,0"/>-->
<h:Plane3D Normal="0.6149556716972341,-0.6228702238113956,-0.48359301704692287"/> <!--</h:CuttingPlaneGroup.CuttingPlanes>-->
<h:FileModelVisual3D x:Name="model1" Source="Source/HelixToolkit.Wpf.Tests/Models/obj/cornell_box.obj"/>
</h:CuttingPlaneGroup>
</h:HelixViewport3D>
zbw911 wrote at 2013-08-23 02:59:
objo wrote at 2013-09-05 08:08:

SharpDX container structure
eonxxx wrote at 2014-03-06 22:48:
in sharpDX, is there a container structure, like <ModelVisual3D> in Media3D or >SortingVisual3D> in HelixWPF?
i would like to be able to layer/switch on off groups of MeshModels and maybe lights, etc.
something like:
<layer1>
<model1/>
<model2/>
<model3/>
</layer1>
<layer2>
<model4/>
<model5/>
<model6/>
</layer2>
<layer3>
<model7/>
<model8/>
<model9/>
</layer3>
maybe am I'm too blind to see?bye
eonxxx
Lolipedobear wrote at 2014-03-07 07:09:
eonxxx wrote at 2014-03-07 19:57:
Gonna check it.

Adding thickness to a PieSliceVisual3D
caffeine31 wrote at 2014-08-17 03:29:
What I need is a PieSliceVisual3D with some sort of thickness or depth to it. I was looking around and it seems like MeshBuilder has something for extruding shapes, but I couldn't find anything else.
How would I thicken or extrude a PieSliceVisual3D? Are there any examples for doing this?
objo wrote at 2014-08-18 13:26:
MeshBuilder
. I don't think there is an example so I have added
https://helixtoolkit.codeplex.com/workitem/10069
About AntiAliasing
lizichao wrote at 2011-12-14 03:02:
Hello,I wonder how set antialiasing effect of the ScreenSpaceLines3D object.Thanks for your time and Helix 3D Toolkit is so great!
objo wrote at 2011-12-14 08:39:
We cannot set antialiasing hints in WPF3D as far as I know (I guess you compare to GL_POLYGON_SMOOTH/GL_LINE_SMOOTH in OpenGL or D3D multi-sampling)
Elemental wrote at 2011-12-15 14:25:
AntiAliasing gets activated automatically if you have proper hardware and Vista or Win 7.
As far as I know, there is no WPF AntiAliasing on WindowsXP.
Have a look at this post:
http://geekswithblogs.net/JeffFerguson/archive/2010/02/05/wpf-rendering-tier-requirements-and-capabilities.aspx
lizichao wrote at 2011-12-16 00:44:
Elemental wrote:
AntiAliasing gets activated automatically if you have proper hardware and Vista or Win 7.
As far as I know, there is no WPF AntiAliasing on WindowsXP.
Have a look at this post:
http://geekswithblogs.net/JeffFerguson/archive/2010/02/05/wpf-rendering-tier-requirements-and-capabilities.aspx
Ok, thanks.We cannot decide the hardware of other computer so i give up.
objo wrote at 2011-12-19 09:20:
I have used the following registry setting to enable antialiasing in XP
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Avalon.Graphics] "MaxMultisampleType"=dword:00000004
Maybe the same setting can be used to disable antialiasing in Vista/7 (not tested)

Rectangular box with different picture on each face
I currently use a 2D rectangle, but I'd like it to have some width so it doesn't disappear at the wrong angle. I've tried using two rectangles with some filler, but the pieces separate oddly when the movement animation begins.
The front and back faces would be the same (a piece portrait) and the filler is unimportant. The picture can widely vary, as the size of the piece is scaled to the picture's ratio.
What visual should I use? How would I set this up?

Change Rotation-Handling to MouseLeftButton
christianw42 wrote at 2013-03-12 15:27:
is there a simple way to rotate the camera bei clicking left? Where's the place to add/change this?
Thanks a lot for help and for that amazing framework :-)
Christian

Making a hole like a circle in BoxVisual3D element ?
maruf_bd wrote at 2013-07-25 07:06:
I want to make a hole like a circle inside BoxVisual3D element by CuttingPlaneGroup . Such as a BoxVisual3D with (length=6,width=6,height=20) and I want to cut a circle like hole inside that BoxVisual3D .
Thanks.
CodeWithMe wrote at 2013-07-25 14:25:
Denis.

Set Camera to Up (or other side) after Zoom Extents
mcrxb wrote at 2012-02-09 13:57:
Is there a method or property that I can use to set the camera to up after I zoom extents (which causes the camera to rotate based on the bounding box)?
mcrxb wrote at 2012-02-09 14:26:
After reviewing the UpDirection demo I was able to get this to work. Thanks for the great toolkit.
Customer support service by UserEcho