3d

the class RotateTransform3D

Hi All, I have a 3D cone (called as "conemodel") produced by a method. This cone will be rotated in C# code and added to XAML Viewport3D group after rotated by an angle. Code snippet : public static void CreateTriangleFace(Point3D p0, Point3D p1, Point3D p2, Color color, Viewport3D viewport3d) { ...

Should I use vector or raster graphics in Flash CS4 when manipulating 3d artwork?

I've got a project that heavily utilizes the new 3d artwork tools in Flash CS4. My question is has anyone done any tests to see if Flash is quicker with raster or vector graphics? My SWF really bogs down on slower machines. Thanks! ...

what are the recommended methods to create online 3d gaming engine ?

i want to create an online 3d game of roads and city buildings (supposed to have good graphics). i would prefer that it will work for all major Os's (linux,windows,mac). I know that for example adobe shockwave can do that, but unfortunately there is no linux support. ...

Find X/Y/Z rotation angles from one position to another

I am using a 3D engine called Electro which is programmed using Lua. It's not a very good 3D engine, but I don't have any choice in the matter. Anyway, I'm trying to take a flat quadrilateral and transform it to be in a specific location and orientation. I know exactly where it is supposed to go (i.e. I know the exact vertices where the...

3D Surface normal extractor

Hi All, I have a 3D closed mesh object that has 3D 65.000 position coordinates. For lighting purposes, I need a 3D surface normal extractor. Could you help me to have it. Thanks. Richard ...

Trailing/Smeared WPF 3D Drawings on Mouse Move event using ScreenSpaceLines3D (C#)

Hi, I'm having a problem when drawing a 3D line on MouseMove event in WPF. The drawing seemed to be trailing (like mouse cursor-trailing effect)/smeared in Viewport3D, and it doesnt 'clean' the previous drawing (from previous mouse move) I'm using ScreenSpaceLines3D from CodePlex to draw the 3D line on top of a 3D cube. I want it to b...

How can I find the angular coefficient of a segment in a 3D coordinate system?

Given 2 points A(x1,y1,z1) and B(x2,y2,z2), what is the equation to calculate their angular coefficient? I wish a quite simple equation like this one: m = (y2 - y1) / (x2 - x1) used to calculate the angular coefficient into a cartesian system. ...

How can I find a point placed between 2 points forming a segment using only the partial length of the segment?

Given 2 points A(x0,y0,z0) and C(x2,y2,z2) forming a segment of length "k", what is the equation to find a point C(x1,y1,z1) placed at "k-1" distance from A? ...

How to pan in 3DTools:TrackBallDecorator

Hi All, I want to pan a 3D object in 3DTools:TrackBallDecorator. It is possible rotating and zooming in 3DTools, but I don't know how to pan. I use VS 2008 C#. My project has XAML codes. Please, help !... Thanks ...

2D vector to 3D vector

Hi guys I'm trying to make a circle across a plane using sin and cos. While it works all well when its aligned with the x, y, or z axis, I need something more dynamic. Is there any way to transform a 2D vector to a 3D one using a plane normal, or perhaps another solution? Thanks in advanced. ...

WPF 3D - How can I save and load a Camera view?

I have a WPF 3D scene where I can pan, rotate and zoom using the TrackballDecorator from the 3DTools library. I would like to save the camera settings (transformation) and be able to re-apply them when the application restarts the next time (so the view is restored). I tried to save each individual value of the Camera: private void Sav...

Adding a child to Viewport3D asynchronously gives "This API was accessed with arguments from the wrong context."

When I try to add 3D-content to a Viewport3D, asynchronously, this results in "This API was accessed with arguments from the wrong context." in a TargetInvocationException. The 3D-content is generated from the data of a 3D-scanning device. The communication&calculations needed for that are done in a separate thread. First, I tried to a...

How to plot a 3D plot in MATLAB?

I have three parameters x,y and t. But the problem is my file structure. My files are named as: e_x_y.txt t_x_y.txt where e_x_y.txt has the error for particular values of x and y and t_x_y.txt has corresponding time values. I need to plot the values in e_x_y.txt on a x vs y vs t graph. What is the best way to do that? I know what ...

how to extrude a path in 3d ?

Hi, I'm trying to extrude a path in 3d. Nothing fancy yet, just following some points and using a regular polygon for 'tubing'. I'm using Processing for now to quickly prototype, but will later turn the code into OpenGL. My problem is rotating the 'joints' at the right angles. I think I have a rough idea how to get the angles, not sure...

SIMPLE 3D rendering in C#

Hi All, I am a visual person, if I can visualize something it often makes more sense to me. Is there a simple way to render data in 3D to use for simple visualizations? What I effectively would like to do is the following: I have a 3 dimensional Array of Int32's: Int32[,,] data = new Int32[256,256,256]; I fill this array with data,...

Connecting points to make a triangle

If I have a set of 3d points (AKA point cloud) what is the best way to determine the groups of 3 points (triangles) I should make, to create a surface reconstruction? ...

How can I bend a a display object ?

I want to make collage, Example : http://www.as3.ro/p1%5Fanim4.swf (1.4 mb); I want to bend images using as3. ...

Shockwave How Would I Start?

Hi all, I was just wondering, how would I go about creating a browser based 3D racing game to be a shockwave game? Any links and tutorials would be very helpful Thanks ...

Euler (Tait-Bryan) to WPF Transformation3D. Is it possible

I'm trying to use WPF integrated 3D classes to rotate a WPF 3D model. I'm stuck. I'm looking for the 10 or so C# instructions which in pure 3D WPF would rotate a model based on Euler's angles as input (yaw, pitch, roll): RotateTransform3D myTransform = TheSolution (yaw, pitch, roll) I'd then use myTransform to rotation myModel (myMod...

Rotation of camera used for perspective projection

Hi, I am trying to perform a simple perspective projection of various 3D structures, defined as a plurality of 3D polygons (different z's), each comprising a plurality of points. The structure will be viewed by a number of different cameras that I define. These cameras are defined by placing a world camera(eye) at (0,0,z) in my world co...