Search found 38 matches

by Elazul
Sun Jul 15, 2007 5:43 am
Forum: Beginners Help
Topic: trying to create a colliding ray from an on screen cursor
Replies: 3
Views: 391

thanks trivtn
by Elazul
Sun Jul 15, 2007 3:44 am
Forum: Beginners Help
Topic: Deadline and i'm desperate,this should be Easy for you pros
Replies: 1
Views: 351

Deadline and i'm desperate,this should be Easy for you pros

Before anyone tells me to search the forums, i have, and everything i've found is either out of date (irrlicht 1.2 and below) or irrelevant, or is someone asking just like me and not getting an answer, or has a solution that just doesn't work.I've looked into the IcameraScenenodeFPS and tried to ...
by Elazul
Sat Jul 14, 2007 4:01 am
Forum: Beginners Help
Topic: four questions associated with camera-enemy interaction
Replies: 4
Views: 501


1. You can use the ISceneCollisionManager::getRayFromScreenCoordinates() method along with the ICursorControl::getPosition() functions to get a line from the camera through the mouse cursor.


i tried using the following code :


core::line3d<f32> line;
core::position2df RightMousePosition(RvX ...
by Elazul
Sat Jul 14, 2007 2:50 am
Forum: Beginners Help
Topic: Custom Fps camera
Replies: 9
Views: 1500

i tried modding that code, and placing it under my mouse movement event handler as follows :

Global Declarations to make my life easier

const f32 MAX_VERTICAL_ANGLE = 88.0f;
const f32 RotateSpeed=100;
const f32 MoveSpeed=100;


Under the mouse movement function:


const u32 camIsMe = smgr ...
by Elazul
Sat Jul 14, 2007 12:29 am
Forum: Beginners Help
Topic: trying to create a colliding ray from an on screen cursor
Replies: 3
Views: 391

trying to create a colliding ray from an on screen cursor

i'm trying to use the position of an on screen cursor instead of the center of the screen for collision, the code i'm using (Based on what i understood from graphics programming is as follows) note that ms->pt.x and ms->pt.y is a custom input event handler code to point out where the mouse cursor is ...
by Elazul
Sat Jul 14, 2007 12:04 am
Forum: Beginners Help
Topic: Custom Fps camera
Replies: 9
Views: 1500

No, don't........
what the... Omar, stop trying to help if you're not sure, you'll only confuse ppl more.
If he does that his camera will ALWAYS look in the same direction.

anyway, look for this section.
It teaches how to rotate a vector based on orientation.
Based on that, do your rotation bit ...
by Elazul
Fri Jul 13, 2007 6:02 pm
Forum: Beginners Help
Topic: Custom Fps camera
Replies: 9
Views: 1500

i'm trying to make the camera move around like an fps cam, (the code omar gave me above didn't work);

tell me, what is wrong with this code;
ms->pt.x
and ms->pt.y
are the x, y positions of a mouse cursor on screen... regardless i think if it's a fps camera, then i shouldn't need to use the edges of ...
by Elazul
Thu Jul 12, 2007 4:00 am
Forum: Beginners Help
Topic: A couple Questions
Replies: 3
Views: 292

i don't know about 1,2 and 3

but the easiest way to do the sound thing, is to use Irrklang

and just use the audioplay function to play that sound file whenever you pretty that button.

such that :



case KEY_KEY_T:
{
Audioengine->play2D("hello.wav"); }


Check the irrklang tutorials
by Elazul
Mon Jul 09, 2007 9:27 pm
Forum: Beginners Help
Topic: four questions associated with camera-enemy interaction
Replies: 4
Views: 501

thanks

1- the main problem with point number 1 is i have 2 cursors on screen, not one....

4- so i should make a thin lazer line as a billboard?

btw, is it at all possible to explain to me how to make a custom camera using a custom event handler (not irrlicht based) , no one seems to know...
by Elazul
Mon Jul 09, 2007 8:32 pm
Forum: Beginners Help
Topic: Custom Fps camera
Replies: 9
Views: 1500

are x, y and z relative?

i mean changing the camera like that, wouldn't move me forward or backwards or left and right right?

instead it would change my position inside the envirnoment right?

or are they relative?
by Elazul
Mon Jul 09, 2007 8:26 pm
Forum: Beginners Help
Topic: four questions associated with camera-enemy interaction
Replies: 4
Views: 501

four questions associated with camera-enemy interaction

1- I know through the tutorials, that the code to collide with an enemy using a normal fps camera is basically using this

core::line3d<f32> line;
line.start = camera->getPosition();
line.end = line.start + (camera->getTarget() - line.start).normalize() * 1000.0f;


thing is, my virtual lines ...
by Elazul
Sat Jul 07, 2007 12:28 am
Forum: Beginners Help
Topic: four quick noobish questions
Replies: 18
Views: 1433

i've tried it out, after fixing the syntax errors, and it doesn't really work, i don't understand why... regardless, thanks for the help.


Alf shokr ya me3alem :D
by Elazul
Sat Jul 07, 2007 12:03 am
Forum: Beginners Help
Topic: four quick noobish questions
Replies: 18
Views: 1433

thanks for the reply, but can you tell me what variable type cpos is initilized as?

and should that code (or what's similar to it) be inside the event handler itself , or the jump=true part be inside the handler, and the rest inside the draw loop itself?

(just incase this makes a difference, im ...
by Elazul
Fri Jul 06, 2007 11:50 pm
Forum: Beginners Help
Topic: four quick noobish questions
Replies: 18
Views: 1433

my friend, i am well beyond the point of reading the first tutorial... i've looked through it again in case there's something i overlooked, but i meant making a fps camera jump, not a model jump.
by Elazul
Fri Jul 06, 2007 11:33 pm
Forum: Beginners Help
Topic: four quick noobish questions
Replies: 18
Views: 1433

if you mean the api, i've been looking for hours, can't find anything useful , mind linking it?

i maybe overworked and that's why i may have overlooked something, but i'm not a forum noob, i usually do a search before i ask any questions, and only ask questions when i can't find anything.
much ...