Sign in to follow this  

Looking for a level editor (the person or program)

This topic is 3342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm programming an RTS/FPS combination game as my independent study for my school. It's coming along fine on that respect, but my game graphically looks like crap, specifically my terrain. Here's a simple image of what my map looks like with a valley. My game will consist of large outdoor environments, and so my original thought and execution has been to use height maps. Unfortunately, I'm currently just using free one's I've found online since I myself am extremely artistically, creatively, graphically retarded. I was wondering, if there was any assistance I could get. Maybe a recommendation for a program, a recommendation for another file format, recommendation for code that may graphically help such as lighting, or someone that would be willing to help me out by making a terrain map for me(I'm willing to compensate, PM me). This is the extent of the amount of code I have that deals with graphics.
        irr::video::E_DRIVER_TYPE driverType = irr::video::EDT_OPENGL;

        irr::IrrlichtDevice* device = irr::createDevice(driverType, irr::core::dimension2d<irr::s32>(windowWidth, windowHeight));

        irr::video::IVideoDriver* driver = device->getVideoDriver();
        irr::scene::ISceneManager* smgr = device->getSceneManager();
        irr::gui::IGUIEnvironment* env = device->getGUIEnvironment();

        driver->setTextureCreationFlag(irr::video::ETCF_ALWAYS_32_BIT, true);

        irr::scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 1200.f);
        camera->setPosition(irr::core::vector3df(7200, 4210, 9000));
        camera->setTarget(irr::core::vector3df(2397*2,343*2,2700*2));
        camera->setFarValue(120000.0f);

        device->getCursorControl()->setVisible(false);

        irr::scene::ITerrainSceneNode* terrain = smgr->addTerrainSceneNode(
                "heightmap.bmp",
                0,
                -1,
                irr::core::vector3df(0.f, 0.f, 0.f),
                irr::core::vector3df(0.f, 0.f, 0.f),
                /*irr::core::vector3df(200.f, 15.f, 200.f)*/irr::core::vector3df(80.f, 60.f, 80.f),
                irr::video::SColor(255, 255, 255, 255),
                500,
                irr::scene::ETPS_17,
                15
                );

        terrain->setMaterialFlag(irr::video::EMF_LIGHTING, false);

        terrain->setMaterialTexture(0, driver->getTexture("terrain-texture.jpg"));
        terrain->setMaterialTexture(1, driver->getTexture("detailmap3.jpg"));

        terrain->setMaterialType(irr::video::EMT_DETAIL_MAP);

        terrain->scaleTexture(1.0f, 20.0f);

Share this post


Link to post
Share on other sites

This topic is 3342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this