3d

Ambient Occlusion Shader Effect in WPF?

Hello All, I guess this is a multi-part question. I can import a 3D model into my WPF application but how do I apply an ambient occlusion shader effect to it? I know with .NET 3.5 SP1 you can do custom effects but that's limited to pixel shaders and doesn't include vertex shaders. I think i can do this with an XNA application but Im n...

plot a 3 axis graph as a mesh

I have seen 3d surface plots of data before but i do not know what software i could use to make it. I have 3 series of data (X, Y, Z) basically i want each of the rows on the table to be a point in 3d space, all joined as a mesh. The data is currently csv, but i can change the format, as it is data i generated myself. Can anyone help ...

Canvas3D and Swing

Hi, This question is regarding the performance issue in Mac OS X Canvas3D object is embedded in a JPanel; then the panel is integrated with the rest of the Swing-built application. Within that Canvas I am rendering a simple cube by applying certain transformations. At the initial launch It works fine. But when i try to resize the wind...

JCanvas3D vs Canvas3D

Hi, Can anyone please tell me the issues that we face when using JCanvas3D instead of Canvas3D? How to achieve transparency using JCanvas3D? Regards, hariprasad ...

Free java 3d engine

Whats the best 3D game engine available for java? I am looking for something that has a good set visual development tools. I have checked out the list available on wikipedia: http://en.wikipedia.org/wiki/List_of_game_engines But I can't figure out the tool set provided by each engine and which free java 3d engine has the best toolset....

Best 3D Graphics Engine for .NET

I've been thinking about tinkering with 3D graphics programming in .NET. In the past, I've thought about Truevision3D, and XNA, but I've not used either of these. I scanned Stackoverflow for the exact question, but neither of the (almost) relevant question (such as this question about rendering graphics, and this question about Learni...

Finding Rotation Angles between 3d points

I am writing a program that will draw a solid along the curve of a spline. I am using visual studio 2005, and writing in C++ for OpenGL. I'm using FLTK to open my windows (fast and light toolkit). I currently have an algorithm that will draw a Cardinal Cubic Spline, given a set of control points, by breaking the intervals between the po...

Applying Transforms to 3D models - Normals pb.

Hello, I'm trying to apply a transform to a 3D object in a STL File (without creating a structured mesh object). Here is how I proceed: I read the normals and faces information one by one in the STL file, apply my transform to each vertex and to the face normal and write back the new computed values in another STL file. The vertex are OK...

3D laser scanner capturing normals?

The Lab university I work at is in the process of purchasing a laser scanner for scanning 3D objects. All along from the start we've been trying to find a scanner that is able to capture real RAW normals from the actual scanned surface. It seems that most scanners only capture points and then the software interpolates to find the normal ...

OpenGL: Multiple user vector by modelview matrix?

Is there a way to make OpenGL transform a general vector I give it with the current modelview matrix and get the result back? The obvious way is to query the modelview matrix and do the multiplication myself but I am almost sure there should be a way to make OpenGL do this for me. ...

Direct3D Geometry: Rotation Matrix from Two Vectors

Given two 3D vectors A and B, I need to derive a rotation matrix which rotates from A to B. This is what I came up with: Derive cosine from acos(A . B) Derive sine from asin(|A x B| / (|A| * |B|)) Use A x B as axis of rotation Use matrix given near the bottom of this page (axis angle) This works fine except for rotations of 0 (which...

Calculating rotation along a path.

Hello, I am trying to animate an object, let's say its a car. I want it go from point x,y,z to point x,y,z. It moves to those points, but it appears to be drifting rather than pointing in the direction of motion. So my question is: how can I solve this issue in my updateframe() event? Could you point me in the direction of some good r...

gpu, old hardware, 3d acceleration and a lib

i am writing a 2d lib which will have 3d acceleration but i'd like to do it in a way that it will efficiently run on older HW. Possibly typedefs to hide options/functions that your targeted mode does not support. (also there may be emulation func turned on) What are some of the things older HW do? here is a list of questions and things ...

Simple way to interpolate between points in 3D space to form a smooth surface

I'm trying to come up with a simple and efficient way to create a smooth surface which intersects a number of given "sample" points. For any X,Y point on the surface, I identify up to 4 sample points in each of the 4 directions (the next higher and lower points on the X, and then the Y axes). Given this point, I want a way to compute a...

Most efficient algorithm for mesh-level, optimal occlusion culling?

I am new to culling. On a first glance, it seems that most occlusion culling algorithms are object-level, not examining single meshes, which would be practical for game rendering. What I am looking for is an algorithm that culls all meshes within a single object that are occluded for a given viewpoint, with high accuracy. It needs to be...

Is there an easy way to model a heart shape in 3D?

I want to model a heart shape in 3D with as less code needed as possible and without using external model files. In 2D, I can use some bezier curves to draw a heart shape, and I could extrude this to get a simple 3D heart shape, but this doesn't look like the shape I want. The bottom of the heart should be a peak, the upper part should ...

3D surface Reconstruction algorithm

I have a 3D surface ( such as a cone). It is projected to a 2D plan in the form of contour, meaning that different Z will have different lines on 2D plan. The problem is from the contour, how to recover the 3D surface by using interpolation? We only know about the z difference between different contor lines. ...

3d files in vb.net

Hi, I know this will be a difficult question, so I am not necessarily looking for a direct answer but maybe a tutorial or a point in the right direction. What I am doing is programing a robot that will be controlled by a remote operator. We have a 3D rendering of the robot in SolidWorks. What I am looking to do is get the 3D file into ...

Calculating a LookAt matrix

I'm in the midst of writing a 3d engine and I've come across the LookAt algorithm described in the DirectX documentation: zaxis = normal(At - Eye) xaxis = normal(cross(Up, zaxis)) yaxis = cross(zaxis, xaxis) xaxis.x yaxis.x zaxis.x 0 xaxis.y yaxis.y zaxis.y 0 xaxis.z ...

Getting absolute position and rotation from inside a scene graph?

So I have run up against this problem a few times: I have some object in my 3D Scene Graph which is a child of some other object. Lets call them c (Child) and p (Parent). c's position is defined relative to p. Thus c may have a position (1,0,0) but of course, due to p having some other position, say (1,2,3), it is not actually rendered...