3d

perspective in Flash

I have an 2D image that I want to draw in true 3D, and spin around its centre. I'm using Actionscript 3 code (actually Haxe, no IDE), and I'm struggling to discover the values by experimentation. I have a DisplayObject. If I use rotateZ = 45, the object rotates around it's top-left, rather than centre; more complicated Display.transfo...

3d convolution in c++

Hello, I'm looking for some source code implementing 3d convolution. Ideally, I need C++ code or CUDA code. I'd appreciate if anybody can point me to a nice and fast implementation :-) Cheers ...

Thousands of rays intersections with Triangles in 3D space

Hi There are thousands of rays and triangles. We need get all the intersection points. If we use the normal two level loops,we need O(m*n) time complexity.Is there any way to low the time complexity fronm O(m*n) to O(m* logn) or O(logm*n)? Best Regards, ...

In java JMonkeyEngine, public GameSettings getNewSettings()? How do I fill it out?

I'm trying to change a BaseGame to a FixedFrameRateGame, and It's saying I need a public GameSettings getNewSettings() method. Now I tried filling out like this: public GameSettings getNewSettings(){ return null; } it gives me a nullpointerexception when I try to run it. ...

How does 3D collision / object detection work?

I'v always wondered this. In a game like GTA where there are 10s of thousands of objects, how does the game know as soon as you're on a health pack? There can't possibly be an event listener for each object? Iterating isn't good either? I'm just wondering how it's actually done. ...

Displaying 3D models using C++

I am currently designing an application in C++. Part of this application would be displaying changing 3D objects. I have designed several bits of these 3D objects in Blender And also am aware of other programs with which to do this (Maya, etc.) However, I am unsure how to use C++ To display these objects, much less manipulate them in...

Wpf Viewport Coordinates

Hey guys, Im working with wpf 3d, im currently writing a program that will create 3d tiles across the screen left to right, But i need to know what my bounds are on the X, Y i.e (-x-0) (0-x+) so I know when to start another row of tiles. My initial thoughts are trying to figure out a complex algorithm to go from pixels to screen coordina...

What library emulates OpenGL in Javascript

I would like to put a texture on the surface of 3D models. I heard that there is a solution which allows to make it through OpenGL. ...

XAudio2, starting/stopping loops?

How can I start/stop audio looping in IXAudio2SourceVoice? Basically it has a start/stop which starts and pauses the audio execution as well as an ExitLoop() function which stpos the audio once it has finished playing. What I'd like to do is call 'ExitLoop()' then at a later time restart the looping process. How can I do this? ...

Texture onto 3D car mesh

I have a 3D car mesh object. How can I reflect a 3D text onto the 3D mesh surface? I'm using Visual Studio 2008 C# Express. The 3D car mesh object is ready for use in C# project. That is, I must use it in my C# project, not in Blender. All the development processes that I need must be done in C# development environment. ...

How to style UITextView with a 3D shadowed border?

In another post, luvieere shared a means by which rounded corners can be applied to a text view using the QuartzCore framework (see post). It would seem to me that a 3D border, like that found on a UITextField, could be created via layers instead of using a background image. Does anyone know if or how this can be done? I'd really like ...

MDX C# Loading Wavefront OBJs

I'm trying to load and display (EXTREMELY SIMPLY) a wavefront OBJ file. I have the parser working 100%... it loads the data from the files and stores them in structures in the program. Now is the part where I am utterly failing to find any information on, the target data structure. I have no clue how to use Vertex Buffers and Index Bu...

Conversion euler to matrix and matrix to euler

I'm trying to convert a 3D rotation described in term of euler angles into a matrix and then back, using .NET/C#. My conventions are: left handed system (x right, y top, z forward) order of rotations: heading around y, pitch around x, bank around z rotations are positive using the left hand rule (thumb pointing to +infinity) My tria...

Spherical Coordinates within a range / restriction

The function below returns points on a sphere with a given radius. I want to add restriction such that points cannot be plotted within 30 degrees of the poles of the sphere. public static function randomPoint(radius:Number):Number3D { var inclination:Number = Math.random() * Math.PI*2; var azimuth:Number = Math.random() * Math.PI*...

Combining euler angles of different coordinate system.

I have two euler angles. e1 = Angle in parent coordinate system (means angle applied to child coordinate system). e2 = Angle in child coordinate system. The two coordinate system may not have same origin, means that child coordinate system could be translated in 3d space. Now how could i combine these two angles so that resulting angle...

WPF 3D Hollow Cube With Painted Edges

Hello, I'm am trying to draw a cube which only the edges are shown. I followed this example: http://stuff.seans.com/2008/08/13/drawing-a-cube-in-wpf/ but I couldn't modify it to create a transparent cube with painted edges. Any ideas how to do so? Thanks, Ronny ...

Getting basic 3D models into an OpenGL app

Ok... I'm doing simple OpenGL ES programming and when I say simple, the most complicated things I do aren't much more than glorified beveled cubes and L-shapes. (Think very Tetris but in 3D.) However, getting all that vertex data into an app is either a) hand-coded (UGH!) or b) 3rd-party game engine (double-UGH!!!) or you use some 3rd-p...

map video to 3d object using opengl es in android

is it possible to map video file to 3d object using opengl es? how? what are the steps? ...

Beginners guide to 3D programming in IPhone SDK

I'm thinking of starting a project to make a game, maybe just a simple one, but still a game in 3D for the IPhone. Though i still have a long way to go, learning objective-C and so on, but a question popped in to my mind while thinking of the 3D gaming world. Would i benefit from learning OpenGL(PC/Mac) first before doing games for the...

How to match Away3D camera to Flash CS4 IDE 'camera'

I am trying to match a setup the designer did in the Flash CS4 IDE: I'm using Away3D for this project. I wrote a little as3 snippet that spits out the Location(x,y,z) and Rotation(rotationX,rotationY,rotationZ) of the planes, keeping in mind that in the IDE, top left is 0,0, not the centre of the stage and y increases in the opposite ...