Search found 15 matches

by Skatebone
Fri Sep 07, 2012 9:12 am
Forum: Beginners Help
Topic: rotation functions
Replies: 9
Views: 749

Re: rotation functions

You wrote:
driver.SetTransform(TransformState, New Matrix())
Dim mt1 As Matrix = driver.GetTransform(TransformState)
What do you expect to be mt1?

I expected to be the matrix which transforms the line!

When i draw the line it orks perfectly, the problem is that i cant get the translated ...
by Skatebone
Fri Sep 07, 2012 8:01 am
Forum: Beginners Help
Topic: rotation functions
Replies: 9
Views: 749

Re: rotation functions

If your question: why in next code "vec" doesn't get changed:
Vector3Df vec = new Vector3Df(0, 100, -100);
Matrix mt1 = new Matrix();
mt1.TransformVector(ref vec);
// now vec == (0, 100, -100)
then answer is: because "mt1" is an identity matrix.

Yes I realised! Im trying to fill it in with ...
by Skatebone
Fri Sep 07, 2012 6:31 am
Forum: Beginners Help
Topic: rotation functions
Replies: 9
Views: 749

MMO camera

I did make some progress with the MMO (camera following object) project but still I cant understand why it isnt working..

Since

driver.SetTransform(TransformationState.Texture0, New Matrix())
driver.Draw3DLine(New Vector3Df(0, 0, 50), New Vector3Df(0, 100, -100), Color.OpaqueRed)
//Where New ...
by Skatebone
Thu Sep 06, 2012 12:07 pm
Forum: Beginners Help
Topic: rotation functions
Replies: 9
Views: 749

Re: rotation functions

It doesnt work, the camera simply goes up since the rotation is (0,x,0)

Look at mine:

http://imageshack.us/photo/my-images/267/viewj.png/


Dim mt1 As New Matrix
driver.SetTransform(TransformationState.Texture0, mt1)
mt1.TranslateVector(New Vector3Df(0, 100, -100))
//Here I need to extract the ...
by Skatebone
Thu Sep 06, 2012 8:21 am
Forum: Beginners Help
Topic: rotation functions
Replies: 9
Views: 749

Re: rotation functions

Thanks green!

I did manage to get the node to rotate but my new problem is to get the direction vector of the rotation:

Here is my fail code:


Dim tempx as integer = 0
If KeyStore(KeyCode.Right) = True Then

Dim l1 As New Line3Df
l1.Set(node.Position, New Vector3Df(node.Position.X, 100, node ...
by Skatebone
Wed Sep 05, 2012 5:32 pm
Forum: Beginners Help
Topic: rotation functions
Replies: 9
Views: 749

rotation functions

What is wrong with these two functons?

node.Rotation.RotationToDirection(camera.Target)
node.Rotation.RotateYZby(45)

I cant get the node to rotate without rotation animator..
Edit: i dont use the two functions together btw and I also tried the rotate via a vector. I cant see a way to bypass this ...
by Skatebone
Tue Sep 04, 2012 8:04 am
Forum: Beginners Help
Topic: Minimap
Replies: 7
Views: 1391

Re: Minimap

I will try using the 3d and converting it into 2d but i need the position to be fixed on the screen not on the terrain.

Also what do you think if I add a class Line2D within the irrlicht engine (device class) and work like this:

Dim line1 as new line(vector2di(5,5),vector2Di(5,10))
Line1.draw ...
by Skatebone
Tue Sep 04, 2012 5:46 am
Forum: Beginners Help
Topic: Minimap
Replies: 7
Views: 1391

Re: Minimap

Let me be more clear, Say I need to draw a compass for my map:

I need a vertical line, a horizontal line crossing it (forming a cross) and a triangle on top.
I need to make this as 1 object so then I can reposition, rotate ect.
I have no idea since driver.draw... does not return anything ofcourse ...
by Skatebone
Tue Sep 04, 2012 5:44 am
Forum: Beginners Help
Topic: Minimap
Replies: 7
Views: 1391

Re: Minimap

Thank you very much guys!

Problem is that I cannot find a way to rotate the gui Image.

Also when drawing 2d, I need a pointer for every object i draw so then i can reposition/rotate ect. How would i go about doing that?

Thanks :)
by Skatebone
Mon Sep 03, 2012 1:54 pm
Forum: Beginners Help
Topic: Minimap
Replies: 7
Views: 1391

Minimap

Hey guys,

I ran into 2 issues when creating my minimap:

Second issue:
env.AddImage(driver.GetTexture("pointer.bmp"), New Vector2Di(120,120), False, Nothing, 1)

First issue:
driver.Draw2DPolygon(New Vector2Di(120, 120), 120, Color.OpaqueBlack, 4)
driver.DrawPixel(120, 120, Video.Color.OpaqueRed ...
by Skatebone
Sun Sep 02, 2012 9:17 am
Forum: Beginners Help
Topic: Does IrrlichtLime contain IEventReceiver?
Replies: 7
Views: 758

Re: Does IrrlichtLime contain IEventReceiver?

Awesome!

Thanks alot! :)
by Skatebone
Sun Sep 02, 2012 7:41 am
Forum: Beginners Help
Topic: Does IrrlichtLime contain IEventReceiver?
Replies: 7
Views: 758

Re: Does IrrlichtLime contain IEventReceiver?

I tried but: "Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists."

Although I did manage to make it alone :) It was simple and didn't think enough about it :P

For anyone who is reading this/need it:

Dim KeyStore(255) As Boolean ...
by Skatebone
Sun Sep 02, 2012 5:56 am
Forum: Beginners Help
Topic: Does IrrlichtLime contain IEventReceiver?
Replies: 7
Views: 758

Re: Does IrrlichtLime contain IEventReceiver?

Sorry to disturb again but I still have a problem when pressing two or more keys at a time.

I need to store all the keys in an array like in c++ and check each key so if lets say i press the top and right arrow keys together the camera moves to the top right. But i cannot find e.key.key.count or ...
by Skatebone
Sun Sep 02, 2012 5:04 am
Forum: Beginners Help
Topic: Does IrrlichtLime contain IEventReceiver?
Replies: 7
Views: 758

Re: Does IrrlichtLime contain IEventReceiver?

Thanks alot green. Keep up the great work! :))
by Skatebone
Sat Sep 01, 2012 8:29 pm
Forum: Beginners Help
Topic: Does IrrlichtLime contain IEventReceiver?
Replies: 7
Views: 758

Does IrrlichtLime contain IEventReceiver?

Hey guys,

Im using vb.net (IrrlichtLime) and I need to rotate the camera whenever the user presses the arrow keys.

My problem is that I cannot find anywhere the IEventReciever class to handle the events..

these are my declarations: (maybe I am missing something here?)

Imports System
Imports ...