3d-graphics

3D Graphics Theory and Code without OpenGL, DirectX, XNA, et al.

I was wondering if there was any tutorial that introduces 3D Graphics theory while showing relevant code, without using OpenGL or DirectX or something. I'm very comfortable with engineering math (I'm an A/V DSP student, so I work with a lot of math all the time). Most of the tutorials I see either show me the same old matrix translatio...

World space to screen space (perspective projection)

Hi there, I'm using a 3d engine and need to translate between 3d world space and 2d screen space using perspective projection, so I can place 2d text labels on items in 3d space. I've seen a few posts of various answers to this problem but they seem to use components I don't have. I have a Camera object, and can only set it's current p...

Direct3D vector output?

Is there any means to interpret Direct3D output as a series of vectors instead of a raster image? I am hoping I could use such a feature to generate a PDF file containing the rendered Direct3D output. Am I being too optimistic? ...

How to utilize Level Of Detail when the heightmap is unknown.

We are developing a Google Earth like application and we are tring to utilize a Spherical View-Dependent (Adaptive) LOD method. Before the details I need to mention two things: We are using a Quad-Tree containing the tiles. (a regular subdivision method is applied) The tiles acquire their height values as they are generated....

WPF Poor Performace for static scenes with very small dynamic content.

I have a simple scene with 64 ModelUIElement3D elements, every element3d Model is a model group with 8 simple geometries, every geometry contains 3 materials, diffuse, specular and emissive. All materials use Solid Brushes since are the fastest. The geometries, specular material and diffuse material are Freeze to improve performance. ...

Cover art in Android

I am trying to create an app where, when you search for a particular animal, from a webservice, I get all the Animal names I have on my server along with their Image URLs. What I want to do is to sift through these Images like you can in case of an album art. If I have to cache(i.e. ship) the images with my app, I will do that to improv...

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 the NVIDIA settings or there are severe FPS drops. Do you know what a programmer has to do to acquire compatibility with the feature or at ...

Strange Problem with Skybox texture size - iPad, OGL Es 2.0

Hi Everyone, I'm new to the iPad dev. platform and currently making a terrain roamer demo with OpenGL Es 2.0. While implementing the skydome, I ran into a really strange problem that I could not solve. Skydome Implementation: * I have a low res sphere that uses a cube map indexed by the sphere vertex normals. * I use 1024x1024 textur...

How to enable depth testing for the GL_SELECT buffer?

I am using the GL selection buffer to implement mouse picking. Unfortunately, OpenGL is returning hits in the selection buffer even for objects that are entirely occluded. For example, if there is a man hidden behind a wall, the selection buffer will include a hit record for the man even though he is not visible. Selection is implemente...

Depth of Field Effect in OGRE

Can anybody provide me with a quick code to implement depth of field effect in OGRE? ...

HLSL Translucent Plastic Shader

Hi, I'm trying to produce a shader to replicate a white plastic object with a colored light inside. Either by having a shader that will be translucent and if I put a light inside the object the light will show through or by having a shader that fakes the effect of a light inside. The effect im going for is kinda like a light going thro...

Center 3D Object in Papervision 3D

Hi, I have a few 3ds objects where default offset is not (0,0,0). When I add them to my BasicView I want to center them on the scene (moveDown, moveUp, etc), but for this I need to know object's original x, y and z coordinates. How do I get object's original coordinates? myObject.x/myObject.y/myObject.z are always zero and myObject.ge...

OpenGl box fullscreen

I'd like to draw the inside of a box fullscreen (i.e. it should completely fill the viewport) using OpenGL. The box should have perspective. I presume I'll have to change the dimensions of the box depending on the viewport size but I'm not sure how to go about this. I'm trying to achieve something like the room in this image My questi...

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 to print 3d string in android

Please help me, now I am developing a screen saver by let the user input the string and I will bring this string to print out as a 3d string on the android mobile phone. Please suggest me in the android have function to do this or I have to use openGL ES to develop and how to do that. ...

Getting Face-Vertex meshes (vertxes and indexes arrays) from a 3D file format

I want to import a 3D model into a program that uses open GL. I will use glDrawElements() so I am going to need the vertexes and indexes arrays. The model is originally saved in a sldprt file extension but I don't think it will be hard to change it into another file format. Anyway, I want to know what the simplest 3D file format is. An...

3d engine for iPhone

Hi, all ! Which engine is best ? I've finded some engines : Ogre, Irrlicht and direct rendering from opengles (convert .obj files into buffer and rendering it). I've compiled Ogre - CeGUI works very ugly on iPhone... And Ogre has many-many files :) I need just rotate, zoom and object picking for static objects. Which method/engine is...

Android OpenGL ES - I can't make gluLookAt/gluPerspective work

Hi everybody, the following text is a bit lenghty as I wanted to make sure that people with similar problems that e.g. google this page can easily follow the exact problem and its solutions easily. But now on to my issue: I recently started programming OpenGL ES on an Android smartphone and ran into problems understanding how gluPerspe...

Need help with Direct 3D's LookAt function ..

I need some conceptual help with Direct3D's .... function. In their official documentation, they say that the computation that takes place can be summarized with this: zaxis = normal(At - Eye) xaxis = normal(cross(Up, zaxis)) yaxis = cross(zaxis, xaxis) xaxis.x yaxis.x zaxis.x 0 xaxis.y yaxis.y ...

What is a quant?

I am experimenting with gamestudio A8 and the unit used in the 3d world is quant. My question is. how many quants is a meter? I want to make some models in sketchup and I use meters there. I can convert the models to mdl. The problem is. When animating and moving objects. I need to know how many quants there are in one meter. I also ...