Search found 27 matches

by vipergc
Fri Apr 24, 2009 3:57 pm
Forum: Beginners Help
Topic: Rotating a model
Replies: 5
Views: 494

no.. setRotation() sets the rotation relative to the parent... not absolutely
by vipergc
Tue Apr 21, 2009 4:14 pm
Forum: Beginners Help
Topic: Problems with Rotation
Replies: 11
Views: 1025

Good point.. I stand corrected... the main thing here is that its relative... and he was trying to use it as an absolute
by vipergc
Tue Apr 21, 2009 3:23 pm
Forum: Beginners Help
Topic: Problems with Rotation
Replies: 11
Views: 1025

No problem...

also note that setRotation() is a RELATIVE rotation.. from the current position... not absolute, therefore, you will have to track the position yourself and then call setRotation() to move a relative rotational distance from the current position
by vipergc
Tue Apr 21, 2009 12:29 pm
Forum: Off-topic
Topic: Obama and your Computer Rights
Replies: 13
Views: 1730

Obama promised change... yup... he's on the right track thus far... spending more money than any President in history.. and more pork too... gotta love it... we really need to invoked a voter qualification test here....
by vipergc
Tue Apr 21, 2009 12:26 pm
Forum: Beginners Help
Topic: Problems with Rotation
Replies: 11
Views: 1025

One thing that jumps out at me is the following.. nodePosition.X += MOVEMENT_SPEED * cos((nodeRotation.Y) * 3.14 / 180); nodeRotation.Y is in degrees and you are sending that to the cos function and converting the result to radians... you need to do the conversion BEFORE sending it to the cos functi...
by vipergc
Tue Apr 21, 2009 12:10 pm
Forum: Beginners Help
Topic: a problem with custom scene node
Replies: 2
Views: 254

Without seeing your code its hard to tell what might be wrong... however you might consider this...

make sure that you have the triangles vertices arranged in a counter clockwise fashion when viewed from the outside of the face

make sure you have calculated the normals for these faces correctly
by vipergc
Mon Apr 20, 2009 12:05 am
Forum: Beginners Help
Topic: Problem with node->SetRotation
Replies: 11
Views: 607

Not a problem... kudos to you... there are those.. who will never admit having screwed up...
by vipergc
Sun Apr 19, 2009 12:41 am
Forum: Beginners Help
Topic: Problem with node->SetRotation
Replies: 11
Views: 607

Are you looking for something that will actually animate the rotation? The setrotation() function will simply perform rotation in the 3D sense, that is the object will be rotated into a particular position.. if you are looking to spin an object, then you can either use an animated mesh object or pro...
by vipergc
Sat Apr 18, 2009 1:10 pm
Forum: Beginners Help
Topic: Problem with node->SetRotation
Replies: 11
Views: 607

rememeber, setrotation is a RELATIVE rotation and if your calculations are off even by a slight bit, and the function is called numerous times.. it will appear to be showing a slight rotation...

computers are stupid,
they do what we tell them to do,
not what we want them to do
by vipergc
Sat Apr 18, 2009 12:45 pm
Forum: Beginners Help
Topic: Problem with node->SetRotation
Replies: 11
Views: 607

setrotation first converts the degrees to radians by multiplying the angle by DEGTORAD64 and then calculating the sine and cosine in order to apply the rotation... THEORY: the trig value of sin(0) = sin(360) = 0 and cos(0) = cos(360) = 1 PRACTICAL: sin(0) = 0 sin(360) = sin(360 * pi/180) = sin(.0174...
by vipergc
Thu Apr 16, 2009 3:18 am
Forum: Game Programming
Topic: Complications of a Networking game?
Replies: 6
Views: 1805

When dealing with networked real time applications, there are a few things to bear in mind while coding.. 1. keep the packets as small as possible and to the bare minimum size using bitmapped flags where feasible and the minimum size for any values 2. create/maintain the packets in memory totally 3....
by vipergc
Fri Apr 10, 2009 4:11 pm
Forum: Beginners Help
Topic: Code conversion examples for (Visual) Basic(.NET) users?
Replies: 6
Views: 355

Indeed.. the differences are stark... however.. I think some are missing the main point here... and that is... that the better choice for them is not VB.. but C++
by vipergc
Fri Apr 10, 2009 3:37 am
Forum: Beginners Help
Topic: Code conversion examples for (Visual) Basic(.NET) users?
Replies: 6
Views: 355

Technically you are absolutely correct... C and C++ are two different entities.... however, I used C in my text since most compilers invoke C++ in one form or another anyway... I was being generic.. not to mention... I would wager that most people couldn't list the differences between the two.. I st...
by vipergc
Thu Apr 09, 2009 9:36 pm
Forum: Beginners Help
Topic: Code conversion examples for (Visual) Basic(.NET) users?
Replies: 6
Views: 355

Now is the time

You said your friend has the intentions of learning C... if he intends on using Irrlicht... now is the time for him to do just that... I have written a boatload of code in visual basic and while it is certainly conceivable to use the DLL in VB... I would highly suggest that now is the time for your ...
by vipergc
Sun Mar 29, 2009 2:10 am
Forum: Off-topic
Topic: Got kicked off gamedev.net for saying windows is crap
Replies: 23
Views: 3407

Id liked to echo armens comments... and currently.. windows users ARE the mass market... like it or not... that is the way it is... and a wise marketer isnt going to dismiss the largest portion of the market because he doesnt like the bus driver