Search found 89 matches

by raven_coda
Sat Mar 03, 2007 12:39 am
Forum: Beginners Help
Topic: Mouse Picking
Replies: 2
Views: 398

Here's an example, core::position2d<s32> mouse_pos=Device->getCursorControl()->getPosition(); core::line3df line=Device->getSceneManager()->getSceneCollisionManager()->getRayFromScreenCoordinates(mouse_pos, Device->getSceneManager()->getActiveCamera()); IsceneNode* object=smgr->getSceneCollisionMana...
by raven_coda
Fri Mar 02, 2007 10:37 pm
Forum: Beginners Help
Topic: Cant get a weapon to show up on the camera
Replies: 5
Views: 860

try just 0,0,10 that should be right in front of you

10, 15, 1 might just be above and to the side of your view

You can do all this in one line

Code: Select all

scenemgr->addCubeSceneNode(5, c, -1, core::vector3df(0,0,10));

by raven_coda
Fri Mar 02, 2007 7:20 pm
Forum: Beginners Help
Topic: Cant get a weapon to show up on the camera
Replies: 5
Views: 860

You might want to change the position to something other then 0,0,0. It is quite possible that you are inside your gun and polys aren't visible from their back side.
by raven_coda
Fri Mar 02, 2007 5:07 am
Forum: Beginners Help
Topic: Updating the TransformedBoundingBox without a render
Replies: 1
Views: 290

you need to call updateAbsolutePosition() on each node before you call getTransformedBoundingBox
by raven_coda
Thu Mar 01, 2007 11:59 pm
Forum: Beginners Help
Topic: Get Absolute Position of a vertex
Replies: 6
Views: 370

are you saying it's faster to call

M.transformVect(pos, pos);

then

M.transformVect(pos);
by raven_coda
Thu Mar 01, 2007 11:17 pm
Forum: Beginners Help
Topic: Get Absolute Position of a vertex
Replies: 6
Views: 370

Maybe I found a bug...

If I change

Code: Select all

M.transformVect(pos, pos); 
to

Code: Select all

M.transformVect(pos); 
it works;
by raven_coda
Thu Mar 01, 2007 11:15 pm
Forum: Beginners Help
Topic: Get Absolute Position of a vertex
Replies: 6
Views: 370

Alright so maybe I don't understand what this does. Just as a sanity check, if I had the following core::matrix4 M=phys->getBody(i)->getMeshNode()->getAbsoluteTransformation(); pos=core::vector3df(0,0,0); M.transformVect(pos, pos); shouldn't pos=getBody(i)->getMeshNode()->getPosition() ?
by raven_coda
Thu Mar 01, 2007 10:42 pm
Forum: Beginners Help
Topic: Set the node to face a distant vector
Replies: 3
Views: 243

Code: Select all

core::vector3df direction = turret->getPosition() - Obj2Face->getPosition(); 
turret->setRotation(direction.getHorizontalAngle());
by raven_coda
Thu Mar 01, 2007 10:18 pm
Forum: Beginners Help
Topic: Get Absolute Position of a vertex
Replies: 6
Views: 370

Get Absolute Position of a vertex

How can I get the Absolute Position of a vertex? I can get the vertex position from the mesh and then I try to apply the absolutetransfor from the node but that doesn't quite work right. That seems to just add the nodes position to the vertex's and not take into affect the rotation of the node. Any ...
by raven_coda
Thu Mar 01, 2007 7:34 pm
Forum: Code Snippets
Topic: New Rotate Animator
Replies: 2
Views: 1894

hmm well, as long as you constantly follow your target then you could just update it every frame like this:

Code: Select all

core::vector3df direction = turret->getPosition() - ship->getPosition(); 
turret->setRotation(direction.getHorizontalAngle()); 
by raven_coda
Thu Feb 22, 2007 11:00 pm
Forum: Code Snippets
Topic: New Rotate Animator
Replies: 2
Views: 1894

New Rotate Animator

For one of my projects I made a new rotate animator that rotates a node from a to b over a set time. It's based off the flystraight animator.There is also a bool for repeat where it starts going back and forth from a and b. Works well for the camera in fly bys or whatever else. We are using it to an...
by raven_coda
Fri Feb 09, 2007 10:53 pm
Forum: Beginners Help
Topic: not working
Replies: 1
Views: 146

your not moving because it's probibly round down. Replace

Code: Select all

int move (IAnimatedMeshSceneNode * a,int x,int y,int z) 
with

Code: Select all

int move (IAnimatedMeshSceneNode * a,f32 x,f32 y,f32 z) 
by raven_coda
Thu Feb 08, 2007 2:03 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: my3d plugins for 3ds max v8 or v9
Replies: 5
Views: 2238

The my3d plugin for 3ds max 7 works fine for me in 8. However, I cannot get it to work in 9 and so I also am interested in a plugin for 3ds max 9.
by raven_coda
Thu Feb 08, 2007 1:18 am
Forum: Off-topic
Topic: youTube removed example 5 video because of copyright...
Replies: 38
Views: 40729

I realize that's the jest of it but I'm looking for any small details etc. I have just finished taking a class on digital law and this is just the kind of problems I have been looking at. It's a problem in the DMCA where it favors the larger corporations and not the little guys. Whatever happened to...
by raven_coda
Wed Feb 07, 2007 11:39 pm
Forum: Off-topic
Topic: youTube removed example 5 video because of copyright...
Replies: 38
Views: 40729

CRAZY!!!!


Is there anywhere that I can view this video? I'd like to see just what they're claim they own. If I can't view it would someone be so kind as to email it to me or PM me?