## 3d

### How to animate rotating cube in C#?

I would like to do something like this: a rotating cube on a form. I don't want to use any external library or dll, just pure .NET 3.5 (without directx). And a cube build with lines only. Could you please tell me how to do this? I don't want to use external libraries because I don't need > 100 MB library to do this thing right? I want o...

### Align point clouds via 3 points correlation?

Let's say I have 3 point clouds: first that has 3 points {x1,y1,z1}, {x2,y2,z2}, {x3,y3,z3} and second point cloud that has same points as {xx1, yy1, zz1}, {xx2,yy2,zz2}, {xx3,yy3,zz3}... I assume to align second point cloud to first I have to multiply second one's points by T[3x3matrix]. 1) So how do I find this transform matrix(T) ? ...

### c++ 3d arrays

I'm trying to run a 3d array but the code just crashes in windows when i run it, here's my code; #include <iostream> using namespace std; int main(){ int myArray[10][10][10]; for (int i = 0; i <= 9; ++i){ for (int t = 0; t <=9; ++t){ for (int x = 0; x <= 9; ++t){ myArray[i][t][x] = i+t...

### Correct way to handle 2D z-indexing in a 3D scene (DirectX)

I need to achieve the following: Two 2D quads appear as though they are stacked one on top of the other (like two halves of the same texture) but are in fact seperated on the z axis by n coordinates. So that if a 3D object passes between them one half appears in front of the object and the other behind. Could i achieve this by applying...

### Hole in a Polygon

I need to create a 3D model of a cube with a circular hole punched at the center of one face passing completely through the cube to the opposite side. I am able to generate the vertices for the faces and for the holes. Four of the faces (untouched by the hole) can be modeled as a single triangle strip. The inside of the hole can also be...

### 3D Engine Comparison

I am currently investigating several free/open source OpenGL based 3D engines, and was wondering if you guys could provide some feedback on these engines and how they are to work with in a real world project. The engines being compared are (in no particular order): Crystal Space Panda3D Irrlicht These are the main ones i know that ...

### What is the best online resource for 3D rendering in JavaScript?

First a little intro: Last year i wrote this http://dragan.yourtree.org/code/canvas-3d-graph/ Now, i want to make complete rewrite of it, because that old version have some limitations, for example: sometimes it happens that bars are not visible, because they are drawn one behind another. In this old version there is no real 3d, just ...

### Projecting a 3d sphere into a 2d circle on the screen

What are some rasterization algorithms that can just project a 3d sphere into a pixel grid? I want to avoid ray casting. Essentially, given a 3d coordinate and a radius, is there a quick way to just create a 2d circle/ellipse on a pixel grid? For example: circle at (2,2,2) with radius 4 gets projected to five pixels: p1(2,0)p2(0,1) p3...

### Java 2D game programming - Newbie questions

Hi, We're a team of a programmer and a designer and we want to make a medium-sized java game which will be played as an applet in the web browser. Me (the programmer) has 3 years of general development experience, but I haven't done any game programming before. We're assuming that: We'll decide on a plot, storyline of the game, etc....

### Which to choose: 2D or 3D for a java game

What should a small team choose for their first game, when they are low on time but have big ambitions? I'm an experienced programmer, but haven't done any game programming before this. My designer is very talented and artistic, he has worked with 3D about an year ago but hasn't done it since so it could take him some time to learn it ag...

### Customizable player avatar in a 2D Game

How can I have that functionality in my game through which the players can change their hairstyle, look, style of clothes, etc., and so whenever they wear a different item of clothing their avatar is updated with it. Should I: Have my designer create all possible combinations of armor, hairstyles, and faces as sprites (this could be a...

### Porting easily from 2D to 3D on a Java game

Due to lack of capital and time we are having to do our game in 2D even though me (the developer) would prefer if it was done in 3D. I would hate for users to join the game, only to think the graphics look bad and leave. Though I suppose we just have to try and do our best. That being said, I would like to develop the game in such a way...

### How to draw 3D mathematical models in .NET? What 3D engine would best suitable to do this effectively?

Hi, I recently faced a problem of presenting the output of simple genetic algorithm that looks for extremes of 2 argument function f(x1,x2) . I would like to be able to use x1 as x, x2 as y and f as z and to draw points in 3d space that I could rotate. ( I'm currently drawing this on bitmap using color as the 'z axis'.) Where should I ...

### How to create a 3D model and then create an icon/logo from it?

I want to create a simple logo and the the logo I have in mind will be a stylized 3D model with "iconic" lighting (front, left, even). The 3D model itself can be defined as a collection of geometric shapes. Programming is more my thing than design so I'm looking for advice on easy-to-use tools to create my 3D model and then create a lo...

### Best modules to develop a simple windowed 3D modeling application?

I want to create a very basic 3D modeling tool. The application is supposed to be windowed and will need to respond to mouse click and drag events in the 3D viewport. I've decided on wxPython for the actual window since I'm fairly familiar with it already. However, I need to produce an OpenGL viewport that can respond to the various m...

### Best "3D display" developing environment for Java? (do they even exist?)

There is a bunch of announcements from CES 2009 about new 3D displays used for games and movies. I was wondering if there is a setup that currently exist that also brings the 3D to a development environment. Such an environment would, for example, bring out compile errors to the front. Or maybe allow the programmer to quickly stack panel...

### 3D Polygons in Python

As far as I am aware there is no inbuilt polygon functionality for Python. I want to create a 3D map and figured that polygons would be the best way to go about it. Not wanting to reinvent the wheel I did some googling and found that there's a lot of Python stuff out there, but I couldn't find what I wanted. Thus before I reinvent the w...

### 3d models, LOD, pics, etc

I need to program a util for a 3d model. What i need to do is pass the 3d model to the util and have it extract multiple information. Things like poly count, size/scale (if applicable) and anything else i can grab. Then i need to take a screen shot of the model 8 times (45deg from 0 to 360). Maybe 16. Is there an app that i can use to ex...

### In OpenGL is there a way to get a list of all uniforms & attribs used by a shader program?

I'd like to get a list of all the uniforms & attribs used by a shader program object. glGetAttribLocation() & glGetUniformLocation() can be used to map a string to a location, but what I would really like is the list of strings without having to parse the glsl code. Thanks NeARAZ! Note: In OpenGL 2.0 glGetObjectParameteriv() is replac...

### Are there (free) tools or libraries for 3D WPF objects?

I wanted to play around with some 3D controls in WPF, but was mildly surprised to find that there were no primitive solid controls in WPF - I just wanted to plop a few spheres and cubes in a scene, but didn't realize I had to render them using meshes. Surely someone has created libraries of 3d primitives that can be added to WPF 3D scen...