3d

Curve Fitting 3D data set

The curve-fitting problem for 2D data is well known (LOWESS, etc.) but given a set of 3D data points, how do I fit a 3D curve (eg. a smoothing/regression spline) to this data? MORE: I'm trying to find a curve, fitting the data provided by vectors X,Y,Z which have no known relation. Essentially, I have a 3D point cloud, and need to find...

Finding the farthest point in one set from another set

My goal is a more efficient implementation of the algorithm posed in this question. Consider two sets of points (in N-space. 3-space for the example case of RGB colorspace, while a solution for 1-space 2-space differs only in the distance calculation). How do you find the point in the first set that is the farthest from its nearest ne...

reverse perspective projection

I'm using worldview_inverse * (projection_inverse * vector) to transform screen space coordinates into world space coordinates. I assumed that (x,y,1,1) would transform to a point on the far plane, while (x,y,-1,1) transforms to a point on the near plane, and connecting the line I can query all objects in the view frustum that ...

3D Wall effect with WPF

I am going to implement the 3D Wall effect with WPF, could you recommend some good website where can download some 3D effect samples with WPF, then I can study it. Thanks. ...

robust and flexible 3d data structure

I'm looking for a concept to store (in 3 dimensional euclidian space) faces, edges and vertex such that information (about relation) isn't duplicated queries for adjecent and neighboring faces/edges/vertex are fast the mesh is not limited to connected faces of the same winding definitions neighbor of a face: the face that shares a...

3D models on HTML page

I have 3D CAD model that I want to show on a web page. I'd like to show it in a form like a <img> tag (e.g. inline with everything else rather than as a separate page) and I want the visitor to be able to rotate the model to view it from different perspectives. What options do I have? Things I'm thinking of/looking at VRML 3DXML flas...

Good library for 3D math in C#?

I'm writing a tool that is going to be used to process a bunch of 3D data, doing things like rotating objects, translating, scaling and all that good stuff. Does anyone know of a good library that already does some of this common 3D stuff? I'm not interested in visualizing the data at the moment, and am primarily interested in performin...

Smooth 3D spline

REF: http://stackoverflow.com/questions/588438/curve-fitting-3d-data-set Does anyone know how to construct a smooth 3D spline with 3D control points? If you look at the reference provided above, the red points will serve as the control points for the spline (which is supposed to be a best-fit representation of the 3D point cloud). ...

Best approach for game animation?

I have a course exercise in OpenGL to write a game with simple animation of a few objects While discussing with my partner our design options we've realized we have two major choices for how the animation is going to work, Either Set a timer for a constant interval, say 30 msec, when the timer hits, calculate where objects should be...

Server Sided 3D rendering

My questions have to do with this very interesting article: http://www.techcrunch.com/2008/07/09/otoy-developing-server-side-3d-rendering-technology/ What they say: In this article it is claimed that this company can do amazing server sided 3D rendering all the while displaying the output in the browser using Flash, Ajax, Java or Active...

3D flex, rotate around a random point for a container (with partial solution!)

I'm trying to find the best way to rotate a container (or anything for that matter) using the matrix3D features in flash 10 for flex. I have managed to get a container to rotate around a point that is not its registration point but I’ve only managed this by turning off the clipping on a container then placing the contents somewhere othe...

Flying in a 3D game?

I'm wondering why so few 3d games have a mechanism that allows the player to fly over the map and land down when he likes. Is this very hard to accomplish in a 3d game, or otherwise technically unfeasible? ...

MS3D parsing: boneID == joint ID?

I'm in the planning stage of a MS3D parser and looking through the specs I see that a vertex struct has a boneId variable. Is a "bone" a synonym of a joint? So, is that boneId variable then an index of the joints array? If not, then what is a bone and where does it come into play? I was always under the impression that a bone connects tw...

Problem with light and depth in OpenGL

glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_MODELVIEW); ifstream myFile("Coordinates.txt"); if (!myFile.is_open()) { cout << "Unable to open file"; exit(1); // terminate with error } // Light values and coordinates float ambientLight[] = { 0.3f, 0.3f, 0.3f, 1.0f }; float diffuseLight[] = { 0.7f, 0.7f, 0.7f, 1.0f }; float specular[...

Does anyone know of a good tutorial for the basics of 3d graphics programming (from scratch, not Direct3d or OpenGL)

I'm looking for some material on how homogeneous coordinates, perspectives, and projections work in 3d graphics on a basic level. An approach using programming would be stellar. I've been searching around and my searches are convoluted with OpenGL, Direct3d, and material more concerned with the mathematical proofs than the actual applica...

3d elements as items in a WPF ListBox

Hello, I'm wondering if anyone knows if it's possible in XAML to have a ListBox whose DataTemplate defines the ListBoxItem as a 3d element. Something along the lines of: <ListBox x:Name="lst3D" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <ListBox.ItemTemplate> <DataTem...

DirectX application on 64 bit windows

I am developing a WPF application where the 3D part is handled by DirectX 9 (a lot of 3d that did not run fast enough using WPF). The problem is the application is released with "Any CPU" as configuration and when a user runs it on a 64 bit windows, the direcX part crashes (System.BadImageFormatException). Apparently the dlls included ...

How does one convert world coordinates to camera coordinates?

I have an input 3D vector, along with the pitch and yaw of the camera. Can anyone describe or provide a link to a resource that will help me understand and implement the required transformation and matrix mapping? ...

WPF 3D - Why does my ImageBrush not render??

I have a 3D plane which I'm trying to render with an ImageBrush as it's DiffuseMaterial.Brush. If i use a SolidColorBrush then the plane appears fine but I get nothing at all with either an ImageBrush or a VisualBrush. Can anyone tell me why? Here's the code. <ModelVisual3D> <ModelVisual3D.Transform> <RotateTransf...

Programming 3D animations?

What are the different ways to handle animations for 3D games? Do you somehow program the animations in the modeler, and thus the file, than read and implement them in the game, or do you create animation functions to animate your still vectors? Where are some good tutorials for the programming side of this? Google only gave me the mode...