Tagged Questions
1
vote
0answers
30 views
Blender: calculation of elevation and rotation angle from plane
I have a generic plane (any location, any rotation around every axis) with its normal axis passing by the center. Then I have a generic point and I need to find the elevation and the rotation angle ...
4
votes
2answers
190 views
Displaying (3D) objects' name above them
The Elder Scrolls: Morrowind has a rather interesting way to display each focused objects' name. It's all a bit fuzzy in my memory right now, but the most important part I remember perfectly: the ...
1
vote
1answer
67 views
A controlled trapezoid transformation with perspective projecton
I'm trying to implement a controlled trapezoid transformation in Adobe Flash's ActionScript using the built-in perspective projection facility. To give you an idea of how the effect looks like:
...
1
vote
1answer
82 views
Moving an object toward another object on sphere knowing their quaternions
I have a sphere centered in world origin. On the sphere surface I have two objects and I know their quaternions (rotation around sphere).
Currently my movement works on Vector2 inputs (cannot change ...
0
votes
1answer
34 views
How to linearly blend between multiple points, deviating from a default point?
I have a set of 3D points that I need to "blend" between. Lets say I have points [A,B,C] and I have the amount I want to blend each as [0.5, 0.2, 0.8], how can I blend between these points with the ...
1
vote
1answer
74 views
How to linearly “blend” between multiple 3D points?
I have a set of 3D points that I need to "blend" between. Lets say I have points [A,B,C] and I have the amount I want to blend each as [0.5, 0.2, 0.8], how can I blend between these points with the ...
23
votes
1answer
756 views
How do you turn a cube into a sphere?
I'm trying to make a quad sphere based on an article, which shows results like this:
I can generate a cube correctly:
But when I convert all the points according to this formula (from the page ...
1
vote
2answers
681 views
Wrong faces culled in OpenGL when drawing a rectangular prism
I'm trying to learn opengl. I did some code for building a rectangular prism. I don't want to draw back faces so I used glCullFace(GL_BACK), glEnable(GL_CULL_FACE);. But I keep getting back faces also ...
5
votes
4answers
246 views
Would like some help in understanding rendering geometry vs textures
So I was just pondering whether it is more taxing on the GPU to render geometry or a texture. What I'm trying to see is whether there is a huge difference in rendering two scenes with the same setup:
...
9
votes
3answers
319 views
Are the first 3 parameters that describe a 3D plane actually a 3d vector?
A 3d plane is typically defined as a,b,c,d. Are a,b,c actually the x,y,z coordinates of a 3d vector, with d defining the rotation of the plane, something like axis-angle rotation data?
3
votes
3answers
678 views
Textureing subdivided Icosahedron in XNA, seam problem
*Look below for the updated source code*
I have started to to make some different types of objects and create them by code in XNA. Right now I have finished the code for creating a Icosahedron. And ...
1
vote
2answers
647 views
Render a polyline with rounded joints
I have a list of points (3D) and want to draw a line connecting all points with a specified width. The line should be rendered in OpenGL (using OSG) as triangles.
The real challenge of this task is to ...
4
votes
2answers
238 views
Repairing back-facing triangles without user input
My 3D application works with user-imported 3D models.
Frequently, those models have a few vertices facing into the wrong direction. (For example, there is a 3D roof and a few triangles of that roof ...
4
votes
1answer
156 views
Running geometry shader only once
(Unfortunately couldn't find the answer myself)
Does a neat way to cache the geometry shader results in Direct3D10 or OpenGL exist? (preferably Direct3D10).
I'm building my geometry based on texture ...
0
votes
0answers
93 views
Drawbacks for using only quads for model geometry [duplicate]
Possible Duplicate:
Why do game engines convert models to triangles compared to keeping it as four side polygon
What are the main drawbacks for using "only" quads for model geometry?
Does ...
2
votes
1answer
3k views
How to calculate a 3x3 rotation matrix from 2 direction vectors?
I've got 2 direction vectors, for the X axis and the Y axis of the object. How do I calculate the rotation matrix of the object using these?
4
votes
2answers
351 views
OpenGL, Offset and Camera Space
I was reading chapter 4 of the Arcsyntesis OpenGL tutorial when I came across this line in the GLSL shader.
vec4 cameraPos = position + vec4(offset.x, offset.y, 0.0, 0.0);
About it, the tutorial ...
5
votes
2answers
612 views
Geometry System of Populous: The Beginning
I want to to develop a game like Populous: The Beginning with my friend. But we could not find out what type of geometry they have used for the world.
We know that
- all tiles have the same size
- ...
6
votes
2answers
424 views
Perspective in early pseudo-3d games
Please take a look at the screenshot below, from the old classic Space Harrier. My question regards the curved perspective on the chequerboard 'ground'. It's got a strangely curved geometry (I ...
1
vote
2answers
428 views
Rotating coordinate system
Lets say that you want to rotate simple cube around fixed point in center.
Is it possible to use such coordinate system, that you need to use only sine and cosine in order to rotate?
I have done ...
