|
What is an animation file ??
Sorry but you will have to be much more explicit because you can do whatever you want with OpenGL. It seems you are not really understanding what you are doing because an 'animation' is not something that is default in OpenGL.
Furthermore, each time you are constructing your scene, you are saying to OpenGL which elements to draw. So, if you want to draw something else, just tell OpenGL to draw something else. You are in full control of everything, so I don't understand your problem at all...
|
|
|
|
|
Hi,
My animation actually done by using the .obj format file which is created by the 3Ds Max. Total 5 .obj files were used to generate the "animation". Basically just like read all the 5 .obj file then render it using OpenGL so will see animation effect.
As im not really familiar with the OpenGL, all learn from online tutorial. Normally we just need to write program under the drawscene function then able to render the model. But now integrate OpenGL with MFC. Then when click on button it should render another model. So the OpenGL window part should I need to redo all the initialization in order to render new model?
Like when user click on button, the OpenGL window should clear screen and redraw the model. hopefully u can understand. thank you.
|
|
|
|
|
OpenGL doesn't support loading any file format (as far as I know). So, you either wrote your own loader or used a third party library.
In fact what you are asking is the most basic thing in the chain: if you are already able to load and display 3DS max file, simply displaying another one should be a piece of cake...
How are you loading your model ? How are you displaying it ? What you should do is reload a new model when the user clicks the button and display the new model. So, exactly the same as you did for the first model.
My feeling is that you don't understand what you are doing: you try to put different things found on several tutorials together but you don't know what they do. I strongly suggest to start with the begining (both for MFC and OpenGL), perhaps buying a book or two. This will be more efficient than what you are doing right now.
|
|
|
|
|
Why i have in the debug window this warning message:
"Warning: GetWindowMenuPopup failed!"
What does it mean? Is it important?
I have a MDI application.
Thanks in advance for your help.
Regards
Nikesh
|
|
|
|
|
Nikesh Jagtap wrote: What does it mean?
It means a popup menu failed to load...
Nikesh Jagtap wrote: Is it important?
Probably not..
...but we can't answer that. Only you know if you care about this popup menu.
When do you get this message? Does it happen when you single steop through your code? Does something you wanted to happen fail? Have you deleted a menu that matters?
You can search for this text in the MFC source, put a breakpoint there, and find out why some part of your software is loading a popup menu.
Go hunt it down! Even if you decide you don't care, it's a good learning experience.
Iain.
|
|
|
|
|
Bram van Kampen
|
|
|
|
|
Hi all,
I have written a program in vc++ 6.0, now i want to convert that program into vc 2008. What i have done is i have opened my .dsw(Vc 6 file )in Vc2008 enviornment, it asked do you want to convert files i clicked on yes to all button, but when i compile the program, it gives error
error C2471: cannot update program database 'f:\data_restorer_25_oct\debug\vc90.pdb'
can anybody please tell me how to resolve this???
Thanks in advance
|
|
|
|
|
Did you try to clean the project ? Or maybe remove all the temporary files (maybe just the *.pdb file is enough).
|
|
|
|
|
i tried clean rebuild all and i deleted all the project file and opened it using .dsp file but still its giving same errors...
|
|
|
|
|
VCProgrammer wrote: i deleted all the project file and opened it using .dsp file
The dsp file is VC6, so it will convert your project once again, right ? What about removing only the pdb file and open directly the VC2008 solution file ?
|
|
|
|
|
is there some method to exeucte code(source file) during installation of software setup(using inno setup) like suppose if i want to generate Unique id in a file using some code during installation,
i hv file containing code for key generation but no idea how to exeute it during installation .
|
|
|
|
|
I'm a VC++ novice. Now i have a lot of ready-made Perl Script files,i want invoke the Perl document from VC++ console application,How to integrate these Perl documents together ,you can help me?It would be useful to provide some C++ code ,Thanks !
|
|
|
|
|
Why pick CPP.(and not say C# or Basic,java, or .NET)
If you're serious, about cpp, I'm sure it can be done, but probably with a complete re-write. That means you'll have to learn CPP first. I assume your existing code has a gui. Do you want to use MFC to rewrite? or use the SDK.
CPP is a Programming Language, essentially for stand alone computers.
Pearl is a programming Environment, which produces scripts to be excecuted largely on another computer or on somebody elses behalf.
Bram van Kampen
|
|
|
|
|
Thanks Bram van kampen.
Perhaps you get me the meaning of.
//////////////////////////////////////////////////////////////////////////////////
e.g:
#include <extern.h>
#include <perl.h> /* from the Perl distribution */
static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
int main(int argc, char **argv, char **env)
{
char *args[] = { NULL };
my_perl = perl_alloc();
perl_construct(my_perl);
perl_parse(my_perl, NULL, argc, argv, NULL);
/*** skipping perl_run() ***/
perl_call_argv("showtime", G_DISCARD | G_NOARGS, args);
perl_destruct(my_perl);
perl_free(my_perl);
}
//////////////////////////////////////////////////////////////////////////////
Im compile it, but return:
error LNK2001: unresolved external symbol _perl_alloc
How do i do?
By the way, I would like to document how PERL document will be added to the c + + project files inside?
TKS!!!
|
|
|
|
|
what is the difference of “class instance” and “object”?
thanks!
|
|
|
|
|
An object is an instance of a class.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
then, why does rational rose has two concepts:“object” and “class instance”?
|
|
|
|
|
WangZHua wrote: why does rational rose has two concepts
Rational Rose is one of the most irrational pieces of software I have ever tried.
|
|
|
|
|
I can't speak of another's opinion. Perhaps you should ask them.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Both are same if that object is of that class.
It will be different if object is a structure object.BCZ in structure bydefault data members are public where in class it is private.
In C structre---------->variable
C++ it will be considered as object.
|
|
|
|
|
all right,but,i think it is not perfect.
i think,object is the description of class,instance is the dynamic concept.
the method of object is description of class 's behaviour.
the method of instance is description of module ‘s behaviour.
is not it?
|
|
|
|
|
What language are you trying to disect.
An object is a lump of data that can be managed by a single handle, by whatever means, either by knowing th precice interpretation of the object, or by knowing how to handle it from the 'outside', and accessing it because you know it's type. A Class is a CPP construct, it is a Prototype, or blueprint of a cpp object.
an Instance (of a class or type) is an actual variable of the type, and as such, an object. All cpp instances are objects, Not every object is a CPP class instance. If you understand the underlying ideas, the distinction becomes trivial, and at the same time futile!
Bram van Kampen
|
|
|
|
|
WangZHua wrote: “class instance”
?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Is there an API to find the LAN address, (e.g, 10,1,10,4)on a very small peer to peer network (i.e. No DNS Service explicitly provided), and is there a way of associating such addresses to a Name.
regards,
Bram van Kampen
|
|
|
|
|
What about NetServerEnum() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|