I'm looking for a simple C 3D library that is similar to Visual in VPython.
Ideally, I can describe objects and position them and then change the camera view, etc. Simple usage is important.
In a way, it would be similar to retained mode in D3D...
Thanks.
...
I have a point, let's say p(0.0, 0.0, 20.0) which I want to rotate about point a(0.0, 0.0, 10.0) in XZ plane. What is the simplest way to do it? I am using Qt with QVector3D and QMatrix4x4 to perform transformations. Everything I can think of is something like that:
QVector3D p(0.0, 0.0, 20.0);
QVector3D a(0.0, 0.0, 10.0);
QMatrix4x4 m...
I'm creating a dice game for the iPhone. I'm using SIO2 as engine, but I think this question is more general OpenGL-related.
Since the iPhone lacks support for anti-aliasing, my dice looks kind of edgy. If possible, I'd like to make the edges of the die rounded and smooth instead of sharp. I've found one app, MotionX, that manages to d...
Problem Statement:
I have the following problem:
There are more than a billion points in 3D space. The goal is to find the top N points which has largest number of neighbors within given distance R. Another condition is that the distance between any two points of those top N points must be greater than R. The distribution of those point...
Starting with a 3D mesh, how would you give a rounded appearance to the edges and corners between the polygons of that mesh?
Without wishing to discourage other approaches, here's how I'm currently approaching the problem:
Given the mesh for a regular polyhedron, I can give the mesh's edges a rounded appearance by scaling each polygo...
i'm reading <<3D math primer for graphics and game development>>
By Fletcher Dunn and Ian Parberry, on page 170, the logarithm of quaternion is defined as
log q = log([cosa nsina])
≡ [0 an]
i don't see how does log([cosa nsina]) equals to [0 an], can anyone help me out?
thanks.
...
I am developing a simple iPhone app, which:
retrieves data from the server
presents the data
In order to present the data better I want to add nice 3d dynamic objects, for example:
a car with spinning wheels next to car sales bar chart.
power plant with smoke coming out of the chimney next to CO2 emission numbers
The questions a...
Hi,
I have a very simple basic bar's graphic like this one
but i want to display the bars with some 3d effect, like this
I just want the bars to have that 3d effect...my code is:
fig = Figure(figsize=(4.6,4))
ax1 = fig.add_subplot(111,ylabel="Valeur",xlabel="Code",autoscale_on=True)
width = 0.35
ind = np.arange(len(values))
rects ...
I have been working on Android for a few months. Now i want to jump to gaming in Android. So are there any resources, ebooks, or tutorial where I can study game development be it 2D or 3D.
Thanks.
...
[I'm going to be interviewed for a position, and I don't want to oversell myself...]
I can do just about anything in Objective-C (some things need a lot of code) in 2D, but I haven't actually learned any C fundamentals (except as related to Obj-C). For instance, if an Array is not an NSArray I don't know how to work with it. That said, ...
Heey,
Does anybody know how to reproduce the books animation?
I don't mean the page flip while reading. I mean the opening and closing of the cover while getting it from the bookshelf?
Instead of zooming in and out, i just want to flip it from the left side of the screen.
Thanks
...
The following code puts a cube at (0, 0, 0) and another at (0, .5, .5) and each cube is (.5, .5, .5) in dimension. I'm trying to rotate the view that the screen gets to one like this but instead I get this view . Also, I realize I got the colors backwards.
Anyway, this is my code so far:
import com.sun.j3d.utils.geometry.*;
import com...
I want to know how to calculate rotation angles using inverse kinematics. I am planning on using this for real time 3d animation. Anyone know of some good literature that details a specific solution?
...
So I need to find out where the control points would be for a cubic bezier curve when only knowing points on the curve, the points can lie in 3D. It would be ideal if I could do this for any number of points on the curve. Most of what I have found deals only with 2D, or only for 4 points.
...
I'm using OpenTK for a game in C#, and it doesn't come with the project and unproject functions, which convert between world and screen coordinates. Well, it does, but they're deprecated and I couldn't get them to work. I took a shot at implementing them myself based on the opengl spec (see left hand menu, gluProject and gluUnProject, an...
I prefer C# as a language over Java, but I have been unable to find anything similar to the jMonkey Engine for Java. I want the feature of just being able to simply add blocks (called Box in jMonkey Engine) to my world instead of loading models.
Maybe I am just missing something, but I haven't found anything similar in any of the C# th...
I would like to create a game in wireframe mode however without the glPolygoneMode command I don't know how I would do it. Is it something I could code myself with what is available? I'm completely new to opengl. If anyone has done this and has the code snippet I would love to see it. Any help is appreciated.
...
I have a C# program that uses a production grammar to generate 3D models of trees and flowers and similar organic entities (see wikipedia entry for more info on L-Systems) - when I'm generating a large tree with leaves, I (expectedly) get exponential growth in the string that would go up to 100's of gigs if I'd let it (and I'd like to)....
I'm looking for a VERY easy to use 3d game engine. I want to program only the logic of the game, and don't want to have to concern myself with graphics. I just want to be able to download a model, put it in the game, and start programming the logic. I would preferable want to program in a scripting language like Python.
I just want to ...
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....