PGLM Map Editor

Buckcherry

02-04-2008 15:35:08

Hi everybody,

Could anyone possibly tell me where I could download the PGLM Map Editor, please?.

Is there any sourcecode sample about how to deform the terrain and change the texture dinamically using PLSM2?.

Help, please.

bibiteinfo

03-04-2008 21:14:08

Goof is your answer

http://sourceforge.net/projects/argorha/

MOROHEUZ

08-04-2008 11:28:34

is this for SDK too ??

PLSM2 works without Problems... but this Files makes Probems...

must Download the Libnoise too ??

Buckcherry

13-04-2008 16:32:16

I am trying to deform terrain dinamically and at the moment I have not success... :(

I have made the following method called when I press the left button of the mouse:

void deform()
{
setBrushScale(0.05);
setBrushSize(5);

QuickGUI::MouseCursor* mouseCursor = mGUIManager->getMouseCursor();
QuickGUI::Point mousePos = mouseCursor->getPosition();

Ray pickRay = mCamera->getCameraToViewportRay(mouseCursor->getPosition().x, mouseCursor->getPosition().y);

RaySceneQuery* mRayQuery;
mRayQuery = mSceneMgr->createRayQuery(Ray(Vector3::ZERO, Vector3::NEGATIVE_UNIT_Y));

mRayQuery->setRay (pickRay);

mRayQuery->setQueryTypeMask(Ogre::SceneManager::WORLD_GEOMETRY_TYPE_MASK);
mRayQuery->setWorldFragmentType(SceneQuery::WFT_SINGLE_INTERSECTION);
mRayQuery->execute ();

RaySceneQueryResult& qryResult = mRayQuery->execute();
RaySceneQueryResult::iterator it = qryResult.begin();

if (it != qryResult.end() && it->worldFragment)
{
mCursorPos = it->worldFragment->singleIntersection;
mSceneMgr->setOption( "DeformationCenter",&mCursorPos);
}
}


Doing this, nothing happen.

Any idea about what is wrong, please?

Buckcherry

19-04-2008 18:53:23

Help, please!