3d

How to write a "material module" for 3D rendering?

At some point I would like to write some type of dynamic material-handling module for my 3D rendering engine. It should be portable (GL, D3D, etc). And when I say "dynamic" I mean a module that is able to load material definitions and data runtime (through my resource management module). The material module should cope with basic primit...

3D model format for games

Hi everyone, I've looked around for a good model format to use in a game I'm building. Its a single player RPG that runs on any platform. I looked at md2,3, and 5 formats, obj, and 3ds, but I couldn't really find what I was looking for. All I need is a 3d model with animation that I can apply textures to. I know most of the list above do...

Is there any software or library available to draw screws in 3 dimensions in C, C++, Java, or Ruby?

Is there any software or library available to draw screws in 3 dimensions in C, C++, Java, or Ruby? ...

Triangle Triangle Intersection On 3d Sapace

Hi, Now i m Working on 3d . In that I need to find intersection of triangle with other triangle. How to find it. Please Help. ...

3D graphics in Delphi/Native TForm GUIs

What is the easiest way to do accelerated 3D graphics inside a TForm in Delphi? ...

Translate vector by matrix

I have a 4*4 matrix and a 3d vector. I need to translate my vector by the matrix. Not too much crazy maths notation please because i dont understand it. An example in something close to java would be fab! Thanks ...

3D sphere tag cloud

Does anyone know how to achieve a 3D sphere tag cloud, like on this site: http://krypted.com/ Is there a Javascript library that can easily do this, or was it most likely written by hand? ...

3d product view with dynamic picturemap in Flash

Hi all, A potential client of mine has asked whether it is possible to have a complete 3d rotating view of a product shown in flash that has an uploaded picture dynamically wrapped around it. Let's take a winebottle as an example. The winebottle would be 'static' but the label could be uploaded. This should then be shown wrapped around...

Various game map formats (indoor and outdoor)

Hi Everyone, I'm in the process of designing an rpg and I have run into a small snag. I'm not sure what to use for my world maps. I've looked at different formats over the past week and have determined that there aren't any maps (that I can find...) that are good for an outdoor environment. I found that .bsp maps (quake 4 or doom 3) woul...

Ugly WPF text rendering - can't disable hardware acceleration on Vista

I'm experimenting problems with text rendering in WPF (third party applications and mine too). Labels and other text don't display correctly, look a little blurred and are rendered with some random colored pixels around. I'm working on a low end crap machine (SiS Mirage 3 graphics) with Vista SP1, .NET 3.5 SP1 and graphics driver update...

Link to external texture file in self-contained XAML representing a 3D model.

I have a XAML file representing a 3D model with textures. I want to make the textures read from the same place the file is, or relative to it. I read the file using a XamlReader, so I want the file to be self-contained. I place the textures using an ImageBrush which ImageSource is a pack synatx URI. When I use a 'siteoforigin' syntax...

What Company/Platform/Browser will be the first to have high quality native 3D support?

I've been doing a lot of work with Flex/Flash/Away3D lately, and have started looking into Unity3D and Processing, but I'm still waiting for the day (hopefully soon) when you can build Wii/PS3 like UIs that can be used from most computers. It would be amazing if I could just add simple lighting effects on panels that had 3D textures, bu...

Texturing error on a Sphere

I have a number of spherical longitude/latitude coordinates for points on a sphere that I need to visualize. For that purpose, I transformed the points to cartesian coordinates and built a mesh of triangles that I can render with VTK. Works so far. Now I want to use a texture for the sphere model. Therefore I transformed the spherical c...

Find the normal angle of the face of a triangle in 3D, given the co-ordinated of its verticies

As you may be able to tell from this screenshot, I am trying to make a physics engine for a platformer I am working on, but I have run into a definite problem: I need to be able to find out the angle of any one of the triangles that you can see make up this mesh, so that I can work out the rotation and therefore angular acceleration of t...

How can I create a flat marker in Google maps 3d flash api?

When using map3d, the default marker creation is always perpendicular to the viewport. How can I create a marker that lays down flat against the map? I can't use GroundOverlay because it becomes overly tiny when the map is zoomed out. How can I create a matrix3d object that will rotate/scale/skew my Marker's foreground DisplayObject s...

Flash CS4 Rotating Around Z Axis Without Distorting For Stage Center, Is It Possible?

I've got three boxes rotating around their Z axis respectively. What I'm trying to do is keep them rotating around their respective Z axis without distorting if I move them away from the center of my stage. addEventListener(Event.ENTER_FRAME, rotateBoxes); function rotateBoxes(e:Event):void { box1.rotationY-=10; box2.rotati...

How does one interact with OBJ-based 3D models on iPhone?

I have a few different OBJ files that I am able to parse and display. This code is based on Jeff LaMarche's The Start of a WaveFront OBJ File Loader Class. However, I need some means of detecting what coordinates I have selected within a displayed model. Usually there is one model displayed at a time but sometimes there will be two or mo...

Why is my Processing app not behaving?

I am learning to use Processing, and have modified one of the examples to create this applet. I have two questions: Why are the spheres oblate? The spheres in the example I cribbed from were nice and round. Why do I get the light showing on the outside edges of the spheres, when the point source is between them? Here is the source f...

Rendering a 3d wpf model as an image and passing back to a website

I have a requirement to do the following. Pass a set of variables from a website to a backend webservice Apply the variables to a WPF 3D model. Generate an image and pass back to the website. Is this possible? ...

How do I reproduce this heart-shaped mesh in MATLAB?

I want to plot a heart shape in framework as shown in the following image (found on the website zedomax.com/blog/2008/09/03/i-love-meth-t-shirt/): I have tried to make it by using this MATLAB program: n=100; x=linspace(-3,3,n); y=linspace(-3,3,n); z=linspace(-3,3,n); [X,Y,Z]=ndgrid(x,y,z); F=((-(X.^2) .* (Z.^3) -(9/80).*(Y.^2).*(Z.^3...