|
Well, i'm trying to write a plugin for a 3d application to read a certain 3d model format. I have it all worked out except for the bone part. The game the models come from came with some documentation about the file format used for the 3d models but its not very clear to me, so i was hoping maybe it would be to someone here, cause i'm really not that good with these things..
A bone in the format has the following properties: RestTranslate, RestMatrixInverse, SiblingID, ChildID and ParentID. The RestTranslate are just the coordinates of the bone in space. The siblingID, childID and parentID are the ID's of the sibling/child/parent bones but the part i dont get is the RestMatrixInverse which is supposed to give the "inverse orientation" of the bone, here's what description is given:
Field Size Comment
RestMatrixInverse Matrix34 The inverse orientation of the bone in the at-rest pose
The type of this field is a float[3][4] and somehow it contains the orientation of the bone but i cant get it right.. Do i have to inverse the matrix and then i can get the orientation in euler format? or what? .. if this looks familiar to someone please help me out!
Thank you for reading.
Kuniva
--------------------------------------------
|
|
|
|
|
everybody i know , cant compile it! i did all the steps over and over (like
adding the paths etc), but i always get build errors like:
error C2086: 'T2::size_type size_type' : redefinition
error C2086: 'T4::reference reference' : redefinition
and then some 100 more..
im getting crazy! there is nowhere any support, or written about this problems, am i so stupid, and doing something wrong???
maby it does not work with VS.NET 2003 ???
thanx for any input!
|
|
|
|
|
Seems like Vision is meant for MSVC 5.0/6.0. The following is a shot in the dark, though maybe an inspired one: replace
T2::size_type size_type with
typename T2::size_type size_type and similarly for the other errors. Tell us back if it worked.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I've done a speech application in Visual C++ 6 and it builds ok but when I run it I get this error message:
Debug Error!
DAMAGE:after Normal block (#68) at 0x00374420.
Please Retry to debug the application.
And it gives me Cancel, Ignore or Retry options.
If I Retry in that MessageBox, I get the error:
unknown software exception (0x80000003) in direction 0x1021376f
I've installed SAPI 4 and TTS L&H 3000 and I don't know why I get this software exception (I think these are the software what I have to install so my application runs).
Any suggestion? What's wrong? How could I find the trouble in the code?
Thank in advance!
I have no idea
|
|
|
|
|
satcat wrote:
How could I find the trouble in the code?
The SDK contains some functions to help with problems like these, I never use them. There are articles at codeproject on this subject. You could download a demo version of one of the memory validator programs: There's an add for "Memory Validator" at codeproject some where, I use "Bounds Checker". I recommend the book "Programming Applications for Microsoft Windows", must have for advanced programming.
Good luck!
INTP
|
|
|
|
|
satcat wrote:
DAMAGE:after Normal block (#68) at 0x00374420
That means you allocated a block of memory, then wrote past the end of the block.
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0.1! | RightClick-Encrypt
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
|
|
|
|
|
Yes, thank u
It's right now!!
|
|
|
|
|
hi all...
i need some help if anyone have an idea about
3d object reconstruction from 2d images
all u have may be useful....
algorithms...samples...libraries
please contact on ibrahimsaleh@msn.com
thank u all
ibrahim saleh
|
|
|
|
|
You should try OpenCv, an Open source image processing library from intel.
It contains some stereo vision applications which you might find useful. if you are using cameras it also contains camera calibration functions.
The library also has Hough Transforms which you can use to find known lines in your images which you could use in 3D transformations.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hi,
I would like to have all the UI strings in the resource file (including the strings for the messageboxes). How can I put them in the resource file and retrieve them?
Thanks,
|
|
|
|
|
You can either add them manually to the .rc file, or do it through the IDE. Just click the ResourceView tab in the Workspace pane. Double-click the String Table resource type, and press the INS key.
To retrieve the values, use LoadString() .
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Go to the resource view in the work space pane and select "String Table", then add your strings.
In your code call LoadString(...) (sdk version or CString version).
INTP
|
|
|
|
|
Go to Project->Add Resource menu item. Select "String Table" and Hit "New". The string editor should come up where you can add strings.
To retrieve them:
Using MFC:
CString strText((LPCTSTR)IDS_MY_TEXT);
or
CString strText;
strText.LoadString( IDS_MY_TEXT );
Non-MFC:
TCHAR pszText[MAX_TEXT];
::LoadString( GetModuleHandle(NULL), IDS_MY_TEXT, pszText, MAX_TEXT )
____________________________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. (Rich Cook)
|
|
|
|
|
Hi,
I got a big problem, beacause till now, I implemented all my visual lists as a normal CListBox where I had the very useful Function OnSelChange which told me, when the selection changed by Mouse or keyboard. But now, I do have some Lists with multi-columns which I can't handle with the normal CListBox (even not with tabulators). Of course, I took the Report-Style of the CListCtrl-Class. But now, I don't get notified, when the selection changes, which is very important beacause for each selection, there are other Things to be displayed. So my question is:
Is there Notification-Function for to get notified, if the selection changes?
Very lot of thank you for you.
|
|
|
|
|
Manderby wrote:
...CListBox where I had the very useful Function OnSelChange which told me, when the selection changed by Mouse or keyboard.
Now you must handle the LVN_ITEMCHANGED notification.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I have a remote Win 2K computer on my network which is sharing two folders and these folders are writable to me because I can create files within them. However, when I call NetShareGetInfo ("Path",502,etc. etc.) I get "Access Denied" error because according to documentation I have to be member of admin group on the remote computer.
My question is how can I understand if a share is writable or not ?
I tried to use GetFileSecurity API but I failed because it is too complicated for me. I could not understand how to use it.
Which API I should be using and how ?
Can somebody help me with this please.
Thanks,
Orcun Colak
|
|
|
|
|
Hello!
Try to use
SHPathPrepareForWrite
GetAttributesOf
SHGetFileInfo with SHGFI_ATTRIBUTES
Have a nice day
|
|
|
|
|
how can i communicate with an usb-printer?
the programm for my printer doesn't work korrektly. so i'm going to write a new one.
i hope somebody could help me.
thank you BladeIII
(No Vampires but Programmers)
|
|
|
|
|
When I try to use
pIAMM->DeviceNumGet(WAVE_MAPPER);
I get the error 'WAVE_MAPPER' : undeclared identifier
I've read I can use WAVE_MAPPER if a specific device is not set but, must I declare WAVE_MAPPER?
I have no idea
|
|
|
|
|
What class does DeviceNumGet() belong to? Have you #includ ed the right .h file(s)?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
It is a member function of the IAudioMultiMediaDevice interface. I have just realised I've forgotten a needed .h file as you said.
Thank you!
|
|
|
|
|
Is there a standard way in c (not c++) to down cast
and get the maximum value if "loose significant digits"?
e.g.
/* ISO-c99: */
#include <stdint.h>
int16_t cast32To16( int32_t the32)
{
if( the32 => INT16_MAX )
return INT16_MAX;
if( the32 <= INT16_MIN )
return INT16_MIN;
return (int16_t) the32;
}
Friedrich
|
|
|
|
|
Ralf Friedrich Hain wrote:
Is there a standard way in c (not c++) to down cast
and get the maximum value if "loose significant digits"?
Answer: No!
INTP
|
|
|
|
|
Hi, can someone tell me how I can do to have a pointer from my ToolBar ?
because : I put 2 ComboBoxon the ToolBar and I want to initialise it from the App or the View and select an item before it appears.
Thanks.
|
|
|
|
|
((CMainFrame*)AfxGetMainWnd())->m_wndToolBar
cheers
|
|
|
|