Hi, great camera work!! I am a complete noob at this so forgive me but how difficult would it be to add this type of functionality: Left click somewhere and have the camera automatically move to that spot, sort of like neverwinter nights or diablo type game? Thx
cool i got to work it to work aswell:) thanks sooooooo much!!!
but i get these warnings!
what does no newline at the end mean?im running in safe mode becuase my pc wont acutally log into windows becuase it restarts,stupid viruses. so i cant run my projects:(
i dont konw if the warnings are causing my project to close down. But with my older projects i compiled do not work now:) so i think its just safemode,i hope the warnings arent stopping my project to work:(
I'm really busy and I did not take the time to update the cam. So thank you very much. Please, let me know the changes (or I will make a diff from previos).
Xter.
Return to Irrlicht after years... I'm lovin it. It's hard to be a Man ! Si vis pacem para belum
rs199483 wrote:Hi, great camera work!! I am a complete noob at this so forgive me but how difficult would it be to add this type of functionality: Left click somewhere and have the camera automatically move to that spot, sort of like neverwinter nights or diablo type game? Thx
In fact, that doesn't really concern the camera itself.
I guess that you must retreive the XY screen coord of the cursor, then use the irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates and irr::scene::ISceneCollisionManager::getCollisionPoint functions.
Probably one of the most interesting piece of 3D code - after camera - in a 3D RPG. Good luck
Xter.
Return to Irrlicht after years... I'm lovin it. It's hard to be a Man ! Si vis pacem para belum
By the way, I thnik that WoW camera behavior is much more up to date that the one I sued for that camera. Maybe I will update that cam to provide a WoW style of camera.....
Return to Irrlicht after years... I'm lovin it. It's hard to be a Man ! Si vis pacem para belum
I'm really busy and I did not take the time to update the cam. So thank you very much. Please, let me know the changes (or I will make a diff from previos).
Xter.
Just diff it, xterminate. lug didn't do much to get it to work with v1.2 irrlicht. xterminate writes good code. lug not worthy!
Class EventReceiver : public IEventReceiver
{
virtual bool OnEvent(SEvent Event)
if (event.EventType == irr::EET_KEY_INPUT_EVENT&&
!event.KeyInput.PressedDown)
{
switch(event.KeyInput.Key)
{
case KEY_KEY_W:
{
MyModell->SetFrameLoop(0,3000)
}
return true;
}
}
return false;
}
};
I run the prog.,and if i press the "W" button,the app is crashed,with acces violation fault...
You say "The CCameraRPGSceneNOde not handle the character animation,inherit a class from this CCameraRPGScneNode class",but How do i????
You should modify the code of the camera to add support of animation. I still offer support for the camera (question about source?), but I have no longer time to help you in designing complex camera behavior based on this camera.
Xter.
Return to Irrlicht after years... I'm lovin it. It's hard to be a Man ! Si vis pacem para belum
I feel like a n00b here but i can get the camera to compile but as soon as it loads the XML file the program crashes. Looking in the irrlicht console, everything loads fine as all of the textures are there but unless i comment out:
smgr->setActiveCamera( cam );
it crashes no matter what i do. When this line is commented out though all I see is white with the odd flicker of black every now and then.
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\irrlicht-1.3\examples\100. player camera rpg\irrcamerarpg\irrcamerarpg\ccamerascenenode.h 101
Error 2 error C2143: syntax error : missing ';' before '*' d:\irrlicht-1.3\examples\100. player camera rpg\irrcamerarpg\irrcamerarpg\ccamerascenenode.h 101
Error 3 error C2433: 'irr::scene::CCameraSceneNode::SViewFrustrum' : 'virtual' not permitted on data declarations d:\irrlicht-1.3\examples\100. player camera rpg\irrcamerarpg\irrcamerarpg\ccamerascenenode.h 101
Error 4 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\irrlicht-1.3\examples\100. player camera rpg\irrcamerarpg\irrcamerarpg\ccamerascenenode.h 101
I found out what was the problem. Incompatible version of Irrlicht. This code runs with Irrlicht 1.1 engine. Could author make the code compatible with Irrlicht 1.3 engine?? <sorry for my english>
This problem *should* be easy to solve, but I have been working at it for two days without success. When I try to compile the RPG scene node with Irrlicht 1.3, CCameraRPGSceneNode.cpp compiles, but CCameraSceneNode.cpp will not compile with the Irrlicht SDK 1.3. I have tride replacing CCameraSceneNode.cpp and .h with the ones from Irrlicht 1.3, still with no success. The compiler (mingw32) reports errors in plane3d.h, part of Irrlicht. I have a feeling that I'm not including something into CCameraSceneNode.cpp, but any suggestions would be nice.
For 1.3, you need to rename OnPostRender to OnAnimate, I think. This gets it to compile at least, and seems consistent with the built-in FPS camera. I'll try to post back later whether it works with 1.3 or not, once I get the rest of my code (not related to the camera) compiling with the 1.3 changes.