3d

How to rotate a 3D tringle flat against the wall?

I'm working with 3D mesh data, where I have lots of 3D triangles which I need to rotate to eliminate the Z value, converting it to a 2D triangle. With this 2D triangle I'm doing some vector calculations. After I'm done with my work I need to rotate it back to the original angle such that the old points return back to their original pos...

How do I make a 3D game in my spare time?

I'm looking for a new project to fill the evenings and I wish to make a 3d game. I have mediocre experience in Pascal,and VB but realise that neither of these may be best for the job. I realize I may have to spend some time reading some books and maybe learning a new language but I don't actually know what would be needed? Would learnin...

Xna 4.0 3D Vertex example

Hello, I'm currently trying to make a simple square by combining two triangles, like in the tutorials by Riemer (Link to tutorial), but since a lot has changed from 3.x to 4.0, I find it difficult. I would also like to know how to texture this "square", so if anyone could help me by giving some example or whatsoever, I would appreciate ...

Any ideas on real life rocks 3d Reconstruction from Single View?

So in general, when we think of Single View Reconstruction we think of working with planes, simple textures and so on... Generally, simple objects from nature's point of view. But what about such thing as wet beach stones? I wonder if there are any algorithms that could help with reconstructing 3d from single picture of stones? ...

Rotate sphere based on lat/lng.

Ok so i have an api to a globe that I can only move by setting the x y z axis tilt. (the camera cannot move.) I need to be able to map lat/lng to it. So basically take lat/lng and rotate in x y z and show the point in the center of the screen. The setup can basically be visualized with this picture... http://en.wikipedia.org/wiki/File:...

What 3d engine can be used in 3d editors applications?

but im wander in i need some kind of 3d engine to be used as the core engine for application that in the end will produce me 3d image in good quality for example application like: Xara3d , 3D Home Architect , 3d charts . can it ? ( with combination of Qt ) let me clear my self .. i do not looking for 3d engine this is fine , im going ...

Any way to not process some object in Away3D Lite?

Hello, I would like to know if there is a way to avoid processing some objects in a away3DLite scene. The problem is that I Have a scene with a lot of spheres, some of them are not visible ( out of camera range ) and I would like not to processing them. Maybe Away3D automatically does that. Maybe visible = false can help Any good tut...

Game programming

I would like to learn game programming. Just to give you a background I am a programmer and understand the concepts of programming and am very object oriented. I have worked with languages such as php, javascript, flash, java, and a little c++. Now from my understanding most of game programming is done in either python or c++. Now I hav...

script to generate 3d to 2d mapping

I want to render a simple scene to png image 800x600 size. png image has 2d (u,v) pixel based coordinate system such that top left corner is (0,0) and moving right u increases and moving down v increases so that u and v is always 0 or positive integer. I want to write a script that would generate 3d mapping table that looks like: (0,0)...

Calculate if two 3D triangles are on the same plane

For a 3D game engine I'm working on I need to calculate if two 3D triangles are on the same plane to display it accordingly. How do I calculate the angles of a triangle in 3D space? Would calculating a surface normal and comparing those ever give me 2 equivalent normals? ...

How to manage textures

Hello, I'm writing a simple 3D engine based on OpenGL (I know there are plenty of them out there but for some reasons I want to learn how to do this myself). I am pretty happy with my current approach of a scene graph and stuff like that but I'm very unhappy with texture handling. So I wonder how to do this properly. When I look at exa...

How should I calculate the vertices on n intersecting planes

basically I am trying to model some map brushes that have the following format: Each brush defines a solid region. Brushes define this region as the intersection of four or more planes. Each plane is defined by three noncolinear points. These points must go in a clockwise orientation: 1--2-----------------> | 3 | | | | | , Each brus...

Google Sketchup C++ SDK: SkpWriter usage

I am trying to use Google's Sketchup C++ SDK (latest version) to export a 3D model to a Sketchup file. One of the problems I am facing is that the header files refer to an "sapi" folder which does not exist in the source tree. I need to figure out how I can get a reference to the ISketchUpApplication interface. Can someone provide me w...

How are UV coordinates measured?

I've got a 3D modeling program exporting a UV mapped 3D model. However the UV coordinates seem to be invalid or using a system I don't understand. I need help in understanding how UV coordinates map to the pixels of the bitmap (X, Y) I've got a couple of textures in the range of 150x100 to 200x600. Here are some extracts: vt 1.040...

Why are these UV mapping coordinates represented in 0-1 and pixels? Shouldn't they use only the 0-1 system?

Well, I've got many UV coordinates of a 3D model clearly in the range 0-1 and many coords in seemingly pixel values in the range 100-300. How do I know which one to interpret the coordinates as? Is there a standard or system for this? I notice that each 3d meshes in the exported file may use either system. Is this normal procedure, and...

How do I Z-sort triangles for a 3D engine?

I'm building a small 3D engine for a game I'm working on. I've got my basics sorted: textured triangles with backface culling. However depth sorting is proving to be a difficult problem. I'm calculating the face Z by averaging out the 3 points that make up the triangular face. The longer faces sometimes overlap the smaller faces since ...

Find if a line intersects a sphere

Trying to make a very simple boolean function that will find whether a line intersects a sphere. This did not seem to be what I want, even though the question was similar: http://stackoverflow.com/questions/910565/intersection-of-a-line-and-a-sphere Also I have tried the algorithms listed at: http://www.docstoc.com/docs/7747820/Inters...

Are there any libraries that can generate a 3D mesh from a 3D array of data?

I am trying to write some code that takes some data, puts it into a 3-dimensional array, and then generates a 3D mesh for rendering. The data is a list of tiles with fields for defining the tile's type, etc. I am using Irrlicht for graphics right now and it has ways to manipulate the vertices/indices of a mesh but I can't come up with a ...

Suggested framework for generic 3D demo software

Hi everyone, My company has decided that we need a "generic" demo infrastructure for our technology demos, given that I can write this using JOGL or OpenGL and create my own framework, I'd hate to reinvent the wheel. But there are so many 3D gfx engines out there and so many OpenGL wrappers! Basically, we want to use 3D graphics to re...

3D Graphics: How to think about a model's position

I'm new to graphics. I'm experimenting with OpenGL / JOGL. I have a .obj file that I'm rendering. I'm having difficulty placing it exactly where I want it in the world. I have a plane that I want it to rest on, taking into account the model's runtime-set size. Just doing a transformation isn't quite enough, because I need to take into ...