3d

WPF 3d — changing vertices in runtime (performance problem)

Inside a window I have Viewport3D which has ModelVisual3D with Model3DGroup inside. I configure 17 GeometryModel3D's. Meshes of all of them share the same Point3DCollection. The model is shown Ok. Then I change the Point3DCollection: private void btMutate_Click(object sender, RoutedEventArgs e) { Stopwatch sw = Stopwatch.StartNew...

3D modeling problem

Hello, I have a 3D modeling problem which is unrelated to 3D frameworks like XNA. In other words, I have to run the calculations myself (using some framework functionality is OK though). I have a set of N 3D points, let's call them p1 to pN. While these points are unknown, I know what their projected 2D location is (pp1 to ppN) when ...

3D modeling problem - revisited

This is a follow-up to a previous question I posted, this time with a better description, I hope. I have made a pair of glasses that have a pinhole camera attached onto them that records the person's eye movements. The camera sits below the eye and is hence looking UP at the eye. There is also a slight rotation around the Y-axis (i.e. t...

How to find the transformed point3d coordinates of a transformed ModelVisual3D

I want to click on a model in a Viewport3D and find the 3D coordinates of a model. I want the transformed coordinates. Suppose you have this in a Viewport3D: <ModelVisual3D x:Name="yellowTriangle"> <ModelVisual3D.Content> <GeometryModel3D> <GeometryModel3D.Geometry> <MeshGeometry3D Positions="-1,0,0 0,1,0 1,0,0" TriangleIndic...

3d Line graph in Java

Is there any good open source library in Java which can be used to draw 3D dynamic charts, like JFreeChart does it for 2D? ...

What we require to develope 3D game for iPhone

Hi to all, I am still stuck into problem of 3D game development for iPhone. I just want to know what are the basic things that we need to develop our iPhone 3D game.Like which engine is best or without engine also we can develop a FPS game? How to render image? How I will get the graphics or myself have to create a 3D image? I don't hav...

Scatter Plot 3D for Web Application

I am looking for a Scatter Plot 3D component for a Web application. Right now I am using JMathPlot (inside a Java Applet) to produce something like this: JMathPlot is fine, but is missing some required functionality (I am especially interested in having tooltips for the plot points). Are there any alternatives? Any interactive web te...

3D scatter plots and 3D graph visualization in Java

I'm looking to create views of scientific data in Java. The data is a mathematical graph consisting of points in 3D space. Are there any Java-based frameworks for creating 3D graphs in Java so that I can: 1. Plot points as spheres, 2. Connect some of the spheres with thin cylinders, 3. Draw flat triangles between some sets of three sph...

Line to Line Intersection In 3d Space

Hi, How to find the Line to Line Intersection In 3d Space ? Can anyone give me the equations? ...

Augmented Reality with iPhone 3GS and UIView

Hi, I am experimenting a bit with the iPhone 3GS and its magnetic sensors. It is quite simple to get the heading and the angle of the north pole seen from the top of the device. Also getting the position of the device itself via accelerometer is quite easy. But getting it all together deserves some math knowledge regarding vector calcula...

Determine Point Coordinates In 3D

I have a line that exists in 3d that is between two known points: {X1, Y1, Z1} and {X2, Y2, Z2}. I also know that I am a certain distance for one of the points: D How can I determine what the coordinates of the point where I am after moving D from {X1, Y1, Z1}? Thanks ...

3D Rotation in OpenGL and Local Rotation

I am trying to prototype a space flight sim in OpenGL, but after reading many articles online I still have difficulty with getting the rotations to work correctly (I did have a quaternion camera that I didn't understand well, but it drifts and has other odd behaviors). I am trying to do the following: 1) Local rotation - when the user ...

Library to embed 3D view in a swing app ?

I'm currently searching for a 3d library that I could embed in a Swing application. This library doesn't necessarily have to be a huge thing as I mainly intend to give a 3D representation of some shapes, and certainly rotate around them. My main concern is to get something as easy to set up and to deploy as possible. Do you have any c...

C++ libraries for Image Segmentation

Hi, I am going to do a project in Data Mining related to image clustering (in C++) .I am looking for a powerful library which is helpful in image processing, linear algebra and 3d graphics. Any thoughts? Thanks. ...

Get z depth from 4 vertices of a face

How can I z-order the faces of a 3d object just using the 4 vertices of each of its faces? I've tried using a z-buffer where I store the average z value of each face; this works great most of the times, but fails when an object have large and small faces. I'm building a small 3d-engine in flash, just for the fun of learning, so the only...

Is there any point in using an index buffer with a texture in OpenGL ES (Android)?

I'm using OpenGL ES to display some objects exported from Blender. Blender provides a list of vertices, a list of the face indices and a list of the 2d texture co-ordinates. Within Blender, and I believe generally in OpenGL, the texture co-ordinates map to each vertex described in the index array. I suppose I have two questions: I...

Looking for 3-D rotating Cube-ActionScript 2.0 code

We are looking for the Flash ActionScript 2.0 code for a 3-D rotating cube to be used to display ads on a website. Any ideas where to start? ...

Determine position in front of 3D plane (cartesian math)

Hi there, I have a planar element in 3D space that I've rotated on the x, y and z axis. I'm positioning a 3D camera in front of the planar but I need to find a way to calculate the x, y, z of the camera. I'm trying to figure out how to place the camera at x distance from the planes face. There's obviously a bit of trig involved but for...

Strange Clipping Issue in OpenGL

Hey all, I am very very new to OpenGL, so please bear with me. :) I'm working through NeHe's OpenGL tutorials, and I have developed my own version of Lesson 5, in which you rotate a 3D shape around the origin. I'm not sure what I did wrong, I copied the code nearly line-for-line, but I'm seeing strange overlaps in my surfaces. Does anyo...

I want to make a simple 3D game using openGL, where should I start?

I find that I learn best by example. Is there a good website or codebase that shows how event handling, collision detection, modeling, and basic 3D drawing works? The game I'm trying to begin with is a simple racing game where the user controls a small space ship and navigates through channels, asteroid fields, space colonies, and vario...