3d-graphics

Approach to create complex 3D drawings in OpenGL ES (on Android)?

Hello, I'm new to opengl-es and I wonder how people are able to draw these much detailed OpenGL ES graphics, e.g. on Android OS. It's already hard to draw a single squre, because it's composed of triangles due to the reason that OpenGL ES obviously cannot draw anything else than triangles. I thought about this approach: Drawing and ren...

How to overlay 3d graphics on top of webcam feed live

How can I render 3d graphics on top of a live webcam feed? Visual Studio 2008 c++ Edit: I left the question vague because I do not care what libraries or frameworks are used. I don't care if its Direct3D or OpenGL, or even something else. To bring it the question to a specific point, I would like to render a flat shaded spinning c...

Implement a 3D paint application: how to start?

Hello, I want to implement a paint-like application, which will enable kids to create and work with 3 dimensional objects. How can I start? What is the right approach? WPF, OpenGL, or Direct3D? (I prefer C# solutions, but C++ is OK also). Thank you all in advance! --NewB ...

Alternative to ZAM 3D editor for Windows 7

I'm looking for some 3D editor that allows to create 3D objects and export them to XAML format. Because I'm under Windows Seven ZAM 3D editor is no option for me. I need to create relatively simple(but good looking) 3D objects, no game animations. I prefer simple and intuitive GUI, so Blender is no option for me... It would be good if ...

Getting plane slices from array data

Greetings all, I read 3d grid data (from multiple TIF images) into a structure as follows : typedef struct VolumeData{ int nx; int ny; int nz; unsigned char *data; // size is nx*ny*nz } Now I want to get the plane slices from this 1-D grid data: eg: unsigned char* getXYPlaneStack(VolumeData *vol,int z); I could implement ab...

Using 3D photos in silverlight?

Hi all. I want use photos captured by 3D cameras in Silverlight 3 or 4. I want use that photos like in maps.google.com. Is it possible to do with silverlight and if yes is there any book, tutorial, video or anything alse, from which I can learn how to use tham. Thanks. ...

3D Math: Calculate Bank (Roll) angle from Look and Up orthogonal vectors

I hope this is the proper location to ask this question which is the same as this one, but expressed as pure math instead of graphically (at least I hope I translated the problem to math correctly). Considering: two vectors that are orthogonal: Up (ux, uy, uz) and Look (lx, ly, lz) a plane P which is perpendicular to Look (hence inclu...

Java 3D Canvas To Virtual World Mapping

Hi, I have a 3d Scene set up and can navigate my scene etc (I am fairly experienced in Java 3D) but i still need ways to achive the following operations in Java 3D: -map the viewing area of my Canvas3D into the virtual world (with this mapping i should be able to draw an outline (rectangle) in the virtual world around the viewing canva...

Can you join GIFs and/or Animated GIFs into a single Animated GIF?

Hey everyone, Does anyone know if it's possible to join several gifs or animated gifs into one animated gif (ie. concat the frames together into one master animated gif)? I'd like to have some server side function to do this. The file will be identical in dimensions, mode etc, just their content will differ. Thanks! ...

Calculating 3d plane for two 3d vectors

If I have two vector coordinates representing positions on the surface of the earth where the center of the earth is (0,0,0) and the Up vector is (0,0,1); What is the best way to calculate a 3d plane that is running along the two vectors (the direction v2 - v1) but back by a set number of meters (just imagine a virtual clip plane that i...

using a check box to alternate texturecoordinates and texture

I have created a mesh (uniform grid with height values)by loading information from a file. Besides height data the file also contains a texture. The texture is easily mapped to the mesh, I also want the functionality to be able to assign a gradient texture. This is also quite straight-forward but uses other texture coordinates. Howeve...

Suggested platform / tool / library for rapid prototyping of graphic design toolset

Looking to prototype a piece of software that works on a three dimensional canvas, with various tools and dialogs that manipulate the model. Looking for a platform with the basic set of user interface tools already available - basic model manipulation (selecting, moving, redimensioning) - dialog boxes, forms, modal windows, etc. On ...

Learning OpenGL ES 2.0, Coming From 2D

My new job has me moving from a 2D graphics environment (old job) to a 3D environment using OpenGL ES 2.0. I'm looking for hints, book suggestions, awesome tutorials, and possible test environments or OpenGL ES 2.0 emulators to help me make the jump. I have basic familiarity with OpenGL ES 1.X's fixed function pipeline, but I'm complete...

How to always rotate from a particular orientation

(Apologies in advance. My math skills and powers of description seem to have left me for the moment) Imagine a cube on screen with a two sets of controls. One set of controls to rotate the cube side to side (aka yaw or Y or even Z depending on one's mathematical leanings) and another set of controls to rotate up and down (aka pitch or X)...

OpenGL polygon z buffer problem

Here is a quick and dirty GLUT based C++ program for windows that draws two rectangles, blue and green on a flat red background. Pressing 'a' or 'z' makes them orbit along the X axis in either direction. My problem is that if I enable GL_DEPTH_TEST, it sometimes draws one rectangle, sometimes two or sometimes just the background but ne...

OutOfMemory Exception when drawing cube

hi, i have a class that draws and rotates a cube. every time i rotate the cube i reload the buffer with the new values for the cube. public void LoadBuffer(GraphicsDevice graphicsDevice) { buffer = new VertexBuffer(graphicsDevice, VertexPositionNormalTexture.VertexDeclaration, triangles * 3, BufferUsage.None); bu...

Is it possible to render a scene to multiple textures in a single pass with Xna?

Hello world! I am wondering if it is possible to render a scene to multiple render targets in a single pass (or anything faster than drawing it several times through client code). I want to optimize some code that is being rendered to several textures of varying dimensions (512 by 512, 256 by 256, 128 by 128 and 64 by 64 for example). ...

Detecting available graphics memory on the windows platform using C++

I'd like to be able to detect how much graphics memory is available. I've written a C++ project that uses DirectShow. Some ancient gfx cards can't do video properly and fall back to four colour mode. If I try to allocate more than one video window, the program just crashes on these machines without warning. This is less than elegan...

How do you count registers in HLSL?

With shader model 2.0, you can have 256 constant registers. I have been looking at various shaders, and trying to figure out what constitutes a single register? For example, in my instancing shader, I have the following variables declared at the top, outside of functions: float4x4 InstanceTransforms[40]; float4 InstanceDiffuses[40]; ...

OpenGL ES: Rotating 3d model around itself

Hi, I'm playing with OpenGL ES on iPhone and I'm trying to rotate a model by panning with the finger. I discovered the open source app Molecules that let's you do that and I'm looking at that code, but when it comes to rotate a model of mine I'm able to rotate it only around a point distant in the space (like it was in orbit as a satelli...