Questions tagged [3d]

3D refers to three dimensional space where coordinates are represented with X, Y and Z values.

Filter by
Sorted by
Tagged with
2
votes
2answers
2k views

Can one draw a cube using different method/drawing mode?

I've just started learning gamedev (in particular android EGL based) and have ran over a code from Pro Android Games 2 that looks as follows: /* * Copyright (C) 2007 Google Inc. * * Licensed ...
5
votes
4answers
1k views

Physics timestep questions

I've got a projectile working perfectly using the code below: //initialised in loading screen 60 is the FPS - projectilEposition and velocity are Vector3 types ...
4
votes
1answer
928 views

Angular Velocity

Hey, I have a particle that is hit with a force F at a particular position on the ball P. How can I calculate the angular ...
4
votes
1answer
1k views

What solutions are available for 3d character creation/editing in games?

Many RPGs and MMOs offer a system for creating a character model, with varying levels of customization. Are there any open source libraries for this? Any libraries which can be licensed? Has anyone ...
5
votes
1answer
532 views

Calculate the Z of a line intersection given the XY coordinates?

I'm intersecting a line in 2D and I calculate the X,Y coordinates of the intersection point. What I need is the Z of the intersection point given the X,Y,Z of the line points, and the X,Y of the ...
2
votes
2answers
168 views

Resources on expected behaviour when manipulating 3D objects with the mouse

In my animation editor, I have a 3D gizmo that sits on the origin of a bone; the user drags the mesh around to rotate the bone. I've found that translating the 2D movements of the mouse into sensible ...
4
votes
2answers
365 views

How do I get started with fog type effects in a first person game?

Hey guys, I'm currently using JME3 to learn 3d game development in java, and I have run into a situation. I would like to add fog effects to my games, but I don't even know where to start to implement ...
1
vote
1answer
307 views

3d environments and managing them on iOS

I would like to start learning 3d game development and currently only develop 2d games. A few basic questions I am interested in are: What is used to create the 3d environments? Are they all done in ...
4
votes
3answers
2k views

Collision detection of convex shapes on voxel terrain

I have some standard convex shapes (cubes, capsules) on a voxel terrain. It is very easy to detect single vertex collisions. However, it becomes computationally expensive when many vertices are ...
0
votes
0answers
231 views

Simple project - make a 3D box tumble and fall to the ground [duplicate]

Possible Duplicate: Resources to learn programming rigid body simulation Hi guys, I want to try learning rigid-body dynamic simulation. I have done a fluid and cloth simulation before, but never ...
-4
votes
2answers
195 views

having problems while rendering in Maya 2008 [closed]

I am having problems while rendering in Maya 2008. 1 frame is taking 1 hr. My 5 computers have config of : core i3 , 1 gb ATI radeon graphics card, 8 GB Ram. OS: win Xp pro 32 bit. I am giving ...
-1
votes
1answer
218 views

Retrieve the coordinates of the *occluding* (closest/drawn) pixels during 3D overlap, using OpenGL?

Sorry if the question is not worded well, I'm a new to both 3D and OpenGL. How could I go about obtaining the 3D coordinates of the occluding object, at the point where occlusion is happening (i.e. ...
3
votes
2answers
376 views

What happens to allocated video memory when the program terminates?

Using OpenGL it is possible to load textures, buffer arrays, compiled shaders and more to the video memory. When a C++ program exits, heap memory that was allocated by it is cleaned. What happens to ...
2
votes
2answers
4k views

Camera field of view: 3D projections & trigonometry

Okay, here goes. I have a camera at (Xc, Yc, Zc.) The Xc and Yc coordinates are latitude/longitude, and the Zc coordinate is an altitude in metres. I have a point at (Xp, Yp, Zp) and a field of view ...
6
votes
1answer
4k views

Ray Intersecting Plane Formula in C++/DirectX

I'm developing a picking system that will use rays that intersect volumes and I'm having trouble with ray intersection versus a plane. I was able to figure out spheres fairly easily, but planes are ...
1
vote
2answers
843 views

How do I have to take into account the direction in which the camera is facing when creating a first person strafe (left/right) movement

This is the code I am currently using, and it works great, except for the strafe always causes the camera to move along the X axis which is not relative to the direction in which the camera is ...
4
votes
1answer
2k views

