3d

Direct3D: Vertex color component vs. IDirect3DDevice9::SetMaterial

What are the differences between the two approaches to coloring my Direct3D model? ...

How to make a 3D UI for an application ?

I'm building an application and I'd like its User Interface to be 3D, most probably a cylinder. The user would see the cylinder[Horizontally laid] and the cylinder's curved surface would have the buttons and any other controls that need to be placed. The cylinder needs to rotate and later, I'd like to add some other effects to the cylin...

How can I retrieve a MovieClip 3D position via JSFL

I want to retrieve the x,y and z positions of a MovieClip with 3d transformations applied using jsfl. Once a clip 'enters 3d mode'(has 3d transforms applied), the usual properties(x,y) go to 0. I have noticed that there is a Copy Properties option in the Timeline context menu. I only need 3d position, but that seems to get all I need a...

Library that supports KML?

I'm looking for a library that can be used to develop an application that supports KML. Basically I'm looking for what Google Earth does for 3D visualizations using KML. Is there such a library? ...

Fixing LOD gaps, T-junctions

I'm creating a heightmap renderer. One of the examples for solving gaps when doing LOD I found is this: (from Game Programming Gems 2 - Greg Snook - Simplified Terrain using Interlocking Tiles) Wouldn't this still produce a gap, if the three vertices encircled with red were not co-linear? Shouldn't the middle triangle be split into t...

look for evaluation function in tictactoe 3d game

I'm trying to apply minimax algorithm for the game tictactoe 3D in c++. I'm struggling to find a good evaluation function for it. Does anybody know where has good resource to find the evaluation function? Thank you. ...

Detecting the axis of rotation from a pointcloud

I'm trying to auto-detect the axis of rotation on a 3d pointcloud. In other words, if I took a small 3d pointcloud, chose a single axis of rotation, and make several copies of the points at different rotation angles, then I get a larger pointcloud. The input to my algorithm is the larger pointcloud, and the desired output is the sing...

Java 3D-API that uses JOGL

Can someone recommend me a package similar to JCollada for 3d rendering that is based on JOGL or point me to a place where I can obtain JCollada? The original site for JCollada has a SVN link that is no longer working (empty svn repositry). ...

In OpenGL vertex shader, gl_Position doesn't get homogenized..

Hi everyone, I was expecting gl_Position to automatically get homogenized (divided by w), but it seems not working.. Why do the followings make different results? 1) void main() { vec4 p; ... omitted ... gl_Position = projectionMatrix * p; } 2) ... same as above ... p = projectionMatrix * p; gl_Position = p / p.w; I think ...

In MAYA 2009, is it possible to capture the cube rotate event?

I need to call a function ( Maya-Python ) based on cube rotationX. For that I have to capture the event, programmatically. I tried using while loop but It stucks in the loop, Nothing can be done in that time. I tried theading (python), still same. Can it be done this or other way? If yes, How? Maya 2009 in Windows XP Some failed code...

Display points with (x, y, z) coordinate in 3D on an iPhone?

Hello, I have 40 points with (x, y, z) coordinate in my iPhone app. For now I just NSLog them. But I'd like to display them in... 3D! How can I do that? Do I have to use openGL ES? What are the others possibilities (if there are any)? I've never used 3D in programming... is this a difficult thing to do? Thanks ! ...

C# book about intersection 3D surface and 2D plane

Could you advise me for a C# graphics programming book about intersection 3D surface and 2D plane. ...

Generate "spherical" panorama in 3D software

Lets say I have a 3D model of room in some format. How can I programmatically render "spherical" panorama from some point of room (kind of like the "Google street view" uses)? I suppose it can be done in Blender? It's better if it will be done in Linux. ...

Sprite in Papervision 3D

Hi, What is a sprite in papervision 3D? thanks ...

uniform generation of points on 3D box

Hello: I would like to generate random points on a 3D box defined by its (minx, miny, minz) and (maxx, maxy, maxz) corners. I was thinking of generating a random point inside of the box and then somehow projecting it onto one of the box sides. However, I don't have explicit plane information for the box sides and this seems like it will...

uniform generation of 3D points on cylinder/cone

Hello: I wish to randomly and uniformly generate points on a cylinder and a cone (separately). The cylinder is defined by its center, its radius and height. Same specifications for the cone. I am able to get the bounding box for each shape so I was thinking of generating points within the bounding box. However, I'm not sure how to proje...

Optimizing a 3D World Javascript Animation

Hi! I've recently come up with the idea to create a tag cloud like animation shaped like the earth. I've extracted the coastline coordinates from ngdc.noaa.gov and wrote a little script that displayed it in my browser. Now as you can imagine, the whole coastline consists of about 48919 points, which my script would individually render (e...

Finding intersection of two spheres

Hi, Consider the following problem - I am given 2 links of length L0 and L1. P0 is the point that the first link starts at and P1 is the point that I want the end of second link to be at in 3-D space. I am supposed to write a function that should take in these 3-D points (P0 and P1) as inputs and should find all configurations of the li...

How to make non-blurry image in WPF 3d

I used Viewport3D and ModelVisual3D to create a simple ImageBrush with an image (I tried it with JPG, PNG), but it shows the image blurry, but the original image is very sharp and clear. I don't know how to make it with the original quality in 3D... I also tried some 2D solutions like RenderOptions.BitmapScalingMode and SnapsToDevicePi...

iPhone: CALayer + rotate in 3D + antialias?

Hi all, An iPhone SDK question: I'm drawing a UIImageView on the screen. I've rotated it in 3D and provided a bit of perspective, so the image looks like it's pointing into the screen at an angle. That all works fine. Now the problem is the edges of the resulting picture don't seem to be antialiased at all. Anybody know how to make it s...