Moddeling And Mapping Question

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
mager
Posts: 24
Joined: Thu Jul 22, 2010 11:55 pm

Moddeling And Mapping Question

Post by mager »

Well, i have IrrEdit and I wanna start making maps for my game. Question is, will sketchup suffice as a modeller? Im not quite sure the proper file formats the IrrEdit and most importantly Irrlicht support?


--------------------------------------------

Also, are there any good tutorials on how to use IrrEdit? I feel like there is some learning curve, or i'm just missing something. Thanks for any help :)
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Hm, not sure. Sketchup format might be collada - in which case it could work. But I remember I tried it once getting working when sketchup was still rather new and back then I didn't get it working with Irrlicht. I would say - just try it. If irrEdit loads the format it works... otherwise it doesn't.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
mager
Posts: 24
Joined: Thu Jul 22, 2010 11:55 pm

Post by mager »

could you tell me why this code isn't loading the file?

Code: Select all


int main()
{
	IrrlichtDevice * device = createDevice(EDT_OPENGL,dimension2d<u32>(640,480),16,false,false,false,0);

	if(!device)
		return 1;
	device->setWindowCaption(L"Irrlicht - Hello World");

	video::IVideoDriver* driver = device->getVideoDriver();
	scene::ISceneManager* smgr = device->getSceneManager();

	smgr->loadScene("models/myscene.irr");
	IAnimatedMesh * mesh = smgr->getMesh("models/ship.dae");
	IAnimatedMeshSceneNode * node = smgr->addAnimatedMeshSceneNode(mesh);

	vector3df position = vector3df(0,0,0);

	if(node)
	{
		node->setMaterialFlag(EMF_LIGHTING, false);
		node->setPosition(position);
		//node->setMaterialTexture(0,driver->getTexture("models/textures/metal.jpg"));
	}

	//smgr->addCameraSceneNodeFPS();
	smgr->addCameraSceneNode(0,vector3df(0,20,0),vector3df(0,0,0));
	
	while(device->run())
	{
		driver->beginScene(true,true,SColor(255,100,101,140));
		smgr->drawAll();

		driver->endScene();
	}


	device->drop();


}
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

mager wrote:could you tell me why this code isn't loading the file?
the console probably tells you... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
mager
Posts: 24
Joined: Thu Jul 22, 2010 11:55 pm

Post by mager »

Turns out im retarded :P I was selecting a cube when i exported it and so it only exported the cube, which was rather small - so i never saw it lol
Post Reply