Obtaining a world point from a screen point with an orthographic projection

I assumed this was a straightforward problem but it has been plaguing me for days. I am creating a 2D game with an orthographic camera. I am using a 3D camera rather than just hacking it because I ...
4
votes
1answer
392 views

3D Camera Problem

I allow the user to look around the scene by holding down the left mouse button and moving the mouse. The problem that I have is I can be facing one direction, I move the mouse up and the view tilts ...
6
votes
3answers
6k views

Why / how does XNA's right-handed coordinate system effect anything if you can specify near/far Z values?

I am told repeatedly that XNA Game Studio uses a right-handed coordinate system, and I understand the difference between a right-handed and left-handed coordinate system. But given that you can use a ...
3
votes
2answers
1k views

algorithm to “explode” mesh

i have a simple triangle mesh which i want to explode. so i am looking for an algorithm that makes every triangle to move outwards from the centerpoint. is there already something premade like this? ...
11
votes
3answers
1k views

RTS on a 3D map e.g. a globe

How can you 'tile' a 3D globe if your existing artwork and maps are simple 2D grids? Are there approaches that can re-use much of the artwork and such?
3
votes
3answers
1k views

What are the usual tools for importing models and animations?

I'm a total noob with regard to game programming (though not a noob to programming) and I'm using pygame + opengl to do some experiments with a little game I've been thinking of. I've been trying to ...
1
vote
3answers
2k views

Correct order of rotation and translation

Trying to get this right in openGL: 1) glRotate( cameraRotation ) 2) glTranslate( -cameraPosition ) 3) glRotate( objectRotation ) 4) glTranslate( objectPosition ) 5) Draw Object is that right?
6
votes
2answers
305 views

Self-righting agents that have fallen over

I need insect-like agents that have fallen/rolled on their back/side to naturally re-orient themselves. The agents are modeled as simple cuboids in the physics engine (Bullet) to approximate an ant-...
7
votes
3answers
9k views

Maya 3D model to iOS OpenGL ES

I need to display, rotate, and zoom a 3D model in OpenGL ES (iPhone/iPad). The 3D graphic artists are using Maya (on OS/X). What export format should I be looking at to use their 3D models in the ...
3
votes
2answers
2k views

3D camera implementation

I've been bashing my head against the concept of a 'camera' for my 3D world for some time now, and I'm not sure I'm doing this right anymore. Maybe I've been working on this for too long and have ...
1
vote
0answers
545 views

XNA 3d Terrain using rectangular elements [duplicate]

Possible Duplicate: Creating a 3D map for XNA ? I am developing using XNA, a simple 3d tower defense game. I wanted create a 3d terrain. Here is how I am doing it: fundamental element is a ...
4
votes
3answers
627 views

What resources are available to read and share pyglet code?

I am a Python programmer (I know the ins and outs decently well), and I have dabbled with Pygame. I want to make 3D applications and games, and so naturally I've been looking at OpenGL. pyglet uses ...
7
votes
3answers
3k views

Optimizing Octree Rendering

Say I have an octree and at a certain level I store VBOs in that octree. I know the dimensions of of the nodes that own the vbo so I can do basic frustum culling. That works nicely because everything ...
3
votes
3answers
1k views

What do you need to know in C++ before starting to program with DirectX

I was wondering what do you need to know in C++ before starting to program with DirectX? I have only been programming in C++ (more for 2D games using SDL and learning the basics) for just over a year,...
3
votes
2answers
1k views

Representing 3D World Space with 2D Tiles

How can I represent 3D world space with 2D tiles? I do not mean isometric, which is visually represent 3D objects in 2D space. Let's say there's some height map, and each 2D tile (X, Y) represents a ...
5
votes
1answer
457 views

Best methodology to prepare 3d models for avatar customization?

I know preparing mount points and the like. But what's the best way to prevent Z fighting with customizations close to moving parts like elbows and knees?
2
votes
3answers
956 views

Rendering a 3D scene without a window

This is kind of an odd question, but what would be the best solution for rendering a 3D scene without a render window active? The end goal would be to simply render a 3D scene to an image file. I ...
3
votes
2answers
1k views

3D models in 2D world

