|
Some recent topics started on our forums |
Finding rotation angles from a normal
|
Hello, sorry if this is a newbie question, but it's really puzzling me since I have a very modest math knowledge.
I would like to know or to see an example of how to calculate the 3 rotation angles for a vertex point, knowing its normal.
For ex... |
Posted September 26, 2010 12:35:41 PM
|
Help needed for parsing algorithm
|
I'm trying to find a clever way to parse the following text file (well, a part of it) so that it would be organized in nodes (i'd like to end up with a c# treeview).
version // NODE
{
number 8.2
}
morphBinaryFile grizzly.... |
Posted April 11, 2010 12:19:57 PM
|
C#: populating treeview recursively
|
Hi, I'm trying to populate a treeview getting data from an array, but I get a GPF and can't understand what's going on.
Here is the function I'm using:
private void PopulateTreeView(int parentId, TreeNode parentNode)
{
... |
Posted April 10, 2010 12:37:46 PM
|
C vs. C++ extern
|
Hi, I have a problem using extern declarations in a C/C++ mixed solution.
The following code works perfectly if both files are .cpp
//main.cpp
int myVar;
//client.cpp
extern int myVar;
void test()
{
myVar=99;
}
But if I rename clien... |
Posted May 14, 2009 11:12:24 AM
|
C++ multi-level tree search
|
Hi, I'm not very experienced with C++ and here is a screenshot that shows what I'd like to accomplish: I'd like to be able to use a recursive function or an automated mechanism that can find all the children values of a certain node.
For example:
... |
Posted April 10, 2009 6:56:47 PM
|
VC++ : change menu text colors
|
This seems to be a quite difficult task, and I could not find any reference or sample.
I know how to change the background color of a window menubar, but how can you change the text color as well ?
Is it possible ? |
Posted March 31, 2009 7:27:51 PM
|
memset: compile error
|
Hi, I'm using VC++ 2003 and I'm getting a compile error with the following code:
#include <cstring>
MEMORYSTATUS memory;
memset(&memory,sizeof(MEMORYSTATUS),0);
cube.cpp(151) : error C2501: 'memset' : missing storage-class or type spe... |
Posted March 31, 2009 6:39:34 PM
|
16bit depth buffer issue
|
Hi, I'm developing a small application on an iPhone, which has a 16 bit depth buffer. I obviously ran into z-buffer fighting when rendering the terrain.
Reading some at www.opengl.org, they advise to use a multipass tecnique:
12.080 There is... |
Posted January 9, 2009 7:07:56 PM
|
[SOLVED] glDrawElements issue (screenshots provided)
|
Hello, I have a problem figuring out how to address indicies for a later call at glDrawElements.
I have a 1x1 test grid (so just 2 triangles) which is rendered correctly using glDrawArrays. The 6 verticies are setup like this (in this screenshot the... |
Posted January 6, 2009 6:15:31 AM
|
C++ question
|
Hi guys, what does the following expression ?
result = (float) nX + ( ( nTri == 1 || nTri == 2 || nTri == 5 ) ? 1 : 0.0f );
Thanks ! |
Posted December 31, 2008 10:37:18 AM
|
View All Topics Started By This User
|
|
Some recent replies made on our forums |
Finding rotation angles from a normal
|
Thank you very much wforl, that helped to solve problem 2 ! |
Posted September 27, 2010 3:19:45 AM
|
Finding rotation angles from a normal
|
Well, I prepared an image that should explain better what I'm trying to do.
Basically is a terrain with some objects deployed on it.
First problem: object are deployed vertical to ground plane (red ones), while I'd like to have them p... |
Posted September 26, 2010 4:48:24 PM
|
Finding rotation angles from a normal
|
Thanks for your answer Bob. What if I'd not care about the rotation angle around the normal, and I'd just like to gather the other two ?
|
Posted September 26, 2010 3:09:37 PM
|
Help needed for parsing algorithm
|
Thanks but too complicate. |
Posted April 11, 2010 1:34:10 PM
|
C#: populating treeview recursively
|
That's right, I can see now that it just makes an infinite loop. But still can't figure out how to make a recursion out of it. |
Posted April 10, 2010 1:07:03 PM
|
C vs. C++ extern
|
Well I think it's better if I start to convert those C files into C++: I guess mixing both C/C++ can be done but in my case, having a quite complex project, it's better to uniform sources. |
Posted June 2, 2009 2:04:52 PM
|
C vs. C++ extern
|
Thank you very much, again ! |
Posted June 2, 2009 11:48:33 AM
|
C vs. C++ extern
|
Thanks for your help guys !
In the header.h file I have put the following code as you suggested, but with a little difference:
#ifdef __cplusplus
extern "C" {
#endif
int myVar;
#ifdef __cplusplus
}
#endif
I ran a test including the... |
Posted June 2, 2009 7:20:39 AM
|
C++ multi-level tree search
|
I hope now is a bit more clear. |
Posted April 10, 2009 7:37:54 PM
|
C++ multi-level tree search
|
I edited the post, since I'm using a structure array:
struct BranchesStructure {
int treeID;
int parent;
float length;
int meshPoints;
int meshSteps;
float startRadius;
float endRadius;
float directionAngle;
int paren... |
Posted April 10, 2009 7:07:51 PM
|
View All Replies Made By This User
|