3d

How to align shapes together? (Geometrical Best-Fit Algorithm)

I'm working with mecanical engineers who rely on 3D modeling software. These softwares have a "Best Fit" feature. It allows you to acquire data with a sensor (like a 3D scanner) and align the mesured data with a CAD Drawing. I'd like to know how such an algorithm can work! In simpler words, imagine that you have 2 NEARLY identical tria...

glDrawElements drawing all objects connected

I can't figure out how to get glDrawElements to not connect everything it draws... //Draw Reds glEnableVertexAttribArray(vLoc); glEnableVertexAttribArray(cLoc); glBindBuffer(GL_ARRAY_BUFFER,positionBufferRed); glVertexAttribPointer(vLoc,3,GL_FLOAT,GL_FALSE,0,0); glBindBuffer(GL_ARRAY_BUFFER,redBuffer); glVertexAttribPointer(cLo...

Cross platform mobile 3d engine

Does anyone know of any production-ready (preferred) or beta-quality 3d engine for mobile platforms? It ideally should support a 3d acceleration on device if available. We looking for renderer only, as the engine required for non-gaming purposes. Thanks. ...

glDrawElements connecting all vertices...

I can't figure out how to get glDrawElements to not connect everything it draws... //Draw Reds glEnableVertexAttribArray(vLoc); glEnableVertexAttribArray(cLoc); glBindBuffer(GL_ARRAY_BUFFER,positionBufferRed); glVertexAttribPointer(vLoc,3,GL_FLOAT,GL_FALSE,0,0); glBindBuffer(GL_ARRAY_BUFFER,redBuffer); glVertexAttribPointer(cLoc...

4 Element Vector (3D Math)

Why is there a W term in a lot of 3D API's Vector class (i.e. Vector4(x, y, z, w) ) ? Are there math operations that absolutely require the W term? ...

How can I create a 3D-grid in 3DS Max?

I have been trying to develop a 3D data-visualization software, and now I need to find a way of quickly generating 3D grids in 3DS Max to use like a 3d-chart reference scale-map. I am new to 3DS but it is what I use to generate the objects I work with on the engine. Is there any simple way of generating such "cage"? Thank you. ...

How To Extrude a Flat 2D Mesh, Giving it Depth

I have a set of co-planar, connected triangles, i.e., a 2D mesh. Now I need to extrude it out a few units in the z-axis. The mesh is defined by a set of vertices which the renderer makes sense of by matching up against an array of triangles. Example Mesh: Vertices: (0,0,0), (10,0,0), (10,10,0), (0,10,0) <-- (x,y,z) Triangles: (1, 2, 3)...

python version for maya and other 3d apps

I have a couple small projects that I want to use to learn python what version should I be using if I want to move to scripting for maya, blender, etc later. also what resources are there for scripting for those programs ...

How to create a 3D compass in Android?

I am currently trying to develop a 3D compass myself. I have been trying for almost a week now, and still no luck. So please help me out. This is the code I use for my orientation handler: public void onSensorChanged(int sensor, float[] values) { // azimuth pitch roll if (sensor == SensorManager.SENSOR_ACCELEROMETER) { ...

Trying to compile a working irrlicht application on a mac with plain g++ or Xcode

Ok, here it goes: I managed to compile the .xcodeproj provided with the last zip achive into a .a library file (a static library then). I failed to build a working application that uses irrlicht as a 3D engine with Xcode, I don't really know to do it since I'm sort of unable to use an IDE. I tried to link a simple program with this li...

Plotting/visualising 3D objects in Java?

I know there's Java3D, but from what I also know it's not fit for what I want to do, which is, based on a series of pictures to plot a 3D image on the screen. For instance lets say we have XX-XXXX (or more) pictures of a human face, we process them and then (using the points gathered in that process) we want to reconstruct it (the face) ...

WPF 3D - mapping gradient brush on complex geometry

Hello, I wanted to ask if anyone knows how to map gradient brush on complex objects in WPF 3D. The result should look similar to 3D images in matlab (3D function for example). Lets say you have some 3-dimensional data you wish to visualize and you want to diferentiate certain levels of values by color. ...

How do I rotate vectors using matrices in Processing ?

I am trying to rotate vectors using matrices, but got confused. I thought all I needed to do is create a rotation matrix and multiply it to a vector to get the rotated vector. Here you can see a simple test I've done using Processing: Use a to increment rotation, and x/y/z to changes the axis. And here is source: PVector[] clone,f...

Issue with Android OpenGLES lighting.

Hey all, I'm writing a little 3D engine for android to better learn the platform and opengl. I hope to eventually use it as a base for little 3D games. I'm trying to implement lighting right now, and generally following the NeHe opengl android port tutorials. I have a simple spinning cube and 1 light that should not change posit...

How to programm 3D in open gl

hello i want to program in open gl in 3D (have a special screen and glasses) what do i have to do for that? (options, code, ..?) thanks ...

Concave Polygon Line Clipping without Degenerate Edges

I have search and researched the internet last days to find a suitable method for my problem. Problem: Clip a concave polygon against an infinite line without direction (Actually a polygon against a plane in 3d but the problem is similar i think). Currently i use Sutherland-Hodgman but the resulting polygons sometimes contains zero-are...

How to represent / Modify 3d solids

In my program I have some cubes (simple, xyz location, xyz size). I want bo be able to take one of these cubes and 'Subtract' another cube from it. So my question, what is a good generic data structure to represent the resulting 3d object, and what kind of algorithm is used to subtract a 3d solid from another? ...

Blender vs. Unity

I want to make a 3D game, preferably that can be played in browser. Some people say blender, some say unity. What are the pros and cons of each? Which one do you prefer? Why? Also, do you have any suggestions for tutorials? ...

3D is not rendering in WPF Application

I am trying to render 3D object using the below code. But when I run the application, nothing is displayed. It seems to be blank. Am I missing anything? <Page x:Class="SampleWpfApplication.DemoPage3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="DemoPage3"...

Where to buy 3d model collection for game

Hi Guys, I would like to make some iPhone game but I need 3d models characters. I am looking for low polygon models and sort of cartoon theme (think about Warcraft 3 theme) Here is the example that I found in the net: http://www.dexsoft-games.com/models/humans.html By the way, I do not mind to buy the models as long as it is low poly ...