Page 8 of 11

Posted: Thu Dec 28, 2006 7:20 am
by monkeycracks
lug wrote:xterminhate -- I hope you don't mind. I've updated your source files for your cam v8 to work with v1.2 of irrlicht.

Download:

http://www.megaupload.com/?d=09RQ53DM
Downloading now, if it works you're my hero. <3


UPDATE :
Yay it worked.

Posted: Fri Jan 05, 2007 2:31 am
by rs199483
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

Posted: Fri Jan 05, 2007 10:48 am
by abraham
cool i got to work it to work aswell:) thanks sooooooo much!!!

but i get these warnings!
Image

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:(

Posted: Mon Jan 08, 2007 10:05 pm
by xterminhate
lug wrote:xterminhate -- I hope you don't mind. I've updated your source files for your cam v8 to work with v1.2 of irrlicht.

Download:

http://www.megaupload.com/?d=09RQ53DM
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.

Posted: Mon Jan 08, 2007 10:12 pm
by xterminhate
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.

Posted: Mon Jan 08, 2007 10:15 pm
by xterminhate
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.....

Posted: Thu Jan 11, 2007 3:44 am
by lug
xterminhate wrote:
lug wrote:xterminhate -- I hope you don't mind. I've updated your source files for your cam v8 to work with v1.2 of irrlicht.

Download:

http://www.megaupload.com/?d=09RQ53DM
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. :D lug not worthy! :(

Posted: Sun Jan 21, 2007 10:21 am
by MViolence
Ciao,this camera is very good,but i have a problem with the characzer animation....
I create a class :

Code: Select all

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????

Pls Help me, :roll:
[/code]

Posted: Sun Jan 21, 2007 1:47 pm
by xterminhate
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.

Posted: Mon Feb 19, 2007 3:58 pm
by MKiG
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.

compiling error

Posted: Tue Mar 20, 2007 12:03 am
by pbot
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

How to run this project??

Posted: Wed Mar 21, 2007 9:23 pm
by pbot
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>

Posted: Thu Mar 22, 2007 3:50 am
by BlindSide
Move this to FAQ, sticky it, or just add the camera to irrlicht...

Problems in 1.3

Posted: Mon Mar 26, 2007 6:16 pm
by init512
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.

EDIT:
The problem I'm having is identical, exactly, to the one described here:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=19934
Including irrlicht.h into CCameraSceneNode.cpp or .h does not seem to work.

Thanks,
Marc

Posted: Wed Apr 04, 2007 9:03 pm
by ssexton
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.