Tagged Questions
3
votes
2answers
67 views
Extract smaller frustum from camera frustum?
Background:
I was thinking of implementing multiselection by performing a frustum culling on a sub-part of the screen.
Problem:
Given total screensize, a rectangle on the screen (pos, size), and ...
-2
votes
0answers
66 views
DirectX or Opengl? Good resources [closed]
I am attempting to learn DirectX 11 for game programming (In c++).
I want to learn everything from the graphics pipeline and how to begin using DirectX11 to animating 3d graphics (such as characters) ...
-2
votes
1answer
45 views
How to use D3DXIntersectTri function to find intersected point?
How to calculate direction for D3DXIntersectTri function to find intersected point? And after getting the result in Distance how to get that coordinate(XYZ)?
0
votes
1answer
147 views
Making a point light follow the camera
I'm applying phong shading onto a single giant triangle, and I'd like the light's coordinates to coincide with the camera's coordinates in 3D space. In order to do this, whenever I update the camera's ...
3
votes
1answer
149 views
DirectX Unproject troubles
I have an orthographic projection and I try to unproject a point from screen space.
Following are the view and projection matrices:
var w2 = ScreenWidthInPixels/2;
var h2 = ScreenHeightInPixels/2;
...
2
votes
0answers
233 views
Where is the Shader Designer?
I have VS2012 Ultimate and I've been trying to access (find) the Shader Designer. I searched through MSDN's text and Channel9's videos, but they keep failing to mention how to access it...
Can ...
5
votes
3answers
170 views
Depth is disabled - How to turn on?
In XNA 3.1 is there any other way to disable depth in 3D Worlds using DirectX models other than
GraphicsDevice.RenderState.DepthBufferEnable = false;
?
The reason for my question is I have quite a ...
15
votes
2answers
810 views
What's the difference between mesh and a model?
Which one is created first? For example if a team worked on a graphical asset of a car, what would be a model and what would be a mesh of the car?
9
votes
5answers
17k views
Visual Studio 2012 and Game Development
Alright, I think it's a simple question, but I got difficulties to find some answers around.
I already read that XNA wouldn't be in Visual Studio 2012. I recently learned to use XNA, but since I ...
3
votes
2answers
197 views
How to reconcile depth ordering with minimal shader context changes?
We generally want to minimise shader-program switches (glUseProgram and all associated context changes) for the sake of performance. AFAIK it is not uncommon to render by shader program, i.e. group ...
1
vote
1answer
202 views
Highlight edge on 3d cube in directx
I want to make a 3d editor in DX9/XNA for a project I'm working on. I'm just thinking through how I would go about certain tasks and I'm stuck on one particular thing, which is crucial to making the ...
0
votes
0answers
195 views
DirectX/OpenGL materials -> Blender materials?
I'm writing an importer for a format with standard DirectX materials.
The material values are:
diffuse - r,g,b,a (floats)
ambient - r,g,b,a (floats)
specular - r,g,b,a (floats)
emissive ...
2
votes
1answer
489 views
What does multisampling skip or improve? (so it can be faster than supersampling)
I never really fully understood this, or found an article which explained all the steps in a friendly way.
I'll start with what I do know already (which I hope do not contain misconceptions). I'm ...
-1
votes
1answer
150 views
Camera not working
I made a camera in DX9. To move forward I press the Up arrow. To rotate on the Y axis I use the mouse. When I perform these movements on their own the camera moves at the speed I want.
However, if I ...
3
votes
2answers
113 views
How can I simulate multiple depth channels?
Here's what I'd like to achieve:
Rendering a first pass of objects in my scene, using standard depth comparison
Rendering another pass of objects in the same scene, but with the following rules:
A ...
0
votes
1answer
737 views
How to create modular/replaceable game/engine code interfaces with c++
I've spent some time when I can spare it experimenting with c++ and at the same time learning a bit about game programming. I like most thought I'd start with creating a simple game engine but with ...
5
votes
3answers
1k views
Height Map vs 3D Model Mesh
I'm currently working on a 3D PC game (written in C++ and DirectX 9.0) and I'm trying to find the best way to store level data in the memory.
The game's action takes place under the ground, so ...
4
votes
1answer
195 views
What is the purpose of mesh optimization functions?
I remember there is a specific function in Direct3D which optimizes a mesh or a 3D object in some way. What is the purpose of this function? How does it reorganize vertices to make it better?
1
vote
1answer
259 views
Frustum culling with an octree: one AABB per bone or one AABB per object?
I've constructed an octree for use in frustum culling. The question is, should I insert an AABB for each bone of each object, or just the one AABB for the object?
2
votes
1answer
254 views
Ogre 3D Visibility Advice
I would like an advice about some real-time rendering optimization.
I'm rendering a BSP level, by only using the mesh, textures, entities, and lightmaps, not using VIS at all.
I'm trying to make my ...
3
votes
1answer
395 views
Learning to code first game, few questions on basic game development and 3D
I've been programming for a while, and I'm concurrently learning how to make a basic game and slimdx, and wanted to talk to someone to hopefully get a few pointers. I've read that Tetris is the ...
2
votes
2answers
2k views
How can I check for Shader Model 3 support?
Currently I am working on a 3D visualization app. A requirement of my app is that host's graphics card supports Shader Model 3. How can I check for Shader Model 3 support?
I know that these versions ...
2
votes
2answers
616 views
Converting from different handedness coordinate systems
I am currently porting a demo from XNA to DirectX which, as I understand it, both have coordinate systems with different handednesses.
What are the things I need to bare in mind when converting ...
3
votes
2answers
438 views
loading 3d model data into buffers
I am using assimp to load 3d model data. I have noticed that each loaded model is made up of different meshes. I was wondering should each mesh have it's own vertex/index buffer or should there just ...
3
votes
1answer
202 views
Rudimentary 3D graphics in C++ .NET
I am looking to implement an extremely rudimentary FPS game with extremely rudimentary 3D graphics using C++ .NET and DirectX.
I'm not interested in any third party libraries or anything special like ...
10
votes
3answers
2k views
Why do pixel shaders not let us read directly from the framebuffer or the depth buffer?
Letting me sample the framebuffer or the depthbuffer in the pixel shader would be an extremely useful feature. Even just being able to know the depth or the color of whatever is behind the current ...
8
votes
5answers
618 views
Do you think it's Possible to go from C++ Straight to 3D (skipping 2D)
Do you think it's possible to go straight from Experienced C++ programming (5 or so years) straight into learning DirectX 3d?
I mean....i'd be starting with the basics, im more interested in setting ...
3
votes
3answers
680 views
What do you need to know in C++ before starting to program with DirectX
I was wondering what do you need to know in C++ before starting to program with DirectX?
I have only been programming in C++ (more for 2D games using SDL and learning the basics) for just over a ...
2
votes
4answers
10k views
Starting programming in 3D with C++
EDIT: There aren't sufficient enough tutorials for what I'm trying to do in Python, so I'm going to take my time and slowly build up my skills in C++. It's hard to trip and not land in a book of C++ ...
2
votes
2answers
1k views
3D game special effects, fire, lightning, water, and ice
I'm working on a 3d game using OpenGL and would like to take it in a fantasy direction. Specifically I'm thinking of having magic with effects for fire, water, ice, and lightning. My problem is I ...
5
votes
1answer
5k views
Importing a .x file to 3D Studio Max?
I've been googling this for a while and haven't been able to find anything (blenders importer does not work). How can I import a .x file to 3D Studio Max? There are heaps of resources in converting ...
5
votes
3answers
1k views
The pros and cons - DX9 moving to DX11 render?
We are a "nano" game dev company working on REFUSION.
DX9 renderer is almost done and question is: Should we move it to DX11 or not?
Anyone have experience with this?
Here are some videos from dev ...


