3d

Calculate a Vector that lies on a 3D Plane

I have a 3D Plane defined by two 3D Vectors: P = a Point which lies on the Plane N = The Plane's surface Normal And I want to calculate any vector that lies on the plane. ...

3D and AI basics. The foundation before the coding.

Hi, everyone. (If you have the time and patience:) I've recently made the decision to study programming seriously and I'm about to order TAOCP and Concrete Mathematics to begin my studies (please don't get caught up on this). I'm very much interested in learning and understanding how 3D works but I'm aware that if I plan to do it right...

WPF 3D - rotate a model around it's own axes

Suppose I have a simple WPF 3D scene set up with a single rectangle rotated -45 degrees around the X axis like so: <Viewport3D> <Viewport3D.Camera> <PerspectiveCamera Position="0,0,4"/> </Viewport3D.Camera> <ModelVisual3D> <ModelVisual3D.Content> <DirectionalLight Color="White" Direction="-1,-1,-3...

C# Hook Forms / Windows / Dialogs etc. (via HWND?) to Capture Video Buffer (D3D Device?)

I am looking to create a very simple C# application which runs Full-Screen in Direct3D, and is able to grab the Desktop 'scene', mapping each Window from the Desktop to a Textured Polygon in my D3D Scene... I'm hoping to create a simplistic "3D Desktop" type of application as an experiment, and I'm wondering if there is a specific metho...

How to automatically spin a 3d hsitogram in matlab?

Hi, I have a 3d histogram in matlab. Is it possible to automatically spin it i.e to get the 3d effects. I want to show it as a video in PowerPoint where the 3d histogram swivels. thanks ...

3D Animation Rotating and Translating simultaneously in WPF

Hi, I have ModelVisual3D of a cube. I want to translate and rotate it at the same time. I wish the center of rotation to be in the middle of the cube(the cube rotates around its own axis). But when I try to do this applying both transformations the effect is not what you would expect. Since the object is translating the center of rotati...

Any AS3 alternatives to Colin Moock's approach to visible width/height of DisplayObject?

Has anyone got any alternatives to what Colin Moock has coded to GET VISIBLE WIDTH/HEIGHT OF A DISPLAY OBJECT in ActionScript 3? That esp. in perspective of DisplayObjects that have 3D transforms applied and visible dimensions of which you need to consider for a calculation. Any leads would be appreciated. ...

Rotating a full 360 degrees in WPF 3D

Hi, I have a ModelVisual3D of a cube and I want to animate it to rotate around its axis for 360 degrees. I make a RoationTransform3D which I tell to rotate 360 but it doesn't rotate at all, also if you say 270 degrees it rotates only 90 degrees but in the opposite direction. I guess he computer calculates the "shortest path" of the rota...

Display 360 Image in Silverlight 3.0 (Not Panorama)

I have a lot of images taken from a 360 camera which I would like to be able to display in Silverlight 3. They are NOT regular panorama images. The camera which took the image actually creates a distorted jpeg that becomes undistorted once wrapped around a sphere as a texture. I have desktop software that will allow viewing of the image ...

Easiest way to create and render 3D model by rotating a 2D silhouette

I have a black and white 2D drawing of a silhouette (say, a chess piece) that I would like to rotate around an axis to create a 3D object. Then I want to render that 3D object from multiple angles using some sort of raytracing software, saving each angle into a separate file. What would be the easiest way to automatically (repeatedly) ...

What language should I learn to prepare for WebGL?

I am thinking about making a 3D game with WebGL (just for conceptual purposes, for now), but all I have never done anything in 3D and have only programmed in PHP for the most part. From what I understand, WebGL is Javascript, which I use heavily in all of my projects, but it is also my understanding that it is very different from regula...

Vectors rotations 3D camera tiliting

Hopefully easy answer, but I cannot get it. I have a 3D render engine I have written. I have the camera position, the lookat position and the up vector. I want to be able to "tilt" the camera left, right, up and down. Like a camera on a fixed tripod that you can grab the handle and tilt it it up, down, left right etc. The maths stum...

Direct3D Mesh with combination of lines and triangles

I need to create a Direct3D mesh consisting of some vertices (generated at run-time) which I need rendered as a combination of LineList and TriangleList. i.e. some vertices are rendered as a LineList and some of them as a TriangleList. How can I create this Direct3D mesh? ...

Trying a tiny winy 3D classes for iPhone

Ok, I'm trying to save some time creating some generic classes to draw objects in the 3D space. I created a Object3D class with the properties x, y, and z. The thumbnail3D is a "son" of Object3D using inheritance. Vertex3D is a struct with a GLfloat for every coord. The problem is when I try to compile the method initWithPosition:( V...

Direct3D: What does the stream number do in device->SetStreamSource?

Where else is the stream number used other than in these two places: GetStreamSource and SetStreamSource? ...

Silverlight 4 and real 3d support

Hello! Will silverlight 4 have real 3d support? Like, porting wpf3d classes to silverlight. it would be great if they do so. I think it could bring major improvement on this technology.. look at flash3d, java3d, papervision, googleo3d ...

Why I am seeing my opengl es like this?

Seem like I'm not clearing the image correctly or something. On the other hand the view takes to much to render using the cos function. I appreciate if you can guide me to optmize the code with best practices. Thanks And I would like to share with you this link: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-tabl...

Normal of an equilateral triangle that has been arbitrarily transformed in 3D space

I have an issue that I can't quite seem to find a starting point on; I'm not even sure I can describe it well enough to get an answer. I need to find the normal of an equilateral triangle in 3D space without knowing the points of the triangle beforehand. Think about taking a photo of a triangular "yield" street sign from any angle, and...

What is a good 3D library for Adobe Flex?

I need a 3D library that works well with Flex... NOT Flex Builder - the free Flex SDK. ...

Creating a 3D Carousel in Silverlight

Hi, I would like to make a 3D carousel of planes which have videos or images used as textures. I know this can be done in WPF but I'm interested to know if such a thing is possible in Sivlerlight and how much different and more(less) difficult would it be to create as opposed to the one in WPF. Are there Viewport3Ds, MeshGeometries, Mo...