I want to create a simple Flash game. Let's say, it's about soccer hooligans. I would need the characters to walk around the isometric landscape, drink, fight or whatever it is they do. Now, how do I ...
6
votes
3answers
3k views

What are the big advantages of shaders ? What is doable with them, and what can't be done without them?

I don't really know when vertex and/or pixel shaders became available for consoles and computers, but what could we do without them ? I don't really understand what is achievable with shaders and what ...
15
votes
1answer
6k views

Creating a 3D map for XNA?

Is anyone aware of a nice 3D map tutorial (how to import and use the map) using XNA without any engine but not limited to an external application (like Tiled for 2D maps) ? I did a search arund here ...
5
votes
3answers
513 views

Accelerometer or on screen controls for mobile UI in 3D games? [closed]

I can think of several 2D games which use the Accelerometer successfully, but in my experience as a player, character control in a 3D environment tends to be frustrating. Mostly because a 3D ...
4
votes
4answers
2k views

How to find two perpendicular lines given a single plane

Hey guys, i was wondering how i would go about finding the perpendicular lines relative to a surface normal. For instance say i have (0,0,1) the expected output would be (1,0,0) and (0,1,0). What ...
7
votes
3answers
2k views

How difficult is it to implement 3D models in a 2D game?

Creating a full blown 3D game requires a lot more math for physics, but what if I just want to mix 3D models in a 2D game, such as in the New Super Mario Brothers? Would I be able to get the looks of ...
6
votes
2answers
694 views

What will AMD Fusion or likewise hybrid CPU/GPU will change for the 3D programmer ? Are they potentially faster?

Since the early days of accelerated graphics, programmers were obligated to use hardware-supported libraries like directX or OpenGL. If we wanted to explain someone what happened by introducing a ...
3
votes
1answer
123 views

Need some advice on a java api to use for a 'presentation display board' - based on game 2d/3d tech

As part of the project i am working on I am looking to produce some software that works on a LCD display (think call center info boards) and displays various graphs (the bars grow etc in realtime, so ...
3
votes
1answer
427 views

What is the right process to get compatibility or at least a workaround for the ‘Threaded optimization’ feature of NVIDIA?

It's peculiar this issue is not well understood on NVIDIA forums and project forums. For example, the well known ioquake3 project based on id tech 3 requires to force 'Threaded optimization' off on ...
6
votes
3answers
685 views

Is there any algorithm for creating 3D lightning?

Is there any algorithm for generating lightning? Lets say, you input the starting and ending coordinates (x,y,z) and out comes an array of coordinates to show where the lightning goes. It doesn't have ...
3
votes
3answers
1k views

Optimizing Bullet and ODE Physics on consoles and mobile phones

I'd like to use either Bullet or ODE on low powered devices (mobile and consoles), but the frame rates are below the acceptable 25-30fps for simulations. I've found that one articulated body by ...
5
votes
3answers
3k views

The pros and cons - DX9 moving to DX11 render?

We are a "nano" game dev company working on REFUSION. DX9 renderer is almost done and question is: Should we move it to DX11 or not? Anyone have experience with this? Here are some videos from dev ...
10
votes
5answers
16k views

Graphics for non-Graphics Designers [closed]

Are there resources for programmers with little to no graphics design talent, but still want to make good-enough graphics for their own programs? I'm interested in both 2d and 3d computer generated ...
3
votes
2answers
678 views

Is there a plugin to integrate Face FX with Blender?

Is there a plugin to integrate Face FX with Blender? I only see plugins for Maya, Max, SoftImage, and MotionBuilder on the Face FX website.
4
votes
1answer
2k views

How do I calculate an inverse bind-pose matrix for COLLADA?

I want to port a rigged mesh from a custom format to COLLADA. The bones I have define a position for the bone (local) and a matrix that transforms the child-bones' positions into the next-higher ...
3
votes
1answer
213 views

Managing depth in actionscript3

I have a 3D field with many MovieClips in it, and seems like the one last added is the one that overlaps others and not the one ...
4
votes
5answers
3k views

How should I start playing with 3D? [closed]

One of my hobbies (aside programming, of course) is 3d modeling (completely amateur, using 3ds MAX) and I'd like to mix programming with 3d modeling (what a marriage!). So I've read a little about it ...